emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] 199/299: Fix bindings of narrowing functions.


From: Stefan Monnier
Subject: [elpa] 199/299: Fix bindings of narrowing functions.
Date: Sun, 02 Nov 2014 03:11:25 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

commit e231a73465cc1254001e830f937d3127d778a061
Author: Mosè Giordano <address@hidden>
Date:   Sat Nov 23 16:50:15 2013 +0100

    Fix bindings of narrowing functions.
    
    * latex.el (LaTeX-common-initialization):
    
    * tex.el (VirTeX-common-initialization): Move
    `LaTeX-narrow-to-environment' and `TeX-narrow-to-group' bindings
    to the AUCTeX maps because `narrow-map' is not defined in GNU
    Emacs < 22.2 and XEmacs.  Reported by Giacomo Boffi.
---
 ChangeLog |    9 +++++++++
 latex.el  |    2 +-
 tex.el    |    2 +-
 3 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3ea8bf3..2838966 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-11-23  Mos� Giordano  <address@hidden>
+
+       * latex.el (LaTeX-common-initialization):
+
+       * tex.el (VirTeX-common-initialization): Move
+       `LaTeX-narrow-to-environment' and `TeX-narrow-to-group' bindings
+       to the AUCTeX maps because `narrow-map' is not defined in GNU
+       Emacs < 22.2 and XEmacs.  Reported by Giacomo Boffi.
+
 2013-11-13  Mos� Giordano  <address@hidden>
 
        * style/biblatex.el ("biblatex"): Declare expert macros and
diff --git a/latex.el b/latex.el
index e3ff30c..45aaf81 100644
--- a/latex.el
+++ b/latex.el
@@ -6013,7 +6013,7 @@ i.e. you do _not_ have to cater for this yourself by 
adding \\\\' or $."
   (easy-menu-add LaTeX-mode-menu LaTeX-mode-map)
   (easy-menu-add LaTeX-mode-command-menu LaTeX-mode-map)
 
-  (define-key narrow-map "e" 'LaTeX-narrow-to-environment))
+  (define-key LaTeX-map "C-xne" 'LaTeX-narrow-to-environment))
 
 (defun LaTeX-imenu-create-index-function ()
   "Imenu support function for LaTeX."
diff --git a/tex.el b/tex.el
index fc31c1d..2c3cf5e 100644
--- a/tex.el
+++ b/tex.el
@@ -3141,7 +3141,7 @@ The algorithm is as follows:
   (make-local-variable 'TeX-auto-update)
   (setq TeX-auto-update t)
 
-  (define-key narrow-map "g" 'TeX-narrow-to-group)
+  (define-key TeX-map "C-xng" 'TeX-narrow-to-group)
 
   ;; Minor modes
   (when TeX-source-correlate-mode



reply via email to

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