diff options
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index c223af47697..8b0677754f3 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -1170,7 +1170,7 @@ subshell is initiated, `tex-shell-hook' is run." | |||
| 1170 | (setq-local fill-indent-according-to-mode t) | 1170 | (setq-local fill-indent-according-to-mode t) |
| 1171 | (add-hook 'completion-at-point-functions | 1171 | (add-hook 'completion-at-point-functions |
| 1172 | #'latex-complete-data nil 'local) | 1172 | #'latex-complete-data nil 'local) |
| 1173 | (add-hook 'flymake-diagnostic-functions 'tex-chktex nil t) | 1173 | (add-hook 'flymake-diagnostic-functions #'tex-chktex nil t) |
| 1174 | (setq-local outline-regexp latex-outline-regexp) | 1174 | (setq-local outline-regexp latex-outline-regexp) |
| 1175 | (setq-local outline-level #'latex-outline-level) | 1175 | (setq-local outline-level #'latex-outline-level) |
| 1176 | (setq-local forward-sexp-function #'latex-forward-sexp) | 1176 | (setq-local forward-sexp-function #'latex-forward-sexp) |
| @@ -1261,8 +1261,8 @@ Entering SliTeX mode runs the hook `text-mode-hook', then the hook | |||
| 1261 | (setq-local comment-start-skip | 1261 | (setq-local comment-start-skip |
| 1262 | "\\(\\(^\\|[^\\\n]\\)\\(\\\\\\\\\\)*\\)\\(%+ *\\)") | 1262 | "\\(\\(^\\|[^\\\n]\\)\\(\\\\\\\\\\)*\\)\\(%+ *\\)") |
| 1263 | (setq-local parse-sexp-ignore-comments t) | 1263 | (setq-local parse-sexp-ignore-comments t) |
| 1264 | (setq-local compare-windows-whitespace 'tex-categorize-whitespace) | 1264 | (setq-local compare-windows-whitespace #'tex-categorize-whitespace) |
| 1265 | (setq-local facemenu-add-face-function 'tex-facemenu-add-face-function) | 1265 | (setq-local facemenu-add-face-function #'tex-facemenu-add-face-function) |
| 1266 | (setq-local facemenu-end-add-face "}") | 1266 | (setq-local facemenu-end-add-face "}") |
| 1267 | (setq-local facemenu-remove-face-function t) | 1267 | (setq-local facemenu-remove-face-function t) |
| 1268 | (setq-local font-lock-defaults | 1268 | (setq-local font-lock-defaults |
| @@ -1591,7 +1591,7 @@ Puts point on a blank line between them." | |||
| 1591 | (defvar latex-complete-bibtex-cache nil) | 1591 | (defvar latex-complete-bibtex-cache nil) |
| 1592 | 1592 | ||
| 1593 | (define-obsolete-function-alias 'latex-string-prefix-p | 1593 | (define-obsolete-function-alias 'latex-string-prefix-p |
| 1594 | 'string-prefix-p "24.3") | 1594 | #'string-prefix-p "24.3") |
| 1595 | 1595 | ||
| 1596 | (defvar bibtex-reference-key) | 1596 | (defvar bibtex-reference-key) |
| 1597 | (declare-function reftex-get-bibfile-list "reftex-cite.el" ()) | 1597 | (declare-function reftex-get-bibfile-list "reftex-cite.el" ()) |
| @@ -2109,7 +2109,7 @@ If NOT-ALL is non-nil, save the `.dvi' file." | |||
| 2109 | (delete-file (concat dir (car list)))) | 2109 | (delete-file (concat dir (car list)))) |
| 2110 | (setq list (cdr list)))))) | 2110 | (setq list (cdr list)))))) |
| 2111 | 2111 | ||
| 2112 | (add-hook 'kill-emacs-hook 'tex-delete-last-temp-files) | 2112 | (add-hook 'kill-emacs-hook #'tex-delete-last-temp-files) |
| 2113 | 2113 | ||
| 2114 | ;; | 2114 | ;; |
| 2115 | ;; Machinery to guess the command that the user wants to execute. | 2115 | ;; Machinery to guess the command that the user wants to execute. |
| @@ -2168,7 +2168,7 @@ IN can be either a string (with the same % escapes in it) indicating | |||
| 2168 | OUT describes the output file and is either a %-escaped string | 2168 | OUT describes the output file and is either a %-escaped string |
| 2169 | or nil to indicate that there is no output file.") | 2169 | or nil to indicate that there is no output file.") |
| 2170 | 2170 | ||
| 2171 | (define-obsolete-function-alias 'tex-string-prefix-p 'string-prefix-p "24.3") | 2171 | (define-obsolete-function-alias 'tex-string-prefix-p #'string-prefix-p "24.3") |
| 2172 | 2172 | ||
| 2173 | (defun tex-guess-main-file (&optional all) | 2173 | (defun tex-guess-main-file (&optional all) |
| 2174 | "Find a likely `tex-main-file'. | 2174 | "Find a likely `tex-main-file'. |
| @@ -2263,9 +2263,11 @@ FILE is typically the output DVI or PDF file." | |||
| 2263 | (> (save-excursion | 2263 | (> (save-excursion |
| 2264 | ;; Usually page numbers are output as [N], but | 2264 | ;; Usually page numbers are output as [N], but |
| 2265 | ;; I've already seen things like | 2265 | ;; I've already seen things like |
| 2266 | ;; [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] | 2266 | ;; [N{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] |
| 2267 | (or (re-search-backward "\\[[0-9]+\\({[^}]*}\\)?\\]" | 2267 | ;; as well as [N.N] (e.g. with 'acmart' style). |
| 2268 | nil t) | 2268 | (or (re-search-backward |
| 2269 | "\\[[0-9]+\\({[^}]*}\\|\\.[0-9]+\\)?\\]" | ||
| 2270 | nil t) | ||
| 2269 | (point-min))) | 2271 | (point-min))) |
| 2270 | (save-excursion | 2272 | (save-excursion |
| 2271 | (or (re-search-backward "Rerun" nil t) | 2273 | (or (re-search-backward "Rerun" nil t) |
| @@ -2993,7 +2995,7 @@ There might be text before point." | |||
| 2993 | (lambda (x) | 2995 | (lambda (x) |
| 2994 | (pcase (car-safe x) | 2996 | (pcase (car-safe x) |
| 2995 | (`font-lock-syntactic-face-function | 2997 | (`font-lock-syntactic-face-function |
| 2996 | (cons (car x) 'doctex-font-lock-syntactic-face-function)) | 2998 | (cons (car x) #'doctex-font-lock-syntactic-face-function)) |
| 2997 | (_ x))) | 2999 | (_ x))) |
| 2998 | (cdr font-lock-defaults)))) | 3000 | (cdr font-lock-defaults)))) |
| 2999 | (setq-local syntax-propertize-function | 3001 | (setq-local syntax-propertize-function |