[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 5f79e96eb7febff107ed0
From: |
Tassilo Horn |
Subject: |
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 5f79e96eb7febff107ed042646c99f7331469426 |
Date: |
Wed, 14 Apr 2021 04:58:40 -0400 (EDT) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".
The branch, master has been updated
via 5f79e96eb7febff107ed042646c99f7331469426 (commit)
from 8cdf1023f1a0d3fefa906b0d2c8c068bc15d054b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5f79e96eb7febff107ed042646c99f7331469426
Author: Tassilo Horn <tsdh@gnu.org>
Date: Wed Apr 14 10:57:50 2021 +0200
Don't move past % if the current command is a non-indent command
* latex.el (LaTeX-back-to-indentation): Don't move past % if the
current command is a non-indent command (bug#47757).
diff --git a/latex.el b/latex.el
index c4d7355..f85e5e0 100644
--- a/latex.el
+++ b/latex.el
@@ -3681,16 +3681,25 @@ outer indentation in case of a commented line. The
symbols
"Move point to the first non-whitespace character on this line.
If it is commented and comments are formatted syntax-aware move
point to the first non-whitespace character after the comment
-character(s). The optional argument FORCE-TYPE can be used to
-force point being moved to the inner or outer indentation in case
-of a commented line. The symbols 'inner and 'outer are
-recognized."
+character(s), but only if `this-command' is an actual indentation
+command. The optional argument FORCE-TYPE can be used to force
+point being moved to the inner or outer indentation in case of a
+commented line. The symbols 'inner and 'outer are recognized."
(if (or (and force-type
(eq force-type 'inner))
(and (not force-type)
(or (and (TeX-in-line-comment)
(eq major-mode 'doctex-mode))
(and (TeX-in-commented-line)
+ ;; Only move after the % if we're actually
+ ;; performing an indent command and something
+ ;; else like our `TeX-newline-function' which
+ ;; will be invoked automatically by
+ ;; `electric-indent-mode' (bug#47757).
+ (memq this-command
+ `(,indent-line-function
+ indent-for-tab-command
+ LaTeX-indent-line))
LaTeX-syntactic-comments))))
(progn
(beginning-of-line)
-----------------------------------------------------------------------
Summary of changes:
latex.el | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU AUCTeX
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 5f79e96eb7febff107ed042646c99f7331469426,
Tassilo Horn <=