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 #17 received at 29812 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Philipp Stephani <p.stephani2 <at> gmail.com>
Cc: 29812 <at> debbugs.gnu.org
Subject: Re: bug#29812: 27.0.50; electric-quote-replace-double misbehaves in
 Lisp strings
Date: Sun, 31 Dec 2017 18:38:02 +0200
> From: Philipp Stephani <p.stephani2 <at> gmail.com>
> Date: Sun, 31 Dec 2017 16:16:02 +0000
> Cc: 29812 <at> debbugs.gnu.org
> 
>  AFAIK, electric-quote-replace-double is supposed to work in comments
>  and strings in buffers under programming language modes, not only in
>  text modes.  And it works correctly for me in C modes and also in Lisp
>  comments, so why not in Lisp strings?
> 
> Does it work as expected for you in C strings? I see the same behavior in C strings as in Lisp.

In C, "\"foo\"" produces ASCII quotes.

>  Anyway, if this feature is not supposed to work reliably in
>  programming language strings, perhaps we shouldn't try?  Having it
>  sometimes work and sometimes not is IMO confusing.
> 
> It should work in comments and strings, yes. However, given that the behavior is heuristic in all cases it's hard
> to define what the correct behavior should be.

Well, can you give an example where it does work in strings?  Maybe
I'm missing something, because it looked to me as if it never works in
that case.




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

Previous Next


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