From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Sat, 30 Dec 2017 22:07:16 +0000
> Cc: 29812@d= ebbugs.gnu.org
>
>=C2=A0 =C2=A0 emacs -Q
>=C2=A0 =C2=A0 M-x electric-quote-mode RET
>=C2=A0 =C2=A0 M-x set-variable RET electric-quote-replace-double RET t = RET
>
>=C2=A0 Type:
>
>=C2=A0 =C2=A0 "foo \"foo\""
>
>=C2=A0 You get this in the buffer:
>
>=C2=A0 =C2=A0 "foo \=E2=80=9Dfoo\=E2=80=9D"
>
>=C2=A0 I expected "foo \=E2=80=9Cfoo\=E2=80=9D" 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.
AFAIK, electric-quote-replace-double is supposed to work in comments
and strings in buffers under programming language modes, not only in
text modes.=C2=A0 And it works correctly for me in C modes and also in Lisp=
comments, so why not in Lisp strings?
> At least in the context of Emacs Lisp strings, I'd expect "fo= o \"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.
Typing just a quote in a Lisp string terminates the string, so I
wouldn't expect that to produce curved quotes.=C2=A0 And a backslash ju= st
quotes the next character, so there's nothing wrong with having it
before curved quotes.
Anyway, if this feature is not supposed to work reliably in
programming language strings, perhaps we shouldn't try?=C2=A0 Having it=
sometimes work and sometimes not is IMO confusing.