GNU bug report logs - #43300
[PATCH] Make M-x show new commands for obsolete aliases

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefan <at> marxist.se>

Date: Thu, 10 Sep 2020 00:00:02 UTC

Severity: wishlist

Tags: fixed, patch

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Kangas <stefan <at> marxist.se>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#43300: closed ([PATCH] Make M-x show new commands for
 obsolete aliases)
Date: Sun, 13 Sep 2020 13:07:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sun, 13 Sep 2020 06:06:20 -0700
with message-id <CADwFkmkjsUNoPZWibL13Z9xbW6VcaORN0Q1ssoqu9qGjm2eS8Q <at> mail.gmail.com>
and subject line Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
has caused the debbugs.gnu.org bug report #43300,
regarding [PATCH] Make M-x show new commands for obsolete aliases
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
43300: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=43300
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Kangas <stefan <at> marxist.se>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 9 Sep 2020 16:59:33 -0700
[Message part 3 (text/plain, inline)]
Severity: wishlist

Please find attached two patches that tweaks how M-x
(execute-extended-command) works:

1. Show obsolete commands, and give their new name as an annotation.

M-x recently got the capability to show the keybindings for commands in
an annotation (in parenthesis after the command name).  This patch makes
it show new names for obsolete aliases in the same way, instead of just
refusing to show them.  This should help users ease into the new name
less abruptly and disruptively, instead of having it just disappearing
from M-x and be nowhere to be found.

As an added bonus, we could more confidently mark an alias such as
`display-time-world' obsolete (without worrying that it will just be
gone in the next release).

(Yes, if you type out the full name, you can still call it, but chances
are that many users are very reliant on tab completion and will assume
that it's just gone if it doesn't show up.)

2. Show the function that aliases point to in the same way.
[0001-Make-M-x-show-obsolete-commands.patch (text/x-diff, attachment)]
[0002-Make-M-x-show-what-aliases-point-to.patch (text/x-diff, attachment)]
[Message part 6 (message/rfc822, inline)]
From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 43300-done <at> debbugs.gnu.org
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Sun, 13 Sep 2020 06:06:20 -0700
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> I haven't tried the patch, but it looks good to me.

Thanks.  Pushed to master as commit 1b0a922a19 and 06d86b954d.


This bug report was last modified 4 years and 5 days ago.

Previous Next


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