[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: TeX-insert-dollar not refusing
From: |
Arash Esbati |
Subject: |
Re: TeX-insert-dollar not refusing |
Date: |
Sun, 05 Jan 2020 22:06:59 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 |
Hi Pieter,
Pieter Pareit <address@hidden> writes:
> 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
Good catch, thanks for reporting this issue. I've pushed a change with
your suggestion to AUCTeX repo (13e67467).
Best, Arash