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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 43300 in the body.
You can then email your comments to 43300 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Thu, 10 Sep 2020 00:00:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Kangas <stefan <at> marxist.se>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 10 Sep 2020 00:00:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Thu, 10 Sep 2020 21:10:01 GMT) Full text and rfc822 format available.

Message #8 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 43300 <at> debbugs.gnu.org
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Thu, 10 Sep 2020 23:09:47 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

> 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).

Sounds like a good idea.

> 2. Show the function that aliases point to in the same way.

Makes sense.

> * lisp/simple.el (read-extended-command): Don't hide obsolete
> commands.
> (read-extended-command--annotation): Show an annotation for obsolete
> commands that says what their new name is.

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

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Sun, 13 Sep 2020 13:07:03 GMT) Full text and rfc822 format available.

Notification sent to Stefan Kangas <stefan <at> marxist.se>:
bug acknowledged by developer. (Sun, 13 Sep 2020 13:07:03 GMT) Full text and rfc822 format available.

Message #13 received at 43300-done <at> debbugs.gnu.org (full text, mbox):

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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 12 Oct 2020 11:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Wed, 18 Nov 2020 09:14:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Wed, 18 Nov 2020 09:16:01 GMT) Full text and rfc822 format available.

Message #20 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 43300 <at> debbugs.gnu.org
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 18 Nov 2020 11:14:18 +0200
unarchive 43300
quit

> 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.

I noticed that some commands have " (nil)" appended as annotations
in M-x completions, e.g. 'M-x browse- TAB'.  Looks like " (nil)"
is returned in read-extended-command--annotation:

          (obsolete
           (format " (%s)" (car obsolete)))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Wed, 18 Nov 2020 12:45:01 GMT) Full text and rfc822 format available.

Message #23 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Juri Linkov <juri <at> linkov.net>
Cc: 43300 <at> debbugs.gnu.org, Stefan Kangas <stefan <at> marxist.se>
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 18 Nov 2020 12:43:51 +0000
[Message part 1 (text/plain, inline)]
Juri Linkov <juri <at> linkov.net> writes:

>> 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.
>
> I noticed that some commands have " (nil)" appended as annotations
> in M-x completions, e.g. 'M-x browse- TAB'.  Looks like " (nil)"
> is returned in read-extended-command--annotation:
>
>           (obsolete
>            (format " (%s)" (car obsolete)))

Is the following sufficient?

[m-x.diff (text/x-diff, inline)]
diff --git a/lisp/simple.el b/lisp/simple.el
index bb28145502..2acceef6a1 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -1964,13 +1964,14 @@ read-extended-command
      #'commandp t nil 'extended-command-history)))
 
 (defun read-extended-command--annotation (command-name)
-  (let* ((fun (and (stringp command-name) (intern-soft command-name)))
+  "Return annotation for COMMAND-NAME in M-x completion."
+  (let* ((fun (intern-soft command-name))
          (binding (where-is-internal fun overriding-local-map t))
          (obsolete (get fun 'byte-obsolete-info))
          (alias (symbol-function fun)))
     (cond ((symbolp alias)
            (format " (%s)" alias))
-          (obsolete
+          ((car obsolete)
            (format " (%s)" (car obsolete)))
           ((and binding (not (stringp binding)))
            (format " (%s)" (key-description binding))))))
[Message part 3 (text/plain, inline)]
Thanks,

-- 
Basil

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Wed, 18 Nov 2020 13:50:02 GMT) Full text and rfc822 format available.

Message #26 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: "Basil L. Contovounesios" <contovob <at> tcd.ie>, Juri Linkov <juri <at> linkov.net>
Cc: 43300 <at> debbugs.gnu.org
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 18 Nov 2020 05:49:48 -0800
"Basil L. Contovounesios" <contovob <at> tcd.ie> writes:

> Juri Linkov <juri <at> linkov.net> writes:
>
>>> 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.
>>
>> I noticed that some commands have " (nil)" appended as annotations
>> in M-x completions, e.g. 'M-x browse- TAB'.  Looks like " (nil)"
>> is returned in read-extended-command--annotation:
>>
>>           (obsolete
>>            (format " (%s)" (car obsolete)))

Thanks for reporting this.

> Is the following sufficient?

The old behavior was to never show obsolete commands in completion.  You
could therefore only run one if you remembered and manually typed in the
old name.  If you made a command obsolete, it would therefore just
appear to disappear from one release to the next.

The new behavior was intended to be less abrupt for cases where the old
command is anyways just an alias for a new command.  In this way, we can
more gently nudge users to use the new command instead.

I therefore think we should revert back to the old behavior for commands
that are obsolete without an alternative, that is we should not add such
commands to the list of completion candidates.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Wed, 18 Nov 2020 20:00:02 GMT) Full text and rfc822 format available.

Message #29 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 18 Nov 2020 21:10:02 +0200
>> Is the following sufficient?
>
> The old behavior was to never show obsolete commands in completion.  You
> could therefore only run one if you remembered and manually typed in the
> old name.  If you made a command obsolete, it would therefore just
> appear to disappear from one release to the next.
>
> The new behavior was intended to be less abrupt for cases where the old
> command is anyways just an alias for a new command.  In this way, we can
> more gently nudge users to use the new command instead.
>
> I therefore think we should revert back to the old behavior for commands
> that are obsolete without an alternative, that is we should not add such
> commands to the list of completion candidates.

Or maybe still some indication is needed to be displayed, even if there is
no alias for a new command.  Maybe display just " (obsolete)"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Wed, 18 Nov 2020 21:52:01 GMT) Full text and rfc822 format available.

Message #32 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Drew Adams <drew.adams <at> oracle.com>
To: Juri Linkov <juri <at> linkov.net>, Stefan Kangas <stefan <at> marxist.se>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org
Subject: RE: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 18 Nov 2020 13:51:19 -0800 (PST)
> > I therefore think we should revert back to the old behavior for
> > commands that are obsolete without an alternative, that is we
> > should not add such commands to the list of completion candidates.
> 
> Or maybe still some indication is needed to be displayed, even if there
> is no alias for a new command.  Maybe display just " (obsolete)"?

Why?  That can give the false impression that the
command doesn't _work_.

(And if for some reason the command really doesn't
work then it's not only obsolete.  And a user will
soon enough understand that it doesn't work.)





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Wed, 18 Nov 2020 22:07:01 GMT) Full text and rfc822 format available.

Message #35 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Juri Linkov <juri <at> linkov.net>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 18 Nov 2020 14:06:05 -0800
Juri Linkov <juri <at> linkov.net> writes:

>>> Is the following sufficient?
>>
>> The old behavior was to never show obsolete commands in completion.  You
>> could therefore only run one if you remembered and manually typed in the
>> old name.  If you made a command obsolete, it would therefore just
>> appear to disappear from one release to the next.
>>
>> The new behavior was intended to be less abrupt for cases where the old
>> command is anyways just an alias for a new command.  In this way, we can
>> more gently nudge users to use the new command instead.
>>
>> I therefore think we should revert back to the old behavior for commands
>> that are obsolete without an alternative, that is we should not add such
>> commands to the list of completion candidates.
>
> Or maybe still some indication is needed to be displayed, even if there is
> no alias for a new command.  Maybe display just " (obsolete)"?

It's an alternative, yes.  It has the drawback that now things in
parenthesis can mean not only things you can run (keybindings and
commands) but also just general information.

FWIW, I tend to lean towards maintaining the old behavior here.
I also note that Stefan Monnier didn't particularly like the new
behavior, as it doesn't discourage users enough from not using the
commands.  So maybe we could meet him half-way and maintain the old
behavior, even if only for some cases.
See: https://lists.gnu.org/r/emacs-devel/2020-09/msg01102.html




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 17 Dec 2020 12:24:04 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Tue, 16 Feb 2021 15:27:02 GMT) Full text and rfc822 format available.

Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 16 Feb 2021 15:27:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Tue, 16 Feb 2021 15:37:01 GMT) Full text and rfc822 format available.

Message #44 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Juri Linkov <juri <at> linkov.net>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org,
 Lars Ingebrigtsen <larsi <at> gnus.org>, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Tue, 16 Feb 2021 09:35:53 -0600
unarchive 43300
reopen 43300
thanks

(This bug is about showing obsolete aliases for commands in the list of
completion candidates.)

Stefan Kangas <stefan <at> marxist.se> writes:

> FWIW, I tend to lean towards maintaining the old behavior here.
> I also note that Stefan Monnier didn't particularly like the new
> behavior, as it doesn't discourage users enough from not using the
> commands.  So maybe we could meet him half-way and maintain the old
> behavior, even if only for some cases.
> See: https://lists.gnu.org/r/emacs-devel/2020-09/msg01102.html

I dropped the ball here a little bit, but I note that Stefan Monnier did
not like the new behavior, and in hindsight (and with more experience
using this feature) I think he is correct.

I also note that the new behavior fails in cases like:

    query-replace-regexp-eval (use the `\,' feature of `query-replace-regexp'
    for interactive calls, and `search-forward-regexp'/`replace-match'
    for Lisp calls.)

IOW, even though I was the one who suggested and implemented this
feature, I now think that it was a mistake.  I would therefore suggest
reverting commit 06d86b954d2 to go back to the previous, Emacs 27
behavior.

Any objections?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Tue, 16 Feb 2021 16:25:02 GMT) Full text and rfc822 format available.

Message #47 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Tue, 16 Feb 2021 17:23:48 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> I dropped the ball here a little bit, but I note that Stefan Monnier did
> not like the new behavior, and in hindsight (and with more experience
> using this feature) I think he is correct.

I think the original idea here was good -- make command deprecation less
abrupt, and teach users about the new aliases.  

> I also note that the new behavior fails in cases like:
>
>     query-replace-regexp-eval (use the `\,' feature of `query-replace-regexp'
>     for interactive calls, and `search-forward-regexp'/`replace-match'
>     for Lisp calls.)
>
> IOW, even though I was the one who suggested and implemented this
> feature, I now think that it was a mistake.  I would therefore suggest
> reverting commit 06d86b954d2 to go back to the previous, Emacs 27
> behavior.

Couldn't those cases be fixed?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Tue, 16 Feb 2021 17:33:02 GMT) Full text and rfc822 format available.

Message #50 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Tue, 16 Feb 2021 11:32:27 -0600
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Stefan Kangas <stefan <at> marxist.se> writes:
>
>> I dropped the ball here a little bit, but I note that Stefan Monnier did
>> not like the new behavior, and in hindsight (and with more experience
>> using this feature) I think he is correct.
>
> I think the original idea here was good -- make command deprecation less
> abrupt, and teach users about the new aliases.

I find myself going back and forth: with the new filtering, there is
suddenly a hope that `M-x' can produce a clean list of useful commands.

The feature discussed here makes the list less clean, for reasons that
are only temporarily useful.  This is compounded by the fact that we
maintain backwards compatibility aliases for such a long time.  But of
course there are also benefits to this more gentle obsoletion, as you
say.

Here's an idea:

How about showing only obsolete aliases that are new in this major
version?  That could give us almost all the benefits without any of the
drawbacks.

> Couldn't those cases be fixed?

Yes, it should be trivial.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Tue, 16 Feb 2021 17:38:01 GMT) Full text and rfc822 format available.

Message #53 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Tue, 16 Feb 2021 18:36:59 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> I find myself going back and forth: with the new filtering, there is
> suddenly a hope that `M-x' can produce a clean list of useful commands.

Yeah, that's true -- `M-x gnus-summary-toggle-truncation' is pretty
annoying to have appear here (it's an obsolete alias)...  On the other
hand, it could be tagged with a mode (somehow) and that would also make
it go away (outside of Gnus summary buffers).

> The feature discussed here makes the list less clean, for reasons that
> are only temporarily useful.  This is compounded by the fact that we
> maintain backwards compatibility aliases for such a long time.  But of
> course there are also benefits to this more gentle obsoletion, as you
> say.
>
> Here's an idea:
>
> How about showing only obsolete aliases that are new in this major
> version?  That could give us almost all the benefits without any of the
> drawbacks.

Hm!  That's a pretty attractive option.  So commands deprecate faster
than functions...  makes sense to me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Wed, 17 Feb 2021 09:53:02 GMT) Full text and rfc822 format available.

Message #56 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 17 Feb 2021 01:52:18 -0800
[Message part 1 (text/plain, inline)]
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

>> How about showing only obsolete aliases that are new in this major
>> version?  That could give us almost all the benefits without any of the
>> drawbacks.
>
> Hm!  That's a pretty attractive option.  So commands deprecate faster
> than functions...  makes sense to me.

Here's a patch that does that.
[0001-Don-t-consider-obsolete-commands-for-obsoletion-in-s.patch (text/x-diff, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Wed, 17 Feb 2021 11:18:01 GMT) Full text and rfc822 format available.

Message #59 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 17 Feb 2021 12:16:49 +0100
Stefan Kangas <stefan <at> marxist.se> writes:

> Here's a patch that does that.

[...]

> * lisp/simple.el (read-extended-command): Exclude obsolete commands
> that are either lacking a 'current-name' or were obsoleted in a
> previous major version.  (Bug#43300)

Looks good to me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Wed, 17 Feb 2021 13:27:01 GMT) Full text and rfc822 format available.

Message #62 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: "Basil L. Contovounesios" <contovob <at> tcd.ie>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: 43300 <at> debbugs.gnu.org, Lars Ingebrigtsen <larsi <at> gnus.org>,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Wed, 17 Feb 2021 13:26:21 +0000
Stefan Kangas <stefan <at> marxist.se> writes:

> +                      ;; Exclude from completions obsolete commands
> +                      ;; lacking a `current-name', or where `when' is
> +                      ;; not the current major version.
> +                      (lambda (sym)
> +                        (let ((obsolete (get sym 'byte-obsolete-info)))
> +                          (and (funcall pred sym)
> +                               (or (equal string (symbol-name sym))

AKA string=.

Thanks,

-- 
Basil




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#43300; Package emacs. (Thu, 13 May 2021 10:20:02 GMT) Full text and rfc822 format available.

Message #65 received at 43300 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Stefan Kangas <stefan <at> marxist.se>
Cc: "Basil L. Contovounesios" <contovob <at> tcd.ie>, 43300 <at> debbugs.gnu.org,
 Stefan Monnier <monnier <at> iro.umontreal.ca>, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases
Date: Thu, 13 May 2021 12:19:03 +0200
Stefan Kangas <stefan <at> marxist.se> writes:

>> Hm!  That's a pretty attractive option.  So commands deprecate faster
>> than functions...  makes sense to me.
>
> Here's a patch that does that.

I've now applied it to Emacs 28 (after some testing and a small fix).
Seems to work quite logically to me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 13 May 2021 10:20:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 43300 <at> debbugs.gnu.org and Stefan Kangas <stefan <at> marxist.se> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 13 May 2021 10:20:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 10 Jun 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 310 days ago.

Previous Next


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