summaryrefslogtreecommitdiff
path: root/lisp/textmodes/tex-mode.el
diff options
context:
space:
mode:
authorKarl Fogel <kfogel@red-bean.com>2016-08-30 11:14:37 -0500
committerKarl Fogel <kfogel@red-bean.com>2016-08-30 11:14:37 -0500
commit2b404e8391b7ac26b734710d8290a6ef6a2e32b1 (patch)
tree8957f34326c5a5b010011bdc87941d4ff0606436 /lisp/textmodes/tex-mode.el
parenta9118afcd7d601190c5474820b58289b5ab5cd7e (diff)
downloademacs-2b404e8391b7ac26b734710d8290a6ef6a2e32b1.tar.gz
Use normal double quotes in TeX / LaTeX comments
* lisp/textmodes/tex-mode.el (tex-insert-quote): When in a comment, default to inserting a normal double quote (") instead of TeX-style open (``) or close ('') quote marks. * etc/NEWS (TeX mode): Note the change. * test/lisp/electric-tests.el (autowrapping-7): Adjust accordingly. See this thread for discussion: https://lists.gnu.org/archive/html/emacs-devel/2016-08/msg00611.html From: Karl Fogel <kfogel {_AT_} red-bean.com> To: Emacs Development <emacs-devel {_AT_} gnu.org> Subject: [PATCH] Have LaTeX mode use normal double quotes in comments. Date: Mon, 29 Aug 2016 14:44:12 -0500 Message-ID: <87twe3icmr.fsf@red-bean.com>
Diffstat (limited to 'lisp/textmodes/tex-mode.el')
-rw-r--r--lisp/textmodes/tex-mode.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el
index 710899fa30d..4430fd64969 100644
--- a/lisp/textmodes/tex-mode.el
+++ b/lisp/textmodes/tex-mode.el
@@ -1311,6 +1311,7 @@ inserts \" characters."
;;
(if (or arg (memq (char-syntax (preceding-char)) '(?/ ?\\))
(eq (get-text-property (point) 'face) 'tex-verbatim)
+ (nth 4 (syntax-ppss)) ; non-nil if point is in a TeX comment
;; Discover if a preceding occurrence of `tex-open-quote'
;; should be morphed to a normal double quote.
;;