[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/cdlatex 28a07e07b9 1/3: Fix bug with insertion of ' in nor
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/cdlatex 28a07e07b9 1/3: Fix bug with insertion of ' in normal text |
Date: |
Wed, 23 Aug 2023 03:59:05 -0400 (EDT) |
branch: elpa/cdlatex
commit 28a07e07b98ab279c104e315ba7ac9ea8049c19f
Author: Carsten Dominik <carsten.dominik@gmail.com>
Commit: Carsten Dominik <carsten.dominik@gmail.com>
Fix bug with insertion of ' in normal text
---
cdlatex.el | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/cdlatex.el b/cdlatex.el
index 2b470256f2..fdc8383f7e 100644
--- a/cdlatex.el
+++ b/cdlatex.el
@@ -1336,8 +1336,12 @@ constant `cdlatex-math-modify-alist'."
(setq acc (nth 2 ass))
(setq rmdot (nth 3 ass))
(setq it (nth 4 ass))
- (if (not cmd) (error "No such modifier `%c' %s math mode" char
- (if inside-math "inside" "outside")))
+ (if (not cmd)
+ (progn
+ (message "No such modifier `%c' %s math mode" char
+ (if inside-math "inside" "outside"))
+ (insert cdlatex-math-modify-prefix char)
+ (throw 'exit t)))
(if (string-match "\\(.*\\)\\?\\(.*\\)" cmd)
(setq before (match-string 1 cmd) after (match-string 2 cmd)))
(cond