From: Lars Ingebrigtsen <larsi@gnus.org>
To: Felician Nemeth <felician.nemeth@gmail.com>
Cc: 47215@debbugs.gnu.org
Subject: bug#47215: 28.0.50; Let M-x switch between M-x and M-X
Date: Sun, 11 Apr 2021 19:36:24 +0200 [thread overview]
Message-ID: <87k0p8206f.fsf@gnus.org> (raw)
In-Reply-To: <87r1ji3twe.fsf@betli.tmit.bme.hu> (Felician Nemeth's message of "Sat, 10 Apr 2021 19:56:49 +0200")
Felician Nemeth <felician.nemeth@gmail.com> writes:
> I've discovered that the initial-input argument of `completing-read` can
> be written as (STRING . POSITION). The attached patch makes use of it
> and shows a simple implementation of my original wish.
Nice; your patch works very smoothly -- using `M-x' to switch here feels
very natural.
> However, the patch creates code duplication.
I think that can be fixed by refactoring out most of the interactive
spec of `execute-extended-command-for-buffer' and then reusing it.
> Also, I don't know how it copes with recursive editing: maybe it's not
> a good idea to rebind M-x when `enable-recursive-minibuffers' is t.
A lot of people have `enable-recursive-minibuffers' bound, though, which
is an argument against using `M-x' as the keystroke to switch between
modes.
> Finally, the docstring says initial-input is deprecated.
I think this use case demonstrates that perhaps we should slightly
un-deprecate initial-input -- instead of deprecating it, we could
instead just discourage the usage.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2021-04-11 17:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-17 17:56 bug#47215: 28.0.50; Let M-x switch between M-x and M-X Felician Nemeth
2021-03-18 5:08 ` Lars Ingebrigtsen
2021-04-04 17:51 ` Felician Nemeth
2021-04-04 19:52 ` Lars Ingebrigtsen
2021-04-10 17:56 ` Felician Nemeth
2021-04-11 17:36 ` Lars Ingebrigtsen [this message]
2021-04-11 18:29 ` bug#47215: [External] : " Drew Adams
2022-06-24 18:18 ` Lars Ingebrigtsen
2022-06-24 18:55 ` Juri Linkov
2022-06-24 19:00 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k0p8206f.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=47215@debbugs.gnu.org \
--cc=felician.nemeth@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.