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

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

[elpa] elpa da88a3e 01/51: Dinamically put delete-selection prop to TeX-


From: Tassilo Horn
Subject: [elpa] elpa da88a3e 01/51: Dinamically put delete-selection prop to TeX-insert-dollar
Date: Sun, 22 May 2016 07:22:47 +0000 (UTC)

branch: elpa
commit da88a3eca3107372131aa26930e548c039fe1b51
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Dinamically put delete-selection prop to TeX-insert-dollar
    
    * tex.el (TeX-insert-dollar): Put `delete-selection' property only when
      `TeX-electric-math' is nil.  Suggested by Roger Lipsett.  Fixes
      bug#23177.
---
 tex.el |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tex.el b/tex.el
index 588848a..006af7e 100644
--- a/tex.el
+++ b/tex.el
@@ -6445,6 +6445,7 @@ NAME may be a package, a command, or a document."
 (put 'TeX-newline 'delete-selection t)
 (put 'TeX-insert-quote 'delete-selection t)
 (put 'TeX-insert-backslash 'delete-selection t)
+(put 'TeX-insert-dollar 'delete-selection (lambda () (null TeX-electric-math)))
 
 (defun TeX-how-many (regexp &optional rstart rend)
   "Compatibily function for `how-many'.



reply via email to

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