emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/julia-mode 77ff4f1146 15/22: comment code, fix docstring w


From: ELPA Syncer
Subject: [nongnu] elpa/julia-mode 77ff4f1146 15/22: comment code, fix docstring width
Date: Thu, 4 May 2023 11:00:52 -0400 (EDT)

branch: elpa/julia-mode
commit 77ff4f114643afde493e910bf3481a8f33189694
Author: Tamás K. Papp <tkpapp@gmail.com>
Commit: Tamás K. Papp <tkpapp@gmail.com>

    comment code, fix docstring width
---
 julia-mode.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/julia-mode.el b/julia-mode.el
index e28b3550e5..65e7c52b82 100644
--- a/julia-mode.el
+++ b/julia-mode.el
@@ -69,16 +69,19 @@ unicode for LaTeX even if disabled."
 
 (defconst julia-mode--latexsubs-partials
   (let ((table (make-hash-table :test 'equal)))
-    (maphash (lambda (latex subst)
+    (maphash (lambda (latex _subst)
                (cl-assert (string= (substring latex 0 1) "\\") nil
                           "LaTeX substitution does not start with \\.")
                (let ((len (length latex)))
                  (cl-assert (< 1 len) nil "Trivially short LaTeX subtitution")
+                 ;; for \foo, put f, fo, foo into the table
                  (cl-loop for i from 2 to len
                           do (puthash (substring latex 1 i) t table))))
              julia-mode-latexsubs)
     table)
-  "A hash table containing all partial strings from the LaTeX abbreviations in 
`julia-mode-latexsubs' as keys. Values are always `t', the purpose is to 
represent a set.")
+  "A hash table containing all partial strings from the LaTeX abbreviations in
+`julia-mode-latexsubs' as keys. Values are always `t', the purpose is to
+represent a set.")
 
 (defun julia-mode--latexsubs-longest-partial-end (beg)
   "Starting at `beg' (should be the  \"\\\"), return the end of the longest 
partial match for LaTeX completion, or `nil' when not applicable."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]