GNU bug report logs - #52852
13.0.15; TeX-insert-quote fails near the beginning of buffer

Previous Next

Package: auctex;

Reported by: Andrea Greselin <greselin.andrea <at> gmail.com>

Date: Tue, 28 Dec 2021 15:24:02 UTC

Severity: normal

Found in version 13.0.15

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Andrea Greselin <greselin.andrea <at> gmail.com>
To: 52852 <at> debbugs.gnu.org
Subject: bug#52852: 13.0.15; TeX-insert-quote fails near the beginning of buffer
Date: Tue, 28 Dec 2021 16:22:52 +0100
[Message part 1 (text/plain, inline)]
Hello,

when ‘TeX-quote-after-quote’ is nil, ‘TeX-insert-quote’ fails when
called from a position closer to the beginning of buffer than the
length of an opening quotation mark. That’s due to a ‘forward-char’
trying to go back to see if the thing preceding the point is an
opening quote.

To reproduce the bug, open a buffer in ‘LaTeX-mode’, type a character
and invoke ‘TeX-insert-quote’. It just prints the message “Beginning
of buffer” without inserting anything.

I think it’s reasonable to insert an opening quote whenever there
isn’t room for one behind the point. I’ve attached a patch that
implements this behaviour.

All the best,
Andrea
[Message part 2 (text/html, inline)]
[quotes_patch.txt (text/plain, attachment)]

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

Previous Next


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