diff options
| author | Stefan Monnier | 2012-06-13 09:56:57 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-06-13 09:56:57 -0400 |
| commit | ccf1dc189c647a4a70db6b4733693a508616389e (patch) | |
| tree | c5b28ea74005a6fb0062a95584ddd5c68d66a25f | |
| parent | 646b5f55dfc28ea37a6605b060f67017cdb1aea8 (diff) | |
| download | emacs-ccf1dc189c647a4a70db6b4733693a508616389e.tar.gz emacs-ccf1dc189c647a4a70db6b4733693a508616389e.zip | |
* lisp/textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB.
Fixes: debbugs:11646
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/textmodes/tex-mode.el | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d9d75c8d091..a016032e285 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2012-06-13 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2012-06-13 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * textmodes/tex-mode.el (latex-indent): Recognize tex-verbatim at EOB | ||
| 4 | as well (bug#11646). | ||
| 5 | |||
| 3 | * loadup.el: Count byte-code functions as well. | 6 | * loadup.el: Count byte-code functions as well. |
| 4 | 7 | ||
| 5 | * emacs-lisp/byte-opt.el (featurep): Move compiler-macro... | 8 | * emacs-lisp/byte-opt.el (featurep): Move compiler-macro... |
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index af00531137a..a9a2113e7fc 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el | |||
| @@ -2686,7 +2686,9 @@ Runs the shell command defined by `tex-show-queue-command'." | |||
| 2686 | "Syntax table used while computing indentation.") | 2686 | "Syntax table used while computing indentation.") |
| 2687 | 2687 | ||
| 2688 | (defun latex-indent (&optional arg) | 2688 | (defun latex-indent (&optional arg) |
| 2689 | (if (and (eq (get-text-property (line-beginning-position) 'face) | 2689 | (if (and (eq (get-text-property (if (and (eobp) (bolp)) |
| 2690 | (max (point-min) (1- (point))) | ||
| 2691 | (line-beginning-position)) 'face) | ||
| 2690 | 'tex-verbatim)) | 2692 | 'tex-verbatim)) |
| 2691 | 'noindent | 2693 | 'noindent |
| 2692 | (with-syntax-table tex-latex-indent-syntax-table | 2694 | (with-syntax-table tex-latex-indent-syntax-table |