diff options
| author | Stefan Monnier | 2015-10-06 22:57:53 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-10-06 22:57:53 -0400 |
| commit | 8528f7c9f1c2a74d353c03dbb6911eca2eb94197 (patch) | |
| tree | c93ea15466e5cec01df4c5be2aab663ca165909b | |
| parent | f54e5ccfdbe2f1aa4e6e072657659017d2cbaf86 (diff) | |
| download | emacs-8528f7c9f1c2a74d353c03dbb6911eca2eb94197.tar.gz emacs-8528f7c9f1c2a74d353c03dbb6911eca2eb94197.zip | |
* lisp/textmodes/tex-mode.el: Use lexical-binding
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index ef9c71c1bb0..45afafc2381 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands | 1 | ;;; tex-mode.el --- TeX, LaTeX, and SliTeX mode commands -*- lexical-binding:t -*- |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1985-1986, 1989, 1992, 1994-1999, 2001-2015 Free | 3 | ;; Copyright (C) 1985-1986, 1989, 1992, 1994-1999, 2001-2015 Free |
| 4 | ;; Software Foundation, Inc. | 4 | ;; Software Foundation, Inc. |
| @@ -368,7 +368,7 @@ An alternative value is \" . \", if you use a font with a narrow period." | |||
| 368 | (match-end 1)) | 368 | (match-end 1)) |
| 369 | latex-section-alist)))) | 369 | latex-section-alist)))) |
| 370 | (backward-char 1) | 370 | (backward-char 1) |
| 371 | (condition-case err | 371 | (condition-case nil |
| 372 | (progn | 372 | (progn |
| 373 | ;; Using sexps allows some use of matching {...} inside | 373 | ;; Using sexps allows some use of matching {...} inside |
| 374 | ;; titles. | 374 | ;; titles. |
| @@ -937,7 +937,7 @@ Inherits `shell-mode-map' with a few additions.") | |||
| 937 | ,@tex-face-alist) | 937 | ,@tex-face-alist) |
| 938 | "Alist of face and LaTeX font name for facemenu.") | 938 | "Alist of face and LaTeX font name for facemenu.") |
| 939 | 939 | ||
| 940 | (defun tex-facemenu-add-face-function (face end) | 940 | (defun tex-facemenu-add-face-function (face _end) |
| 941 | (or (cdr (assq face tex-face-alist)) | 941 | (or (cdr (assq face tex-face-alist)) |
| 942 | (or (and (consp face) | 942 | (or (and (consp face) |
| 943 | (consp (car face)) | 943 | (consp (car face)) |
| @@ -1982,7 +1982,7 @@ In the tex shell buffer this command behaves like `comint-send-input'." | |||
| 1982 | (display-buffer (tex-shell-buf)) | 1982 | (display-buffer (tex-shell-buf)) |
| 1983 | (tex-recenter-output-buffer nil)) | 1983 | (tex-recenter-output-buffer nil)) |
| 1984 | 1984 | ||
| 1985 | (defun tex-shell-sentinel (proc msg) | 1985 | (defun tex-shell-sentinel (proc _msg) |
| 1986 | (cond ((null (buffer-name (process-buffer proc))) | 1986 | (cond ((null (buffer-name (process-buffer proc))) |
| 1987 | ;; buffer killed | 1987 | ;; buffer killed |
| 1988 | (set-process-buffer proc nil) | 1988 | (set-process-buffer proc nil) |
| @@ -2762,10 +2762,11 @@ Runs the shell command defined by `tex-show-queue-command'." | |||
| 2762 | st) | 2762 | st) |
| 2763 | "Syntax table used while computing indentation.") | 2763 | "Syntax table used while computing indentation.") |
| 2764 | 2764 | ||
| 2765 | (defun latex-indent (&optional arg) | 2765 | (defun latex-indent (&optional _arg) |
| 2766 | (if (and (eq (get-text-property (if (and (eobp) (bolp)) | 2766 | (if (and (eq (get-text-property (if (and (eobp) (bolp)) |
| 2767 | (max (point-min) (1- (point))) | 2767 | (max (point-min) (1- (point))) |
| 2768 | (line-beginning-position)) 'face) | 2768 | (line-beginning-position)) |
| 2769 | 'face) | ||
| 2769 | 'tex-verbatim)) | 2770 | 'tex-verbatim)) |
| 2770 | 'noindent | 2771 | 'noindent |
| 2771 | (with-syntax-table tex-latex-indent-syntax-table | 2772 | (with-syntax-table tex-latex-indent-syntax-table |
| @@ -3408,7 +3409,7 @@ There might be text before point." | |||
| 3408 | ("\\textreferencemark" . ?※)) | 3409 | ("\\textreferencemark" . ?※)) |
| 3409 | "A `prettify-symbols-alist' usable for (La)TeX modes.") | 3410 | "A `prettify-symbols-alist' usable for (La)TeX modes.") |
| 3410 | 3411 | ||
| 3411 | (defun tex--prettify-symbols-compose-p (start end _match) | 3412 | (defun tex--prettify-symbols-compose-p (_start end _match) |
| 3412 | (let* ((after-char (char-after end)) | 3413 | (let* ((after-char (char-after end)) |
| 3413 | (after-syntax (char-syntax after-char))) | 3414 | (after-syntax (char-syntax after-char))) |
| 3414 | (not (or | 3415 | (not (or |