GNU bug report logs - #29812
27.0.50; electric-quote-replace-double misbehaves in Lisp strings

Previous Next

Package: emacs;

Reported by: Eli Zaretskii <eliz <at> gnu.org>

Date: Fri, 22 Dec 2017 13:41:02 UTC

Severity: normal

Found in version 27.0.50

Done: Philipp Stephani <p.stephani2 <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Philipp Stephani <p.stephani2 <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 29812 <at> debbugs.gnu.org
Subject: Re: bug#29812: 27.0.50; electric-quote-replace-double misbehaves in
 Lisp strings
Date: Sat, 30 Dec 2017 22:07:16 +0000
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> schrieb am Fr., 22. Dez. 2017 um 14:41 Uhr:

> To reproduce:
>
>   emacs -Q
>   M-x electric-quote-mode RET
>   M-x set-variable RET electric-quote-replace-double RET t RET
>
> Type:
>
>   "foo \"foo\""
>
> You get this in the buffer:
>
>   "foo \”foo\”"
>
> I expected "foo \“foo\”" instead.
>
>
I think it's not completely clear what to expect here. After all, electric
quote is for human-language text, which normally doesn't contain
backslashes.
At least in the context of Emacs Lisp strings, I'd expect "foo \"foo\""
here, i.e., ASCII quotes. The non-ASCII quotes don't need to be escaped, so
presumably escaping means that the user intended to type an ASCII quote.
[Message part 2 (text/html, inline)]

This bug report was last modified 7 years and 134 days ago.

Previous Next


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