auctex-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 17277d82fad928ec2b4e6


From: Ikumi Keita
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 17277d82fad928ec2b4e69be95266d2edb76169d
Date: Tue, 30 Nov 2021 10:31:05 -0500 (EST)

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  17277d82fad928ec2b4e69be95266d2edb76169d (commit)
      from  e118a53e0a77efa53a3919c504368108131a1eb6 (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 17277d82fad928ec2b4e69be95266d2edb76169d
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Date:   Wed Dec 1 00:28:29 2021 +0900

    Fix marker management
    
    * latex.el (LaTeX-env-figure): Set marker only when it's really a
    marker.

diff --git a/latex.el b/latex.el
index 96e55df..6d25559 100644
--- a/latex.el
+++ b/latex.el
@@ -1247,7 +1247,8 @@ If SHORT-CAPTION is non-nil pass it as an optional 
argument to
         ;; Insert an empty line between caption and marked region, if any.
         (when active-mark (LaTeX-newline) (forward-line -1))
         (indent-according-to-mode)))
-    (set-marker end-marker nil)
+    (when (markerp end-marker)
+      (set-marker end-marker nil))
     (when (and (member environment '("table" "table*"))
                ;; Suppose an existing tabular environment should just
                ;; be wrapped into a table if there is an active region.

-----------------------------------------------------------------------

Summary of changes:
 latex.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

[Prev in Thread] Current Thread [Next in Thread]