]> git.eshelyaron.com Git - emacs.git/commitdiff
(calc-edit-user-syntax, calc-fix-token-name)
authorJay Belanger <jay.p.belanger@gmail.com>
Mon, 31 Jan 2005 06:28:06 +0000 (06:28 +0000)
committerJay Belanger <jay.p.belanger@gmail.com>
Mon, 31 Jan 2005 06:28:06 +0000 (06:28 +0000)
(calc-write-parse-table-part):  Add LaTeX support.

lisp/calc/calc-prog.el

index a37f3c5ceddf7fe48a43415cdec73d733c37d662..d5d9123d04d7f2873eb421ddb5bf1653afa01ff7 100644 (file)
                     (format "Editing %s-Mode Syntax Table. "
                             (cond ((null lang) "Normal")
                                   ((eq lang 'tex) "TeX")
+                                   ((eq lang 'latex) "LaTeX")
                                   (t (capitalize (symbol-name lang))))))
      (calc-write-parse-table (cdr (assq lang calc-user-parse-tables))
                             lang)))
     (cond ((stringp (car p))
           (let ((s (car p)))
             (if (and (string-match "\\`\\\\dots\\>" s)
-                     (not (eq calc-lang 'tex)))
+                     (not (eq calc-lang '(tex latex))))
                 (setq s (concat ".." (substring s 5))))
             (if (or (and (string-match
                           "[a-zA-Z0-9\"{}]\\|\\`:=\\'\\|\\`#\\|\\`%%" s)
 (defun calc-fix-token-name (name &optional unquoted)
   (cond ((string-match "\\`\\.\\." name)
         (concat "\\dots" (substring name 2)))
-       ((and (equal name "{") (memq calc-lang '(tex eqn)))
+       ((and (equal name "{") (memq calc-lang '(tex latex eqn)))
         "(")
-       ((and (equal name "}") (memq calc-lang '(tex eqn)))
+       ((and (equal name "}") (memq calc-lang '(tex latex eqn)))
         ")")
-       ((and (equal name "&") (eq calc-lang 'tex))
+       ((and (equal name "&") (eq calc-lang '(tex latex)))
         ",")
        ((equal name "#")
         (search-backward "#")