GNU bug report logs - #32076
24.5; Electric behavior of dollar sign using AUCTeX

Previous Next

Package: emacs;

Reported by: Patrick <patrick <at> math.utah.edu>

Date: Sat, 7 Jul 2018 00:09:02 UTC

Severity: normal

Merged with 40865

Found in versions 24.5, 26.3

Full log


Message #11 received at 32076 <at> debbugs.gnu.org (full text, mbox):

From: Patrick Graf <pgraf39 <at> gmail.com>
To: João Távora <joaotavora <at> gmail.com>, 
 32076 <at> debbugs.gnu.org
Subject: Re: bug#32076: 24.5; Electric behavior of dollar sign using AUCTeX
Date: Tue, 10 Jul 2018 07:32:34 +0200
[Message part 1 (text/plain, inline)]
Hi João,
sorry for not being self-contained. This was my first GNU bug report ;-)
Concerning the fix, I tried texmathp today and indeed it works fine. I have
in mind something like the following snippet (to be run whenever $ is hit):

  (interactive)
  (if (texmathp)
    (if (looking-at-p "[$]")
      (forward-char 1)
      (insert "$"))
    (insert "$$")
    (backward-char 1)))

This also takes care of the issue that when I delete the closing $ by
hitting backspace and then type $ again, a new pair used to be inserted.
A minor drawback is that this only works for $...$ specifically and it
requires AUCTeX, which not everybody may be using. But $...$ is good enough
for me and if I understand you correctly, one could include texmathp.el in
the Emacs source.
Cheers,
Patrick
[Message part 2 (text/html, inline)]

This bug report was last modified 3 years and 354 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.