unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Kangas <stefan@marxist.se>
To: 51040@debbugs.gnu.org
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: bug#51040: No curved quotes in format-prompt and minibuffer-default-prompt-format
Date: Tue, 5 Oct 2021 12:40:40 -0400	[thread overview]
Message-ID: <CADwFkm=2Y2hgUSy44j5tX2s+HyGJw6a4o3jDJ+8Rr8_GG+NJsw@mail.gmail.com> (raw)

It seems like `format-prompt' and `minibuffer-default-prompt-format'
does not support curved quotes.  Should they?

To reproduce, evaluate this forms in emacs -Q:

    (format-prompt "foo `bar'" nil)

    => "foo `bar': "

And:

    (let ((minibuffer-default-prompt-format " (default `%s')"))
      (format-prompt "foo `bar'" t))

    => "foo `bar' (default `t'): "

My expectation is that I get this, where fancy quotes are supported:

    "foo ‘bar’ (default ‘t’): "

Now, this is easy to fix, but we need to decide if it's okay that
`format-prompt' just runs `substitute-command-keys' on these by default.
I believe that fix should be fine, but maybe I'm missing something.





             reply	other threads:[~2021-10-05 16:40 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-05 16:40 Stefan Kangas [this message]
2021-10-05 16:44 ` bug#51040: No curved quotes in format-prompt and minibuffer-default-prompt-format Lars Ingebrigtsen
2021-10-05 17:11   ` Stefan Kangas
2021-10-06  8:58     ` Lars Ingebrigtsen
2021-10-11 20:58       ` Stefan Kangas
2021-10-12 12:03         ` Lars Ingebrigtsen
2021-10-12 12:36           ` Stefan Kangas
2021-10-12 14:17           ` Eli Zaretskii
2021-10-12 12:52         ` Eli Zaretskii
2021-10-12 15:59           ` Stefan Kangas
2021-10-12 16:31             ` Eli Zaretskii
2021-10-12 17:26               ` Stefan Kangas
2021-10-12 18:43                 ` Eli Zaretskii
2021-10-12 23:21                   ` Stefan Kangas
2021-10-13 12:07                     ` Eli Zaretskii
2021-10-13 12:25                       ` Stefan Kangas
2021-10-13 13:22                         ` Eli Zaretskii
2022-09-10  5:30                     ` Lars Ingebrigtsen
2021-10-12 23:44                   ` Dmitry Gutov
2022-09-10  5:38             ` Lars Ingebrigtsen
2022-09-10  6:13 ` Lars Ingebrigtsen

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='CADwFkm=2Y2hgUSy44j5tX2s+HyGJw6a4o3jDJ+8Rr8_GG+NJsw@mail.gmail.com' \
    --to=stefan@marxist.se \
    --cc=51040@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    /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).