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. f107ca1d55ff6d5058274


From: Ikumi Keita
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. f107ca1d55ff6d5058274c3a31bd83ea55d6d3fc
Date: Thu, 29 Mar 2018 07:41:09 -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  f107ca1d55ff6d5058274c3a31bd83ea55d6d3fc (commit)
      from  cff078144a01b6a6609cff8ee2ae983cc13372b7 (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 f107ca1d55ff6d5058274c3a31bd83ea55d6d3fc
Author: Ikumi Keita <address@hidden>
Date:   Thu Mar 29 20:40:10 2018 +0900

    Make compatible with emacs 24
    
    * latex.el (TeX-read-label): Use `format' instead of `format-message'
    if the latter is not available.

diff --git a/latex.el b/latex.el
index 9df3d52..bf96729 100644
--- a/latex.el
+++ b/latex.el
@@ -1932,7 +1932,10 @@ defined and ask user for confirmation before proceeding."
                  (assoc label (LaTeX-label-list)))
             (ding)
             (when (y-or-n-p
-                   (format-message "Label `%s' exists. Use anyway? " label))
+                   ;; Emacs 24 compatibility
+                   (if (fboundp 'format-message)
+                       (format-message "Label `%s' exists. Use anyway? " label)
+                     (format "Label `%s' exists. Use anyway? " label)))
               (setq valid t)))
            (t
             (setq valid t))))

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

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


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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