[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
TeX-insert-dollar not refusing
From: |
Pieter Pareit |
Subject: |
TeX-insert-dollar not refusing |
Date: |
Sat, 04 Jan 2020 10:46:00 +0100 |
User-agent: |
Evolution 3.34.2 (3.34.2-1.fc31) |
Develops,
The documentation of TeX-insert-dollar notes that if the current math
mode was not entered with a dollar, it refuses to insert one. At the
moment, it still inserts a dollar. Can this be fixed.
I propose the following:
diff --git a/tex.el b/tex.el
index 95448d8b..e8b9e72c 100644
--- a/tex.el
+++ b/tex.el
@@ -5846,8 +5846,7 @@ sign. With optional ARG, insert that many dollar
signs."
(t
;; Math mode was not entered with dollar - we cannot finish it
with one.
(message "Math mode started with `%s' cannot be closed with
dollar"
- (car texmathp-why))
- (insert "$"))))
+ (car texmathp-why)))))
(t
;; Just somewhere in the text.
(cond
- TeX-insert-dollar not refusing,
Pieter Pareit <=