diff options
| author | Gerd Moellmann | 2000-09-29 08:46:30 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-29 08:46:30 +0000 |
| commit | 4e9b8ebe4eaf8fd36bc517528bc818956f1d4b8a (patch) | |
| tree | 8722e05d195ed8a048eab5adad2494b817ca2e03 | |
| parent | 6f5ac60d61defda8325e598df48aec02ad04ec5f (diff) | |
| download | emacs-4e9b8ebe4eaf8fd36bc517528bc818956f1d4b8a.tar.gz emacs-4e9b8ebe4eaf8fd36bc517528bc818956f1d4b8a.zip | |
(latex-outline-regexp): Don't use `list*';
it's a function from CL.
(latex-imenu-create-index): Replace eval-when-compile with progn
because latex-section-alist is not bound while compiling.
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index beb468c0ca1..99f0d9d0e93 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -297,7 +297,7 @@ An alternative value is \" . \", if you use a font with a narrow period." | |||
| 297 | ;; Look for chapters and sections. | 297 | ;; Look for chapters and sections. |
| 298 | (goto-char (point-min)) | 298 | (goto-char (point-min)) |
| 299 | (while (search-forward-regexp | 299 | (while (search-forward-regexp |
| 300 | (eval-when-compile | 300 | (progn |
| 301 | (concat "\\\\" (regexp-opt (mapcar 'car latex-section-alist) t) | 301 | (concat "\\\\" (regexp-opt (mapcar 'car latex-section-alist) t) |
| 302 | "\\*?[ \t]*{")) nil t) | 302 | "\\*?[ \t]*{")) nil t) |
| 303 | (let ((start (match-beginning 0)) | 303 | (let ((start (match-beginning 0)) |
| @@ -1467,8 +1467,9 @@ Runs the shell command defined by `tex-show-queue-command'." | |||
| 1467 | 1467 | ||
| 1468 | (defvar latex-outline-regexp | 1468 | (defvar latex-outline-regexp |
| 1469 | (concat "\\\\" | 1469 | (concat "\\\\" |
| 1470 | (regexp-opt (list* "documentstyle" "documentclass" | 1470 | (regexp-opt (nconc (list "documentstyle" "documentclass" |
| 1471 | "begin{document}" "end{document}" "appendix" | 1471 | "begin{document}" "end{document}" |
| 1472 | "appendix") | ||
| 1472 | (mapcar 'car latex-section-alist)) t))) | 1473 | (mapcar 'car latex-section-alist)) t))) |
| 1473 | 1474 | ||
| 1474 | (defun latex-outline-level () | 1475 | (defun latex-outline-level () |