[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 117/299: Insert one $ when point is in a verbatim construct.
From: |
Stefan Monnier |
Subject: |
[elpa] 117/299: Insert one $ when point is in a verbatim construct. |
Date: |
Sun, 02 Nov 2014 03:10:45 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 0c79eae3bc0028dff5851c8b29a193a1a4bcb80c
Author: Mosè Giordano <address@hidden>
Date: Sun May 12 20:26:45 2013 +0200
Insert one $ when point is in a verbatim construct.
* tex.el (TeX-insert-dollar): Insert just a single dollar when the
point is in a verbatim-like construct.
---
ChangeLog | 3 +++
tex.el | 5 +++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 878c57f..6e09034 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2013-05-12 Mos� Giordano <address@hidden>
+ * tex.el (TeX-insert-dollar): Insert just a single dollar when the
+ point is in a verbatim-like construct.
+
* font-latex.el (font-latex-jit-lock-force-redisplay): Don't rely
on existing `jit-lock-force-redisplay' because recent bzr Emacs
broke compatibility changing the number of arguments. Reported by
diff --git a/tex.el b/tex.el
index f18719d..cc4257c 100644
--- a/tex.el
+++ b/tex.el
@@ -5195,8 +5195,9 @@ sign. With optional ARG, insert that many dollar signs."
(arg
;; Numerical arg inserts that many
(insert (make-string (prefix-numeric-value arg) ?\$)))
- ((TeX-escaped-p)
- ;; This is escaped with `\', so just insert one.
+ ((or (TeX-escaped-p) (TeX-verbatim-p))
+ ;; Point is escaped with `\' or is in a verbatim-like construct, so just
+ ;; insert one $.
(insert "$"))
((texmathp)
;; We are inside math mode
- [elpa] 95/299: Add new style files acro.el and acronym.el., (continued)
- [elpa] 95/299: Add new style files acro.el and acronym.el., Stefan Monnier, 2014/11/01
- [elpa] 108/299: Some improvements to amsthm style file., Stefan Monnier, 2014/11/01
- [elpa] 107/299: Add counters and pagestyle to some class styles., Stefan Monnier, 2014/11/01
- [elpa] 110/299: Set default environment for some class styles., Stefan Monnier, 2014/11/01
- [elpa] 113/299: Change BibTeX button to Biber when LaTeX-using-biber is non-nil., Stefan Monnier, 2014/11/01
- [elpa] 112/299: Add new variable `LaTeX-default-document-environment'., Stefan Monnier, 2014/11/01
- [elpa] 111/299: Add history variables in some style files., Stefan Monnier, 2014/11/01
- [elpa] 115/299: Document LaTeX-default-document-environment., Stefan Monnier, 2014/11/01
- [elpa] 114/299: Wrap dollars around active region typing `$'., Stefan Monnier, 2014/11/01
- [elpa] 119/299: Fixes to TeX-arg-index-tag, TeX-arg-cite, TeX-parse-arguments., Stefan Monnier, 2014/11/01
- [elpa] 117/299: Insert one $ when point is in a verbatim construct.,
Stefan Monnier <=
- [elpa] 109/299: Fix in TeX-arg-insert-braces., Stefan Monnier, 2014/11/01
- [elpa] 121/299: Silence some compilation warning., Stefan Monnier, 2014/11/01
- [elpa] 124/299: Make forward PDF search with Okular work., Stefan Monnier, 2014/11/01
- [elpa] 123/299: Fix docstring of `TeX-source-correlate-sync-source'., Stefan Monnier, 2014/11/01
- [elpa] 116/299: Temporary fix for font-latex-jit-lock-force-redisplay., Stefan Monnier, 2014/11/01
- [elpa] 126/299: Fix for autogen.sh., Stefan Monnier, 2014/11/01
- [elpa] 118/299: Add new style files fancyvrb.el and xparse.el., Stefan Monnier, 2014/11/01
- [elpa] 125/299: Simplify LaTeX-env-figure function., Stefan Monnier, 2014/11/01
- [elpa] 127/299: Execute TeX-run-compile in TeX-master-directory., Stefan Monnier, 2014/11/01
- [elpa] 120/299: Move remaining .cvsignore to .gitignore., Stefan Monnier, 2014/11/01