branch: externals/auctex
commit 59a9e5b35b4c7ed91457868f7b64144ed942e4d7
Author: Ikumi Keita <[email protected]>
Commit: Ikumi Keita <[email protected]>
Correct how `TeX-record-buffer' is used
* tex-buf.el (TeX-pop-to-buffer): Use `TeX-record-buffer' in accord with
the documents.
* doc/changes.texi: Mention the change and warn users who have
customized the option.
---
doc/changes.texi | 6 ++++++
tex-buf.el | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/doc/changes.texi b/doc/changes.texi
index dc4b1ce..5ef6190 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -18,6 +18,12 @@ enable, call @kbd{M-x flymake-mode RET} or add this to your
@lisp
(add-hook 'LaTeX-mode-hook #'flymake-mode)
@end lisp
+
+@item
+The way the option @code{TeX-record-buffer} is used was corrected. It
+was used in just the opposite way as the document says. Erase the
+customization if you have customized this option since it now acts in
+reverse to your expectation.
@end itemize
@heading News in 12.1
diff --git a/tex-buf.el b/tex-buf.el
index b8f901a..c6b1372 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -227,7 +227,7 @@ of `display-buffer' for additional customization
information.
Optional third arg NORECORD non-nil means do not put this buffer
at the front of the list of recently selected ones."
- (pop-to-buffer buffer other-window (and norecord TeX-record-buffer)))
+ (pop-to-buffer buffer other-window (and norecord (not TeX-record-buffer))))
(defun TeX-recenter-output-buffer (line)
"Redisplay buffer of TeX job output so that most recent output can be seen.