[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 3cd3e72 08/28: Restore Emacs 22 compatibility
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 3cd3e72 08/28: Restore Emacs 22 compatibility |
Date: |
Fri, 07 Aug 2015 15:59:18 +0000 |
branch: externals/auctex
commit 3cd3e72e4c513bdcfacfcf2c2b51ff79e0a222e6
Author: Ikumi Keita <address@hidden>
Commit: Tassilo Horn <address@hidden>
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>
---
ChangeLog | 5 +++++
tex.el | 14 +++++++++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
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.
- [elpa] externals/auctex updated (5f45de1 -> 1fc2c7a), Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 11d759d 02/28: More font-lock fix for verbatim environment args., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 4e84c98 04/28: Add subtitle to slide-title class, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 0a1742f 01/28: Parse env's defined with `\lstnewenvironment'., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 752171a 05/28: Fix bug in LaTeX-backward-paragraph in narrowed buffers, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 0e3f3ac 03/28: New styles newpxtext.el and newpxmath.el., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex b1e4d46 06/28: Consider args with \newenvironment with opt arg, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 0b85713 07/28: Query for optional env arg, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 1341b2c 09/28: Query for optional env arg defined with \lstnewenvironment., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 7a0d85f 10/28: New style pdfpages.el., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 3cd3e72 08/28: Restore Emacs 22 compatibility,
Tassilo Horn <=
- [elpa] externals/auctex 8426ca5 12/28: Missing ConTeXt-(un)numbered-section-list-nl variables., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 0efe678 14/28: Improve completion of includepdf macro., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 8052cd5 13/28: Find warnings emitted by a package with digits in its name., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 24a2a9d 20/28: Add `LCRJ' to `LaTeX-array-column-letters'., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex b9eddc9 11/28: Really ignore dbus errors, Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 1202f83 19/28: Add `X' to `LaTeX-array-column-letters'., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex 5178ba6 16/28: Parse hf-tikz messages suggesting to rerun LaTeX., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex bb195ae 15/28: Add new style file for mnras class., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex c2c7dd9 18/28: Parse user-defined new column types., Tassilo Horn, 2015/08/07
- [elpa] externals/auctex e301b71 22/28: Add new style textpos.el., Tassilo Horn, 2015/08/07