From: Eli Zaretskii <eliz@gnu.org>
To: Philipp Stephani <p.stephani2@gmail.com>
Cc: 29812@debbugs.gnu.org
Subject: bug#29812: 27.0.50; electric-quote-replace-double misbehaves in Lisp strings
Date: Sun, 07 Jan 2018 18:50:16 +0200 [thread overview]
Message-ID: <83lgh98vg7.fsf@gnu.org> (raw)
In-Reply-To: <CAArVCkQn8wxaqbues8QdvjTXKs+n3RcVka6T01=DEV1icYE=uQ@mail.gmail.com> (message from Philipp Stephani on Sun, 07 Jan 2018 12:56:31 +0000)
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Sun, 07 Jan 2018 12:56:31 +0000
> Cc: 29812@debbugs.gnu.org
>
> > I mean some way of inserting “foo” inside a string. Is that possible
> > somehow?
> >
> > Sure, either by inserting the characters in some other way, or by using `` and '' (double apostrophe).
>
> Then maybe we should just give up on electric-quote-replace-double
> inside strings, and use double apostrophes instead?
>
> Why? It works as designed and expected – that is, a double quote will terminate the string. That is what users
> want most of the time. Also, there are many languages where strings aren't double-quoted, such as Python.
Once again, my problem is that one cannot insert “foo” inside strings
(unless in languages where strings are quoted 'like this', I guess).
So I'm saying that we probably shouldn't advertise this method for
text in strings in programming modes, because it doesn't really work
there.
next prev parent reply other threads:[~2018-01-07 16:50 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-22 13:40 bug#29812: 27.0.50; electric-quote-replace-double misbehaves in Lisp strings Eli Zaretskii
2017-12-30 22:07 ` Philipp Stephani
2017-12-31 15:51 ` Eli Zaretskii
2017-12-31 16:16 ` Philipp Stephani
2017-12-31 16:38 ` Eli Zaretskii
2017-12-31 16:49 ` Philipp Stephani
2017-12-31 16:59 ` Eli Zaretskii
2017-12-31 17:03 ` Philipp Stephani
2017-12-31 17:29 ` Eli Zaretskii
2018-01-07 12:56 ` Philipp Stephani
2018-01-07 16:50 ` Eli Zaretskii [this message]
2018-01-07 17:19 ` Philipp Stephani
2017-12-31 16:51 ` bug#29812: [PATCH] Ignore escape characters for context-sensitive quotes (Bug#29812) Philipp Stephani
[not found] ` <20171231165104.68136-1-phst@google.com>
2018-01-07 12:54 ` Philipp Stephani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83lgh98vg7.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=29812@debbugs.gnu.org \
--cc=p.stephani2@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).