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. 3cd3e72e4c513bdcfacfc


From: Tassilo Horn
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 3cd3e72e4c513bdcfacfcf2c2b51ff79e0a222e6
Date: Fri, 05 Jun 2015 09:43:04 +0000

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  3cd3e72e4c513bdcfacfcf2c2b51ff79e0a222e6 (commit)
      from  0b857132d00afaa45737069bee3c9c1ddca2eacc (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 3cd3e72e4c513bdcfacfcf2c2b51ff79e0a222e6
Author: Ikumi Keita <address@hidden>
Date:   Fri Jun 5 11:42:35 2015 +0200

    Restore Emacs 22 compatibility
    
    * tex.el (featurep): Restore compatibility with emacs versions
    which don't have `activate-mark' (Emacs <= 22).
    
    Signed-off-by: Tassilo Horn <address@hidden>

diff --git a/ChangeLog b/ChangeLog
index 4a0d590..d2e1a09 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-05  Ikumi Keita  <address@hidden>
+
+       * tex.el (featurep): Restore compatibility with emacs versions
+       which don't have `activate-mark' (Emacs <= 22).
+
 2015-06-02  Arash Esbati  <address@hidden>
 
        * latex.el (LaTeX-auto-cleanup): Prepare so that an optional
diff --git a/tex.el b/tex.el
index ae4bb3d..24f0d6d 100644
--- a/tex.el
+++ b/tex.el
@@ -763,7 +763,19 @@ If POS is nil, use current buffer location."
 
   (defun TeX-activate-region ()
     (setq deactivate-mark nil)
-    (activate-mark))
+    (if (fboundp 'activate-mark)
+       (activate-mark)
+      ;; COMPATIBILITY for Emacs <= 22
+      ;; This part is adopted from `activate-mark' of Emacs 24.5.
+      (when (mark t)
+       (unless (and transient-mark-mode mark-active
+                (mark))
+         (force-mode-line-update) ;Refresh toolbar (bug#16382).
+         (setq mark-active t)
+         (unless transient-mark-mode
+           (setq transient-mark-mode 'lambda))
+         (if (boundp 'activate-mark-hook)
+             (run-hooks 'activate-mark-hook))))))
 
   (defun TeX-overlay-prioritize (start end)
     "Calculate a priority for an overlay extending from START to END.

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

Summary of changes:
 ChangeLog |    5 +++++
 tex.el    |   14 +++++++++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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