From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 09 19:59:44 2020 Received: (at submit) by debbugs.gnu.org; 9 Sep 2020 23:59:44 +0000 Received: from localhost ([127.0.0.1]:35123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGA07-0006Gp-PR for submit@debbugs.gnu.org; Wed, 09 Sep 2020 19:59:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:58860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGA02-0006Gf-NQ for submit@debbugs.gnu.org; Wed, 09 Sep 2020 19:59:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46008) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGA02-0007t4-Ei for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2020 19:59:38 -0400 Received: from mail-ed1-f53.google.com ([209.85.208.53]:39024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGA00-0005WT-7n for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2020 19:59:38 -0400 Received: by mail-ed1-f53.google.com with SMTP id c10so4465883edk.6 for ; Wed, 09 Sep 2020 16:59:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=1qdT8c4OGiazv51KJ01uUeVqXv8sP3Vz/zQjpZhWED0=; b=BONQo38TR3ApxXYkrNgI2SZ4kVqrVtm4EtJc+QRx7+leJTPUbD2K6XS9Ox5I2hIiqb LgdTjDX3WNoBHIfK3PJxrB3+eDdoYHK/lf7dWxxyC+ywHGZLKm9fxSAsRSKfn6hJ2hfT y6knP/ccG5hiOx9abjJLd0igN3s2RPXMlE3IlsOaj5IMpAHYCYGx7o9+sYVf91bX+ry4 DZG6hTtbpb0LSrAf9Eum+Oe8qXXg8eftP+vhLkvSEZZCnrFcUUylhnB2Gamt+4WeJzRI MkiNuAsXQg94157CyrUEefmbFp5v6+rSUfTpSRtd9HzT6gjOoxqxl/XFXLNt+rcwrCnN CvfQ== X-Gm-Message-State: AOAM5300xn49JQ0E1bNexLse7ioIQKpThpOTDMRIVuII33vdFFvZ0LVx fT4YSd6KC7ibk9kzFEgRfqrj1/v/e/6FuvcBBOJMBTvq X-Google-Smtp-Source: ABdhPJx1yosWjbDI7nLKaLGaNKLayVdKPgJHFs6ItfrVshv67IC5Ug6FSRiImFHWM2rRKjElFv4Qxu1Hm3WU1U4+PPw= X-Received: by 2002:aa7:da09:: with SMTP id r9mr6790914eds.7.1599695974244; Wed, 09 Sep 2020 16:59:34 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 9 Sep 2020 16:59:33 -0700 From: Stefan Kangas MIME-Version: 1.0 Date: Wed, 9 Sep 2020 16:59:33 -0700 Message-ID: Subject: [PATCH] Make M-x show new commands for obsolete aliases To: bug-gnu-emacs@gnu.org Content-Type: multipart/mixed; boundary="0000000000004b539305aeea3edb" Received-SPF: pass client-ip=209.85.208.53; envelope-from=stefankangas@gmail.com; helo=mail-ed1-f53.google.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/09 19:59:34 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.2 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.8 (-) --0000000000004b539305aeea3edb Content-Type: text/plain; charset="UTF-8" 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. --0000000000004b539305aeea3edb Content-Type: text/x-diff; charset="US-ASCII"; name="0001-Make-M-x-show-obsolete-commands.patch" Content-Disposition: attachment; filename="0001-Make-M-x-show-obsolete-commands.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: cf2365b21039890e_0.1 RnJvbSA4NzBlMzkyZmMzMWRhMGYxYzhhODRjMzE5NmIxNjQ0MTkwOGEzNDU1IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5AbWFyeGlzdC5zZT4KRGF0 ZTogVGh1LCAxMCBTZXAgMjAyMCAwMTozMjoyNCArMDIwMApTdWJqZWN0OiBbUEFUQ0ggMS8yXSBN YWtlIE0teCBzaG93IG9ic29sZXRlIGNvbW1hbmRzCgoqIGxpc3Avc2ltcGxlLmVsIChyZWFkLWV4 dGVuZGVkLWNvbW1hbmQpOiBEb24ndCBoaWRlIG9ic29sZXRlCmNvbW1hbmRzLgoocmVhZC1leHRl bmRlZC1jb21tYW5kLS1hbm5vdGF0aW9uKTogU2hvdyBhbiBhbm5vdGF0aW9uIGZvciBvYnNvbGV0 ZQpjb21tYW5kcyB0aGF0IHNheXMgd2hhdCB0aGVpciBuZXcgbmFtZSBpcy4KLS0tCiBsaXNwL3Np bXBsZS5lbCB8IDIxICsrKysrKysrLS0tLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDggaW5z ZXJ0aW9ucygrKSwgMTMgZGVsZXRpb25zKC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9zaW1wbGUuZWwg Yi9saXNwL3NpbXBsZS5lbAppbmRleCAzYjJiNWM5MmU5Li4zN2U5YTk1YmFkIDEwMDY0NAotLS0g YS9saXNwL3NpbXBsZS5lbAorKysgYi9saXNwL3NpbXBsZS5lbApAQCAtMTg4MSwyMiArMTg4MSwx NyBAQCByZWFkLWV4dGVuZGVkLWNvbW1hbmQKIAkgICAnKG1ldGFkYXRhCiAJICAgICAoYW5ub3Rh dGlvbi1mdW5jdGlvbiAuIHJlYWQtZXh0ZW5kZWQtY29tbWFuZC0tYW5ub3RhdGlvbikKIAkgICAg IChjYXRlZ29yeSAuIGNvbW1hbmQpKQotICAgICAgICAgKGxldCAoKHByZWQKLSAgICAgICAgICAg ICAgICAoaWYgKG1lbXEgYWN0aW9uICcobmlsIHQpKQotICAgICAgICAgICAgICAgICAgICA7OyBF eGNsdWRlIG9ic29sZXRlIGNvbW1hbmRzIGZyb20gY29tcGxldGlvbnMuCi0gICAgICAgICAgICAg ICAgICAgIChsYW1iZGEgKHN5bSkKLSAgICAgICAgICAgICAgICAgICAgICAoYW5kIChmdW5jYWxs IHByZWQgc3ltKQotICAgICAgICAgICAgICAgICAgICAgICAgICAgKG9yIChlcXVhbCBzdHJpbmcg KHN5bWJvbC1uYW1lIHN5bSkpCi0gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKG5vdCAo Z2V0IHN5bSAnYnl0ZS1vYnNvbGV0ZS1pbmZvKSkpKSkKLSAgICAgICAgICAgICAgICAgIHByZWQp KSkKLSAgICAgICAgICAgKGNvbXBsZXRlLXdpdGgtYWN0aW9uIGFjdGlvbiBvYmFycmF5IHN0cmlu ZyBwcmVkKSkpKQorICAgICAgICAgKGNvbXBsZXRlLXdpdGgtYWN0aW9uIGFjdGlvbiBvYmFycmF5 IHN0cmluZyBwcmVkKSkpCiAgICAgICMnY29tbWFuZHAgdCBuaWwgJ2V4dGVuZGVkLWNvbW1hbmQt aGlzdG9yeSkpKQogCiAoZGVmdW4gcmVhZC1leHRlbmRlZC1jb21tYW5kLS1hbm5vdGF0aW9uIChj b21tYW5kLW5hbWUpCi0gIChsZXQqICgoZnVuY3Rpb24gKGFuZCAoc3RyaW5ncCBjb21tYW5kLW5h bWUpIChpbnRlcm4tc29mdCBjb21tYW5kLW5hbWUpKSkKLSAgICAgICAgIChiaW5kaW5nICh3aGVy ZS1pcy1pbnRlcm5hbCBmdW5jdGlvbiBvdmVycmlkaW5nLWxvY2FsLW1hcCB0KSkpCi0gICAgKHdo ZW4gKGFuZCBiaW5kaW5nIChub3QgKHN0cmluZ3AgYmluZGluZykpKQotICAgICAgKGZvcm1hdCAi ICglcykiIChrZXktZGVzY3JpcHRpb24gYmluZGluZykpKSkpCisgIChsZXQqICgoZnVuIChhbmQg KHN0cmluZ3AgY29tbWFuZC1uYW1lKSAoaW50ZXJuLXNvZnQgY29tbWFuZC1uYW1lKSkpCisgICAg ICAgICAoYmluZGluZyAod2hlcmUtaXMtaW50ZXJuYWwgZnVuIG92ZXJyaWRpbmctbG9jYWwtbWFw IHQpKQorICAgICAgICAgKG9ic29sZXRlIChnZXQgZnVuICdieXRlLW9ic29sZXRlLWluZm8pKSkK KyAgICAoY29uZCAob2Jzb2xldGUKKyAgICAgICAgICAgKGZvcm1hdCAiICglcykiIChjYXIgb2Jz b2xldGUpKSkKKyAgICAgICAgICAoKGFuZCBiaW5kaW5nIChub3QgKHN0cmluZ3AgYmluZGluZykp KQorICAgICAgICAgICAoZm9ybWF0ICIgKCVzKSIgKGtleS1kZXNjcmlwdGlvbiBiaW5kaW5nKSkp KSkpCiAKIChkZWZjdXN0b20gc3VnZ2VzdC1rZXktYmluZGluZ3MgdAogICAiTm9uLW5pbCBtZWFu cyBzaG93IHRoZSBlcXVpdmFsZW50IGtleS1iaW5kaW5nIHdoZW4gTS14IGNvbW1hbmQgaGFzIG9u ZS4KLS0gCjIuMjguMAoK --0000000000004b539305aeea3edb Content-Type: text/x-diff; charset="US-ASCII"; name="0002-Make-M-x-show-what-aliases-point-to.patch" Content-Disposition: attachment; filename="0002-Make-M-x-show-what-aliases-point-to.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: cf2365b21039890e_0.2 RnJvbSBjNmE2MGE2NTdmNTI3MTJkNDBhODBiMTE1NDg0OTA0ZGM4OGU0NjI5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5AbWFyeGlzdC5zZT4KRGF0 ZTogVGh1LCAxMCBTZXAgMjAyMCAwMTo0Mjo1MyArMDIwMApTdWJqZWN0OiBbUEFUQ0ggMi8yXSBN YWtlIE0teCBzaG93IHdoYXQgYWxpYXNlcyBwb2ludCB0bwoKKiBsaXNwL3NpbXBsZS5lbCAocmVh ZC1leHRlbmRlZC1jb21tYW5kLS1hbm5vdGF0aW9uKTogU2hvdyBhbgphbm5vdGF0aW9uIGZvciBh bGlhc2VzIHNheWluZyB3aGF0IGl0IHBvaW50cyB0by4KLS0tCiBsaXNwL3NpbXBsZS5lbCB8IDcg KysrKystLQogMSBmaWxlIGNoYW5nZWQsIDUgaW5zZXJ0aW9ucygrKSwgMiBkZWxldGlvbnMoLSkK CmRpZmYgLS1naXQgYS9saXNwL3NpbXBsZS5lbCBiL2xpc3Avc2ltcGxlLmVsCmluZGV4IDM3ZTlh OTViYWQuLjczZGQ5MzhlNjMgMTAwNjQ0Ci0tLSBhL2xpc3Avc2ltcGxlLmVsCisrKyBiL2xpc3Av c2ltcGxlLmVsCkBAIC0xODg3LDggKzE4ODcsMTEgQEAgcmVhZC1leHRlbmRlZC1jb21tYW5kCiAo ZGVmdW4gcmVhZC1leHRlbmRlZC1jb21tYW5kLS1hbm5vdGF0aW9uIChjb21tYW5kLW5hbWUpCiAg IChsZXQqICgoZnVuIChhbmQgKHN0cmluZ3AgY29tbWFuZC1uYW1lKSAoaW50ZXJuLXNvZnQgY29t bWFuZC1uYW1lKSkpCiAgICAgICAgICAoYmluZGluZyAod2hlcmUtaXMtaW50ZXJuYWwgZnVuIG92 ZXJyaWRpbmctbG9jYWwtbWFwIHQpKQotICAgICAgICAgKG9ic29sZXRlIChnZXQgZnVuICdieXRl LW9ic29sZXRlLWluZm8pKSkKLSAgICAoY29uZCAob2Jzb2xldGUKKyAgICAgICAgIChvYnNvbGV0 ZSAoZ2V0IGZ1biAnYnl0ZS1vYnNvbGV0ZS1pbmZvKSkKKyAgICAgICAgIChhbGlhcyAoc3ltYm9s LWZ1bmN0aW9uIGZ1bikpKQorICAgIChjb25kICgoc3ltYm9scCBhbGlhcykKKyAgICAgICAgICAg KGZvcm1hdCAiICglcykiIGFsaWFzKSkKKyAgICAgICAgICAob2Jzb2xldGUKICAgICAgICAgICAg KGZvcm1hdCAiICglcykiIChjYXIgb2Jzb2xldGUpKSkKICAgICAgICAgICAoKGFuZCBiaW5kaW5n IChub3QgKHN0cmluZ3AgYmluZGluZykpKQogICAgICAgICAgICAoZm9ybWF0ICIgKCVzKSIgKGtl eS1kZXNjcmlwdGlvbiBiaW5kaW5nKSkpKSkpCi0tIAoyLjI4LjAKCg== --0000000000004b539305aeea3edb-- From debbugs-submit-bounces@debbugs.gnu.org Thu Sep 10 17:10:00 2020 Received: (at 43300) by debbugs.gnu.org; 10 Sep 2020 21:10:00 +0000 Received: from localhost ([127.0.0.1]:41430 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGTpQ-0004Re-0S for submit@debbugs.gnu.org; Thu, 10 Sep 2020 17:10:00 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42810) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kGTpO-0004RQ-0F for 43300@debbugs.gnu.org; Thu, 10 Sep 2020 17:09:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2YL47UfOFjoLvQsoY2oVHppNSgYRYcevlO3e2dbcDV8=; b=RsB5ECRJJZwC/kyb4qIUal/i0y ioFZrX0srD0xMSL2BrYYeRc99l5UVh0wvzkfZn1234/83xgeiUSPW2/KY2O/fXuwmwvvWPH7FPzCa 3SD3IZSHs/FPWlbzmxL33rrSau5Aos2uAxT4hzZW43v4OunFbmW/uLBf9ROyDcI38IY0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kGTpE-0002Go-Ec; Thu, 10 Sep 2020 23:09:51 +0200 From: Lars Ingebrigtsen To: Stefan Kangas Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases References: X-Now-Playing: Jon Eberson Group's _City Visions_: "In A Pessimistic Mood" Date: Thu, 10 Sep 2020 23:09:47 +0200 In-Reply-To: (Stefan Kangas's message of "Wed, 9 Sep 2020 16:59:33 -0700") Message-ID: <87h7s549us.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas 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). Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43300 Cc: 43300@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 13 09:06:30 2020 Received: (at 43300-done) by debbugs.gnu.org; 13 Sep 2020 13:06:30 +0000 Received: from localhost ([127.0.0.1]:49692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHRiA-0001Ts-0G for submit@debbugs.gnu.org; Sun, 13 Sep 2020 09:06:30 -0400 Received: from mail-ej1-f46.google.com ([209.85.218.46]:40594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kHRi6-0001Tc-Co for 43300-done@debbugs.gnu.org; Sun, 13 Sep 2020 09:06:28 -0400 Received: by mail-ej1-f46.google.com with SMTP id z22so19469929ejl.7 for <43300-done@debbugs.gnu.org>; Sun, 13 Sep 2020 06:06:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=gze0VDuGWl/R85uFHL4LJ+ouho/866UfynTpmZmrJqs=; b=G/ygSaeWl3y7D17mR7e+B4zCDjoW1CGgNux573Rtt3zbr98w4cPuP5r+2smVt27e9C EcZqXzk1odSeGQeePjK/6kffIX+kfjhwBBNaa2LvtXWM6wSJlAVvR2pfHE/zt/+UnMfX cY7k9VWxCp/GJSvrlHhvuwTmznYXcNXIriT0v+5EpzmrqMlOb8f+stI/Eolm0M4gWmWI JO0J4GIDTbjbS/18/zONAq+iOEg19/+WHisKePESRUogDUOgnYJSsB7b+NE+48i+i5q9 Jvnsw1kz4bAREKchY17JetzttODudD7vymYyhPq5A1N/vDCAkDPr0ih6msXAbiAxKhU+ 552A== X-Gm-Message-State: AOAM532GtYzMB7fG/B3s7F9Lp5/u+67JszKQ3zIUBOS63iBZdOyP6y37 bnqxjVZXwc8MiHIYxP573ZeQyrKwSm79Y4osvVI= X-Google-Smtp-Source: ABdhPJxUd/Xs3gLV6GLS2ZRcqvGpV+WaZVBGaQNA7PcHI/RtiVDhsLOUmEzHD9payXPpVF49SH2jIUFMD5imsFgLYXs= X-Received: by 2002:a17:906:bc52:: with SMTP id s18mr9657806ejv.398.1600002380764; Sun, 13 Sep 2020 06:06:20 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 13 Sep 2020 06:06:20 -0700 From: Stefan Kangas In-Reply-To: <87h7s549us.fsf@gnus.org> References: <87h7s549us.fsf@gnus.org> MIME-Version: 1.0 Date: Sun, 13 Sep 2020 06:06:20 -0700 Message-ID: Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 43300-done Cc: 43300-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Lars Ingebrigtsen writes: > I haven't tried the patch, but it looks good to me. Thanks. Pushed to master as commit 1b0a922a19 and 06d86b954d. From unknown Tue Jun 17 20:15:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 12 Oct 2020 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 18 04:13:46 2020 Received: (at control) by debbugs.gnu.org; 18 Nov 2020 09:13:46 +0000 Received: from localhost ([127.0.0.1]:34099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfJX8-0005rt-3D for submit@debbugs.gnu.org; Wed, 18 Nov 2020 04:13:46 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:55271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfJX5-0005rd-7s for control@debbugs.gnu.org; Wed, 18 Nov 2020 04:13:44 -0500 X-Originating-IP: 91.129.97.46 Received: from mail.gandi.net (m91-129-97-46.cust.tele2.ee [91.129.97.46]) (Authenticated sender: juri@linkov.net) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 2CE33E000F for ; Wed, 18 Nov 2020 09:13:35 +0000 (UTC) From: Juri Linkov To: control@debbugs.gnu.org Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases References: Date: Wed, 18 Nov 2020 10:54:18 +0200 In-Reply-To: (Stefan Kangas's message of "Wed, 9 Sep 2020 16:59:33 -0700") Message-ID: <87ft576o5h.fsf@linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) unarchive 43300 quit From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 18 07:44:04 2020 Received: (at 43300) by debbugs.gnu.org; 18 Nov 2020 12:44:04 +0000 Received: from localhost ([127.0.0.1]:34512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfMoe-0000dA-Bg for submit@debbugs.gnu.org; Wed, 18 Nov 2020 07:44:04 -0500 Received: from mail-wr1-f44.google.com ([209.85.221.44]:38027) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfMoZ-0000cW-92 for 43300@debbugs.gnu.org; Wed, 18 Nov 2020 07:44:02 -0500 Received: by mail-wr1-f44.google.com with SMTP id p8so2081241wrx.5 for <43300@debbugs.gnu.org>; Wed, 18 Nov 2020 04:43:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=pCNqz870WaNt2oWdatHrJMzwI/hjLKYHYDXmV4lx7BA=; b=HpGb5SfpvQS2xc4voJqZU/HGCENciKfI5tZObbfEYUu3Yu7ptfXlk0Oxn7LbrgNeI6 MAsMglW82c6JABuNXVLPn32gg7GvpV7ArSRbXuwlXPxEXJOajWl7WvkbSjvD7m0anrZo wC1DW+hqV5sHX8kbIFvdX/OgE+1XoMNEYulNzDlE1rdL5OYVDjsG6YIOuet/yD3g8DsD RkOOFlyxXYa/YH61QGoD5l+jaACzBr5/r5WAa2nUSPo15MUJ86Qvu+tx5etYPbyeAIjl 4vJ3WzdC67vwtbsB9P3A0fF8O+3Pijd+fMK/Ks51wrGWPQyMHE4rpnHqZDckJhWYgG7h QWfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=pCNqz870WaNt2oWdatHrJMzwI/hjLKYHYDXmV4lx7BA=; b=KAENCF1pzYlhCdy/Hbde8mTPGUyOkbFAsD5DVOh+j9ZS0BR+npKzW2WWwcJ+MyzasF VQi57mxoNRsQLN6ujZyxlgl3ygyD1CeQyj5jG2nLlwboAS5OUamvxxmlhJYKdEYE4zZ/ 51/Fh849MztxJHyrgR27JwQr6XB7JqGVQMSfagkegsLpZpQR6KmqrEKkFpDvQyncnt4N maR/nvlvPFbQl1nfaUXOauz0l15CkYKGwi81Wp74Str3L6qZ+KtXUGU00/3PYCQKDc8s cMrvKCw5TUoJPrSSSzaDQC31ZROGdAy3B59D8zO5Axbh5QzGBpgm+7vpFZ5Qb5jjlCv2 B5+A== X-Gm-Message-State: AOAM533bo+XmJFh/J0I/3bo9wm30OCXtsK4jDf8yjBTIZKIm0hH9SiLo 9JwB5aijogk6VGUar82CPU7B/Q== X-Google-Smtp-Source: ABdhPJw94g1PAp6GOFyCMLCcXq9bjSe5ZxHCHPczdetPzz1jTYHIGXw5Bow0FFna5GYxBfSXMWP0dg== X-Received: by 2002:adf:c3c8:: with SMTP id d8mr4624337wrg.366.1605703433440; Wed, 18 Nov 2020 04:43:53 -0800 (PST) Received: from localhost ([2a02:8084:20e2:c380:1f68:7ff5:120d:64e]) by smtp.gmail.com with ESMTPSA id p21sm3583517wma.41.2020.11.18.04.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Nov 2020 04:43:52 -0800 (PST) From: "Basil L. Contovounesios" To: Juri Linkov Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases References: <87ft576o5h.fsf@linkov.net> Date: Wed, 18 Nov 2020 12:43:51 +0000 In-Reply-To: <87ft576o5h.fsf@linkov.net> (Juri Linkov's message of "Wed, 18 Nov 2020 11:14:18 +0200") Message-ID: <87zh3ezvg8.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43300 Cc: 43300@debbugs.gnu.org, Stefan Kangas X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain Juri Linkov 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? --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=m-x.diff 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)))))) --=-=-= Content-Type: text/plain Thanks, -- Basil --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 18 08:49:58 2020 Received: (at 43300) by debbugs.gnu.org; 18 Nov 2020 13:49:58 +0000 Received: from localhost ([127.0.0.1]:34571 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfNqQ-0002Gk-AL for submit@debbugs.gnu.org; Wed, 18 Nov 2020 08:49:58 -0500 Received: from mail-ej1-f53.google.com ([209.85.218.53]:38949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfNqN-0002GX-Ix for 43300@debbugs.gnu.org; Wed, 18 Nov 2020 08:49:56 -0500 Received: by mail-ej1-f53.google.com with SMTP id s25so2840939ejy.6 for <43300@debbugs.gnu.org>; Wed, 18 Nov 2020 05:49:55 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=iS+OHN1O7UOjKDk+IBJrMp8hkN3bzNYE/Q8rxUXItXQ=; b=sqwhXKB9r+qW1zc25LAYjkQE91uu9P0/aF1NeIa3pbLyQEKbEHv179lqkE5P7oMFW8 s0SO3TswUJZraYeTck05aKyIMNemwfyoyK+hBkNgP9TwMhXXUiNlNcEVs6M7bd+n4I3s GQhLSLoCZbpz6ANRI8vozdRYu6DiHJjwDnDNWBTJI1qjBWL3bNbjSfVBKtcckDQC6q++ k0Z359LvnaIYaWIvHunwFxKgY3Vci0ThbToJNm/UPF/65rnMF0LsrW2r1BFScToNhHcX TSQ2jX5DsCq8to2XBwCyDNLEkkvqwd202n95kxe+G3xA7mO8VkVYXoYQ7Q5YYvL3ctPY lOjg== X-Gm-Message-State: AOAM533kpOT5CVbTVuX0w8Tp2tCGTlmcNnHjbsb7247UK1C9RUjJOPTI tnTQiVZ+sNMMvSO7NBa6JJtAJr48+PNFKHoYP7A= X-Google-Smtp-Source: ABdhPJxJB1a+rnMoy5XE7EOm887cGbAHxJD98dhtsgWpNASwMTcW5WWGPoApKHdo1gJy02gOvgoPs9QyerjB+zGo+G4= X-Received: by 2002:a17:906:a00c:: with SMTP id p12mr25113913ejy.249.1605707389675; Wed, 18 Nov 2020 05:49:49 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 18 Nov 2020 05:49:48 -0800 From: Stefan Kangas In-Reply-To: <87zh3ezvg8.fsf@tcd.ie> References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> MIME-Version: 1.0 Date: Wed, 18 Nov 2020 05:49:48 -0800 Message-ID: Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases To: "Basil L. Contovounesios" , Juri Linkov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 43300 Cc: 43300@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) "Basil L. Contovounesios" writes: > Juri Linkov 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 18 14:59:41 2020 Received: (at 43300) by debbugs.gnu.org; 18 Nov 2020 19:59:41 +0000 Received: from localhost ([127.0.0.1]:36565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfTcD-0001Qo-0Q for submit@debbugs.gnu.org; Wed, 18 Nov 2020 14:59:41 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:63977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfTcA-0001Qa-Dy for 43300@debbugs.gnu.org; Wed, 18 Nov 2020 14:59:39 -0500 X-Originating-IP: 91.129.97.46 Received: from mail.gandi.net (m91-129-97-46.cust.tele2.ee [91.129.97.46]) (Authenticated sender: juri@linkov.net) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id A0BA840002; Wed, 18 Nov 2020 19:59:30 +0000 (UTC) From: Juri Linkov To: Stefan Kangas Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases Organization: LINKOV.NET References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> Date: Wed, 18 Nov 2020 21:10:02 +0200 In-Reply-To: (Stefan Kangas's message of "Wed, 18 Nov 2020 05:49:48 -0800") Message-ID: <87y2iyh7fh.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> 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)"? From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 18 16:51:40 2020 Received: (at 43300) by debbugs.gnu.org; 18 Nov 2020 21:51:40 +0000 Received: from localhost ([127.0.0.1]:36757 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfVMa-0004IY-Jn for submit@debbugs.gnu.org; Wed, 18 Nov 2020 16:51:40 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:43608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfVMY-0004IL-I3 for 43300@debbugs.gnu.org; Wed, 18 Nov 2020 16:51:39 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AILdsQl028342; Wed, 18 Nov 2020 21:51:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=NQ+VeHfzUyX3hJIyOZsxR++qPl9JM/ECafAR+GCHNzI=; b=wqugWZqhD088OaOBoa56ddmb7uxOxzgA4rBGvNcUeU+qIvoDFyhdPKacd9yxTBDsNofN zO+seltGzYL35UdtyBsV3T/de4UKdnLlgzB+1A+ef9iFCmZZ3HfMpAHU2h9gKvevY6B4 MDm10IkkT0ncr8M/CKPrjjE7SJE3EFYvHmhzWD1hXTnz3hlww5AWxb5N1Hf7RdhMHUdL 2RCVDNaertNTFpH1RRHWAcLF8RshmPFaNn/laF9rn8NngHiLS+oCO/KjZeMRtzE35++B 9lSesrCxxpqqSBFhZMgns7UuFOhYkvXZ1kWyhVESoYDg+9sW4aADEo7uIvhBd2AoLLOy vw== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 34t7vnad4k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Nov 2020 21:51:31 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0AILfsBP072087; Wed, 18 Nov 2020 21:51:31 GMT Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by aserp3030.oracle.com with ESMTP id 34uspvb9uw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 18 Nov 2020 21:51:30 +0000 Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 0AILpK5p019218; Wed, 18 Nov 2020 21:51:22 GMT MIME-Version: 1.0 Message-ID: Date: Wed, 18 Nov 2020 13:51:19 -0800 (PST) From: Drew Adams To: Juri Linkov , Stefan Kangas Subject: RE: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> In-Reply-To: <87y2iyh7fh.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5071.0 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9809 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 malwarescore=0 mlxscore=0 bulkscore=0 suspectscore=0 adultscore=0 spamscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011180149 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9809 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 suspectscore=0 malwarescore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 mlxscore=0 priorityscore=1501 phishscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2011180149 X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > > 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. >=20 > 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.) From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 18 17:06:14 2020 Received: (at 43300) by debbugs.gnu.org; 18 Nov 2020 22:06:14 +0000 Received: from localhost ([127.0.0.1]:36810 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfVag-0006oV-Eg for submit@debbugs.gnu.org; Wed, 18 Nov 2020 17:06:14 -0500 Received: from mail-ej1-f48.google.com ([209.85.218.48]:33404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kfVad-0006oH-Sp for 43300@debbugs.gnu.org; Wed, 18 Nov 2020 17:06:13 -0500 Received: by mail-ej1-f48.google.com with SMTP id 7so5006679ejm.0 for <43300@debbugs.gnu.org>; Wed, 18 Nov 2020 14:06:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=4YRKxL9ucU91pjXl4r1JJzH4DnI3yH8I1tV/pQ/UwWI=; b=GehaGa7AUdR/r+2v2xt0xCP/yR5GJn0nHvshm7XBY1v1jw46Sjvz9JOleQMNopa21W sjgG12dZWhiVU5geouG2iP93qb6BTqAuRdqyrAeOqde/rvbrI8tFbELfJNQt3Edm8mQG b2gkInev+LoogPY32+ZQfSGbzW1Xv9HczasOo8BvIizB+yRy4YZHfAc41PoVq2gcnrzl F8JjsFjveqssLGhcGW3uFq8GBtqxdZm34rXJeJA1g9JMfundZ+r3GXjQO6kMwNFqKSfo wd4V3D2hxI6OSp6iPSzPJEVwD1nXBgEps8TBzR33xDQA8R47uDGOW6P75Ji8GHuZwi3u sijQ== X-Gm-Message-State: AOAM530yqxxTfWgDk6q0n6mw/KxJ2NE+3AANS4rG/Qa8E0w0c1qpMl1r 8TJRKXOwHCAOCgMQvMnKhIpdiatTzGNbXPCwQhY= X-Google-Smtp-Source: ABdhPJxly7cUtu4wGABpyT0Scf1J/+gbs9a6wSzcXsGhyA9UIvH5C3z1op1vnVANhXAfKbGi1q0U0P03nuY4cDlnaN8= X-Received: by 2002:a17:906:11d0:: with SMTP id o16mr1408242eja.25.1605737166272; Wed, 18 Nov 2020 14:06:06 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 18 Nov 2020 14:06:05 -0800 From: Stefan Kangas In-Reply-To: <87y2iyh7fh.fsf@mail.linkov.net> References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> MIME-Version: 1.0 Date: Wed, 18 Nov 2020 14:06:05 -0800 Message-ID: Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases To: Juri Linkov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) Juri Linkov 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 From unknown Tue Jun 17 20:15:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 17 Dec 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 10:26:38 2021 Received: (at control) by debbugs.gnu.org; 16 Feb 2021 15:26:38 +0000 Received: from localhost ([127.0.0.1]:41232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC2FK-0008Lt-39 for submit@debbugs.gnu.org; Tue, 16 Feb 2021 10:26:38 -0500 Received: from mail-pj1-f45.google.com ([209.85.216.45]:51245) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC2FI-0008Lf-3r for control@debbugs.gnu.org; Tue, 16 Feb 2021 10:26:36 -0500 Received: by mail-pj1-f45.google.com with SMTP id fa16so5869808pjb.1 for ; Tue, 16 Feb 2021 07:26:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:date:message-id:subject:to; bh=hE749mDWHSKLFS+QlBUhpw1Aqo7KxzoD4FW7ItY9sjg=; b=m8ua1cNG3I6cd83re5BR6fIaG9gDPsxeT54Jn4LeRT8m9zAXUvwEZk5slhyttPC9iU MlLtBzR7sa1RlQtNOQpDuEkq2n5gq4Bw2JKlIb/DbuzJLcabb8JXfF+WbWJ4ovGD05FX /+og4/9A/yKzElRH3cHkq7EjO09KfQ5mqsyO2HRafC5nYFRuAJfmMZYjuLXOUl0REqIt pDxZLBTzWfP4bfsJJjJW3a5GuMqJ7k2E77A11xdpcaNcO+384NdVhpO+V5MRZVXB5F5j AY9RieJRXGP32F2/G/MgWK342gsh8Vg2jLgWY6DdGiqz9W0X8zc7Y+130meA9+/uPOoB htGA== X-Gm-Message-State: AOAM532UeNid4yD0xVsCFpzEZ1VSlGf9r4udsNOKIPYtqv1mCX8FWph3 3tcyI57aZ0fv1M5dFobB/NbPUGpQtItDt/ya6JDzfB9I X-Google-Smtp-Source: ABdhPJx7A2FPr7XH6gnXLt2iM1rX+JAXEb7lIoECzFlsTUggXnxqOibSfOh2xCAsaXeL7G4jVcN9wA87TTLZ+AAJ9Y0= X-Received: by 2002:a17:90a:d24b:: with SMTP id o11mr4819665pjw.104.1613489189548; Tue, 16 Feb 2021 07:26:29 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 16 Feb 2021 09:26:28 -0600 From: Stefan Kangas MIME-Version: 1.0 Date: Tue, 16 Feb 2021 09:26:28 -0600 Message-ID: Subject: To: control@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 2.4 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: unarchive 43300 reopen 43300 thanks Content analysis details: (2.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.216.45 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.216.45 listed in wl.mailspike.net] 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 2.0 BLANK_SUBJECT Subject is present but empty 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: unarchive 43300 reopen 43300 thanks Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.216.45 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.216.45 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (stefankangas[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines 2.0 BLANK_SUBJECT Subject is present but empty 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different unarchive 43300 reopen 43300 thanks From unknown Tue Jun 17 20:15:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: Did not alter fixed versions and reopened. Date: Tue, 16 Feb 2021 15:27:02 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # Did not alter fixed versions and reopened. thanks # This fakemail brought to you by your local debbugs # administrator From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 10:36:03 2021 Received: (at 43300) by debbugs.gnu.org; 16 Feb 2021 15:36:03 +0000 Received: from localhost ([127.0.0.1]:41271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC2OR-0002I7-HQ for submit@debbugs.gnu.org; Tue, 16 Feb 2021 10:36:03 -0500 Received: from mail-pg1-f181.google.com ([209.85.215.181]:34400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC2OO-0002Ha-SL for 43300@debbugs.gnu.org; Tue, 16 Feb 2021 10:36:01 -0500 Received: by mail-pg1-f181.google.com with SMTP id o7so6453453pgl.1 for <43300@debbugs.gnu.org>; Tue, 16 Feb 2021 07:36:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=SN23LHCzD8CvB4nLxfHZeW1tOhsNDM83rcWybBX+RD8=; b=bTe3uGhFCAFMVIztxPtXkQiBn8GP6ALD8PTF9pI3iv0h7YxmRiZuMdmUc6PHiKdU2a 2evyR0v2I6CDimVmlx6uHqO5RScLXqnAREZ5bCRlqgs5z82n/NQWhzscgiUB1jdU0+Vu KpYNW9IJ7euCxGQyfkgSjpDNkLBqDqfFph48ufNvOb94WFAMXOItoKkIZ//082u3K/Oo K968sl9CUVp0iRUEzBG+lR3ICHcckOg6/s7otqCOtgLG7U7iICWcAUrIu588WhOLBt2Z iW5u/1dtpbIB1vfWBzK2TLYL25qK1nOxSZn3cjBMfAxhNxPdYoy12X50ic2QDm6m97Tc zRsw== X-Gm-Message-State: AOAM530EuzJfK/lJbMvHeMcK1nfpUJPdbieBm2hybp33ynV3a3sFugiS AyFatTE0Y5VF5a/Bgx4EBs4+4XLtES9IQyGCKNI= X-Google-Smtp-Source: ABdhPJzynivq8t5U6cU0VQh9lS3Em/G0qWo//z+ZC3wxjc3rZX76OjwcbMWj1AhbVikimaenOw6ZhRbHjeT81F3OFVk= X-Received: by 2002:a63:e0c:: with SMTP id d12mr20274609pgl.67.1613489754189; Tue, 16 Feb 2021 07:35:54 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 16 Feb 2021 09:35:53 -0600 From: Stefan Kangas In-Reply-To: (Stefan Kangas's message of "Wed, 18 Nov 2020 14:06:05 -0800") References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Tue, 16 Feb 2021 09:35:53 -0600 Message-ID: Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases To: Juri Linkov Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org, Lars Ingebrigtsen , Stefan Monnier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) unarchive 43300 reopen 43300 thanks (This bug is about showing obsolete aliases for commands in the list of completion candidates.) Stefan Kangas 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? From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 11:24:03 2021 Received: (at 43300) by debbugs.gnu.org; 16 Feb 2021 16:24:03 +0000 Received: from localhost ([127.0.0.1]:41334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC38t-0003WT-26 for submit@debbugs.gnu.org; Tue, 16 Feb 2021 11:24:03 -0500 Received: from quimby.gnus.org ([95.216.78.240]:54358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC38r-0003Vw-Dt for 43300@debbugs.gnu.org; Tue, 16 Feb 2021 11:24:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OO4Q5o1Pc+qJXUTL805JG6Q1E7Tod7dyc9D0cygcifg=; b=cb1rB+SovycDIcSEFAFOKQnIJE Zt7TO0Q7/XEJaD8sd9bxVRBzpxgDePRaktQHqukDgE0XrsPK5PC4qWPeRwmUcxWVFZ7lxDZDgzfMG 4hjw5aghPMZSGD9WKpS656iha3xn/BB9aOlwdmwcz9yNynT3cKTVkmhtqxvfyULsQP8g=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lC38g-0006UL-4r; Tue, 16 Feb 2021 17:23:52 +0100 From: Lars Ingebrigtsen To: Stefan Kangas Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> X-Now-Playing: Afrodeutsche's _Break Before Make_: "And!" Date: Tue, 16 Feb 2021 17:23:48 +0100 In-Reply-To: (Stefan Kangas's message of "Tue, 16 Feb 2021 09:35:53 -0600") Message-ID: <87ft1wvv57.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org, Stefan Monnier , Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 12:32:37 2021 Received: (at 43300) by debbugs.gnu.org; 16 Feb 2021 17:32:37 +0000 Received: from localhost ([127.0.0.1]:41475 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC4DF-0007Z4-4u for submit@debbugs.gnu.org; Tue, 16 Feb 2021 12:32:37 -0500 Received: from mail-pf1-f174.google.com ([209.85.210.174]:39694) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC4DC-0007Yp-Mu for 43300@debbugs.gnu.org; Tue, 16 Feb 2021 12:32:35 -0500 Received: by mail-pf1-f174.google.com with SMTP id 189so6576995pfy.6 for <43300@debbugs.gnu.org>; Tue, 16 Feb 2021 09:32:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=UfZEZ6uQeG0imDiKgB5Rq1sPIZ5WeYY4wPiRzlR/vtk=; b=myHwOarsnSsIz9CaA+l4VbQe+4LYw40COGvm5mishqy+np1vonuUoZa0dikaxs13Sc 6LONhOJ0QcsugB52bD9+bkVBVeOz/JKFGI2kvskGMZ60bOVjF68hzdX67mbz4loMbKgh TsCvebgwbURkEx4AKoG1liy8zstc2ZkI91NoeYhKI5bADyqHLbjvoXr0r657V3cRAQ2h S3iDtaACfABTkLLfPzzEI2IYeG5l7hEHebE155Io+dczj/4dbYIGBo9nMbzyHfnNtTlq 2YyYfr2CW2YG9sW7Eu6LwXBTEpvQSowKg8QE//ePX3It/7On3az+g6OHVAQQ9C3m/x36 Ycbw== X-Gm-Message-State: AOAM531grBJI47ciyMY1E7ECzOLVpg66YeuGLlQvCJ9jeU/6+ayhXTxB CwpFbgPwAC3HJOAponGXmK4VZSDAO0KwNQ+wqXs= X-Google-Smtp-Source: ABdhPJzqis5G2LNdt0Y4a0ifV8i6SMymSR2JGRJCxxJBlabbSidn0AZlhZRKtd9j4qFrn0YOvRZGHkL2+FinfbKSZpA= X-Received: by 2002:a62:6382:0:b029:1d2:46ed:d813 with SMTP id x124-20020a6263820000b02901d246edd813mr20545389pfb.44.1613496747690; Tue, 16 Feb 2021 09:32:27 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 16 Feb 2021 11:32:27 -0600 From: Stefan Kangas In-Reply-To: <87ft1wvv57.fsf@gnus.org> References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> <87ft1wvv57.fsf@gnus.org> MIME-Version: 1.0 Date: Tue, 16 Feb 2021 11:32:27 -0600 Message-ID: Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases To: Lars Ingebrigtsen Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org, Stefan Monnier , Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) Lars Ingebrigtsen writes: > Stefan Kangas 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. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 16 12:37:14 2021 Received: (at 43300) by debbugs.gnu.org; 16 Feb 2021 17:37:14 +0000 Received: from localhost ([127.0.0.1]:41479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC4Hh-0007fl-Qs for submit@debbugs.gnu.org; Tue, 16 Feb 2021 12:37:14 -0500 Received: from quimby.gnus.org ([95.216.78.240]:55070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lC4Hf-0007fY-MG for 43300@debbugs.gnu.org; Tue, 16 Feb 2021 12:37:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=QxwFN3yyKfrqhrNGqNbVKxNvYDFYmBBuQlcjJ5PYZH4=; b=Ud3UW+2eE1chtfobnfhlJ4T4T0 /UJsBRX0L/dyY7hQYFrYb6MthZwoScRxgROkm6wTjOXQRSbDYyZET/bZY0x61/pcd3Wn896XQ4u2h GErDG8EwyKFtbHpTQQu3BSLAriF6c31CJDq0DuGwVa3rMziVuxSoE232HSBFfyBkiiSg=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lC4HV-0006xJ-2S; Tue, 16 Feb 2021 18:37:03 +0100 From: Lars Ingebrigtsen To: Stefan Kangas Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> <87ft1wvv57.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAElBMVEVGRkVJRTk5OjSS gHVAbJn///+7yQujAAAAAWJLR0QF+G/pxwAAAAd0SU1FB+UCEBEhOBn9QFQAAAG+SURBVDjLdZTr odsgDIWFrwdA0AFAzQDhigGcmP1nqh6E+Kat8sOJPg5HYCkAAAFXpErygRho5omoMjI3sqghQQRZ Zz8wBlvhAQVcQGUfA+gKgknK0Di2BSK4ZDcAi0BRE0yeF8khblUWQrUy41ixed0T7G8wqBoobwGP ccrjKVu9gAqYB4AtKDVM4NYngsY+tgpBAUTf6eRJnqggYkA59MnMZ4tGjio5AXK8mtmiaSGwa1la bpK8SSbtG0LSY8t1A+38ji1UAoxYLsstvhOSKm7j7D/AXWy1qtv4KeB7Teax/w1Itwr7hwV3B/jF n4D+A3iC/JnXJrIXlZOdklkXydcFsLnMHqXy3UH60tS8xMwxT0BJylXQskoYcz8cyJUYsGTj2sfT QZS7amqhxqIbDoq8wPG6Xmy5/ZpAqrK2PR9o5t9dem5WlbwXUPZqjAJoKmbj5oax38XiWODmvSnF 9tbdwk/uszEeAvJwCwFiQpb+PUI++nALUxDpXo86u/25QPI5S3kOyAXQZT6OOWrVZrlcJuoF/Hn7 ECywNlvjvCZ+v66/gipzBulfwF7hG2xUNtLSpAfyPdnfiowc/QGESKt1AwBolAAAACV0RVh0ZGF0 ZTpjcmVhdGUAMjAyMS0wMi0xNlQxNzozMzo1NiswMDowMAKupxYAAAAldEVYdGRhdGU6bW9kaWZ5 ADIwMjEtMDItMTZUMTc6MzM6NTYrMDA6MDBz8x+qAAAAAElFTkSuQmCC X-Now-Playing: Julie Tippetts's _Sunset Glow_: "Sunset Glow" Date: Tue, 16 Feb 2021 18:36:59 +0100 In-Reply-To: (Stefan Kangas's message of "Tue, 16 Feb 2021 11:32:27 -0600") Message-ID: <87eehfvrr8.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas 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 [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org, Stefan Monnier , Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 04:52:26 2021 Received: (at 43300) by debbugs.gnu.org; 17 Feb 2021 09:52:26 +0000 Received: from localhost ([127.0.0.1]:42514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCJVR-0000J9-VR for submit@debbugs.gnu.org; Wed, 17 Feb 2021 04:52:26 -0500 Received: from mail-pj1-f45.google.com ([209.85.216.45]:55136) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCJVQ-0000Iy-Os for 43300@debbugs.gnu.org; Wed, 17 Feb 2021 04:52:25 -0500 Received: by mail-pj1-f45.google.com with SMTP id gb24so1157990pjb.4 for <43300@debbugs.gnu.org>; Wed, 17 Feb 2021 01:52:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=tsiDfmYBaFb9uruZb6gh7B0EGpBPTIynzBsoyNU9IvU=; b=De98iK5jgRgCrmXFJcs8OWl7Gf2FRomh+5iveDAVCDD6P6k6OmGlKh1qNAaOFP5YaV uQ8fc2d/jng/742MZcy+MtXambEH/gCTu19MnZOLO0KzTfPxrA3gDDNRtQR6yCW+vwfh Sjy6iTfc2hlBmTELrvIQVnHTqTwOKcweJHsmlVx5mACb8Yd7PGW4zWMGzUHewN3YfYKX vWLeEy81xW1L7cVfkfpr6uUDib4JCxmvel7Z8uP0SViHN5reyW94Fx4QVu/mYgX7Gkpp TMXoVVYa0J+8eMmwaDf5xNdYawb+F99dnnLTI5ag3RAAWDuPeG+g0Ff6h9trtrkBRlSV VUtQ== X-Gm-Message-State: AOAM531RtrRgqYEgztfjBBDKdLGKVEE3W2Vnp99IE8vTKhgkbliZ2bM/ Jujw89Ao2YVOI5zw2Ge/OoVD2VEwvJyes/tHHmQ= X-Google-Smtp-Source: ABdhPJxc61P0LdfN8VXm3WXBGilj2Smvnutrgq5BZggOgEJ8CEJZBgMN+qSeKIwXTAuFOXO9PY+pNkwnwtXI8JoTshk= X-Received: by 2002:a17:90a:ea88:: with SMTP id h8mr2972588pjz.175.1613555538817; Wed, 17 Feb 2021 01:52:18 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 17 Feb 2021 01:52:18 -0800 From: Stefan Kangas In-Reply-To: <87eehfvrr8.fsf@gnus.org> References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> <87ft1wvv57.fsf@gnus.org> <87eehfvrr8.fsf@gnus.org> MIME-Version: 1.0 Date: Wed, 17 Feb 2021 01:52:18 -0800 Message-ID: Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases To: Lars Ingebrigtsen Content-Type: multipart/mixed; boundary="000000000000b791a305bb852c76" X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org, Stefan Monnier , Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.6 (/) --000000000000b791a305bb852c76 Content-Type: text/plain; charset="UTF-8" Lars Ingebrigtsen 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. --000000000000b791a305bb852c76 Content-Type: text/x-diff; charset="US-ASCII"; name="0001-Don-t-consider-obsolete-commands-for-obsoletion-in-s.patch" Content-Disposition: attachment; filename="0001-Don-t-consider-obsolete-commands-for-obsoletion-in-s.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: 5b4aac0a957415d_0.1 RnJvbSAxMDcxNTkyMmE4NGQwNjdiODM4ZmVmODJiZDhiM2VkODc4MmQ2NWZmIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBTdGVmYW4gS2FuZ2FzIDxzdGVmYW5AbWFyeGlzdC5zZT4KRGF0 ZTogV2VkLCAxNyBGZWIgMjAyMSAxMDo0NTowMCArMDEwMApTdWJqZWN0OiBbUEFUQ0hdIERvbid0 IGNvbnNpZGVyIG9ic29sZXRlIGNvbW1hbmRzIGZvciBvYnNvbGV0aW9uIGluIHNvbWUgY2FzZXMK CiogbGlzcC9zaW1wbGUuZWwgKHJlYWQtZXh0ZW5kZWQtY29tbWFuZCk6IEV4Y2x1ZGUgb2Jzb2xl dGUgY29tbWFuZHMKdGhhdCBhcmUgZWl0aGVyIGxhY2tpbmcgYSAnY3VycmVudC1uYW1lJyBvciB3 ZXJlIG9ic29sZXRlZCBpbiBhCnByZXZpb3VzIG1ham9yIHZlcnNpb24uICAoQnVnIzQzMzAwKQot LS0KIGV0Yy9ORVdTICAgICAgIHwgIDUgKysrLS0KIGxpc3Avc2ltcGxlLmVsIHwgMTkgKysrKysr KysrKysrKysrKysrLQogMiBmaWxlcyBjaGFuZ2VkLCAyMSBpbnNlcnRpb25zKCspLCAzIGRlbGV0 aW9ucygtKQoKZGlmZiAtLWdpdCBhL2V0Yy9ORVdTIGIvZXRjL05FV1MKaW5kZXggOTQzYWQ2YWM1 OS4uN2IyNTdiOWRlMCAxMDA2NDQKLS0tIGEvZXRjL05FV1MKKysrIGIvZXRjL05FV1MKQEAgLTMy Myw5ICszMjMsMTAgQEAgc2V0dGluZyB0aGUgdmFyaWFibGUgJ2F1dG8tc2F2ZS12aXNpdGVkLW1v ZGUnIGJ1ZmZlci1sb2NhbGx5IHRvIG5pbC4KIGRlc2NyaXB0aW9uIG9mIHRoZSBwcm9wZXJ0aWVz LiAgTGlrZXdpc2UgJ2J1dHRvbi1kZXNjcmliZScgZG9lcyB0aGUKIHNhbWUgZm9yIGEgYnV0dG9u LgogCi0qKiBPYnNvbGV0ZSBjb21tYW5kcyBhcmUgbm8gbG9uZ2VyIGhpZGRlbiBmcm9tIGNvbW1h bmQgY29tcGxldGlvbi4KKyoqIE9ic29sZXRlIGFsaWFzZXMgYXJlIG5vIGxvbmdlciBoaWRkZW4g ZnJvbSBjb21tYW5kIGNvbXBsZXRpb24uCiBDb21wbGV0aW9uIG9mIGNvbW1hbmQgbmFtZXMgbm93 IGNvbnNpZGVycyBvYnNvbGV0ZSBhbGlhc2VzIGFzCi1jYW5kaWRhdGVzLiAgSW52b2tpbmcgYSBj b21tYW5kIHZpYSBhbiBvYnNvbGV0ZSBhbGlhcyBub3cgbWVudGlvbnMgdGhlCitjYW5kaWRhdGVz LCBpZiB0aGV5IHdlcmUgbWFya2VkIG9ic29sZXRlIGluIHRoZSBjdXJyZW50IG1ham9yIHZlcnNp b24KK29mIEVtYWNzLiAgSW52b2tpbmcgYSBjb21tYW5kIHZpYSBhbiBvYnNvbGV0ZSBhbGlhcyBu b3cgbWVudGlvbnMgdGhlCiBvYnNvbGVzY2VuY2UgZmFjdCBhbmQgc2hvd3MgdGhlIG5ldyBuYW1l IG9mIHRoZSBjb21tYW5kLgogCiArKysKZGlmZiAtLWdpdCBhL2xpc3Avc2ltcGxlLmVsIGIvbGlz cC9zaW1wbGUuZWwKaW5kZXggMjE1ZjQzOTlmNC4uMDgxNTVjMzZkYiAxMDA2NDQKLS0tIGEvbGlz cC9zaW1wbGUuZWwKKysrIGIvbGlzcC9zaW1wbGUuZWwKQEAgLTE5NjcsNyArMTk2NywyNCBAQCBy ZWFkLWV4dGVuZGVkLWNvbW1hbmQKIAkgICAgICcobWV0YWRhdGEKIAkgICAgICAgKGFmZml4YXRp b24tZnVuY3Rpb24gLiByZWFkLWV4dGVuZGVkLWNvbW1hbmQtLWFmZml4YXRpb24pCiAJICAgICAg IChjYXRlZ29yeSAuIGNvbW1hbmQpKQotICAgICAgICAgICAoY29tcGxldGUtd2l0aC1hY3Rpb24g YWN0aW9uIG9iYXJyYXkgc3RyaW5nIHByZWQpKSkKKyAgICAgICAgICAgKGxldCAoKHByZWQKKyAg ICAgICAgICAgICAgICAgIChpZiAobWVtcSBhY3Rpb24gJyhuaWwgdCkpCisgICAgICAgICAgICAg ICAgICAgICAgOzsgRXhjbHVkZSBmcm9tIGNvbXBsZXRpb25zIG9ic29sZXRlIGNvbW1hbmRzCisg ICAgICAgICAgICAgICAgICAgICAgOzsgbGFja2luZyBhIGBjdXJyZW50LW5hbWUnLCBvciB3aGVy ZSBgd2hlbicgaXMKKyAgICAgICAgICAgICAgICAgICAgICA7OyBub3QgdGhlIGN1cnJlbnQgbWFq b3IgdmVyc2lvbi4KKyAgICAgICAgICAgICAgICAgICAgICAobGFtYmRhIChzeW0pCisgICAgICAg ICAgICAgICAgICAgICAgICAobGV0ICgob2Jzb2xldGUgKGdldCBzeW0gJ2J5dGUtb2Jzb2xldGUt aW5mbykpKQorICAgICAgICAgICAgICAgICAgICAgICAgICAoYW5kIChmdW5jYWxsIHByZWQgc3lt KQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChvciAoZXF1YWwgc3RyaW5nIChzeW1i b2wtbmFtZSBzeW0pKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAobm90IG9i c29sZXRlKQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoYW5kCisgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICA7OyBoYXMgYSBjdXJyZW50LW5hbWUKKyAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChmdW5jdGlvbnAgKGNhZHIgb2Jzb2xldGUp KQorICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgOzsgd2hlbiA+PSBlbWFjcy1t YWpvci12ZXJzaW9uCisgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoPj0gKGNh ciAodmVyc2lvbi10by1saXN0IChjYWRkciBvYnNvbGV0ZSkpKQorICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIGVtYWNzLW1ham9yLXZlcnNpb24pKSkpKSkKKyAgICAgICAg ICAgICAgICAgICAgcHJlZCkpKQorICAgICAgICAgICAgIChjb21wbGV0ZS13aXRoLWFjdGlvbiBh Y3Rpb24gb2JhcnJheSBzdHJpbmcgcHJlZCkpKSkKICAgICAgICAobGFtYmRhIChzeW0pCiAgICAg ICAgICAoYW5kIChjb21tYW5kcCBzeW0pCiAgICAgICAgICAgICAgIChmdW5jYWxsIHJlYWQtZXh0 ZW5kZWQtY29tbWFuZC1wcmVkaWNhdGUgc3ltIGJ1ZmZlcikpKQotLSAKMi4zMC4wCgo= --000000000000b791a305bb852c76-- From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 06:17:03 2021 Received: (at 43300) by debbugs.gnu.org; 17 Feb 2021 11:17:03 +0000 Received: from localhost ([127.0.0.1]:42710 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCKpL-0004WD-B2 for submit@debbugs.gnu.org; Wed, 17 Feb 2021 06:17:03 -0500 Received: from quimby.gnus.org ([95.216.78.240]:35004) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCKpJ-0004Vb-DT for 43300@debbugs.gnu.org; Wed, 17 Feb 2021 06:17:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=6mvoPxK0ItevHHMesE8JBHRSVWbJLRnLyHLtcfrdPpI=; b=fRDGpnKeeC0oXIl/Ojuod3fDow 2cP/9yeqyJFWKDQG5QvICtDFg2+Log/qIBJkLBrG6aW7z3V+7u8xGedZ8yWIJXm9mUTKStxgwjZ+8 YwHjC8IIcn+FY6nN3bXo88j7rjE3axBCFAkfxVg2eUYotrR6NESmH6g2mgkuSliQ+iWk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lCKp8-0007vJ-Rc; Wed, 17 Feb 2021 12:16:53 +0100 From: Lars Ingebrigtsen To: Stefan Kangas Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> <87ft1wvv57.fsf@gnus.org> <87eehfvrr8.fsf@gnus.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXnMS/ezMskIyL/ //9xWUGBAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UCEQsBIUEfjfUAAAF3SURBVCjPVZI9btwwFISH gN7WMrBS4QOkyCnowoU7BRAFmHVsxDxKqi2WKtQFEBfgnNLD3TXgsBDwke9v3ggADmQJ7eB/OMIJ zI5ugLcrwAYMmByQYkFn/YAzJqRN0PWGgh6PygmzPaP6rkGwsWRwMhz+lt6G9wLuzh9Y+s7eX8CK 3jE/wNZXrPRHl4PhWVB46lybZRk/0LoPiYJFBdbqQ2TWm0pX/irxNrbCYma6fMF6Ud4XlI15266Q yC298QaB/EhVpRq4IGBezoBkuhB39dyvAFtWvv24AxYycR/8HdbE2TVwk4qtnFuYDT6WPyzzPSfm 3xp0usGDomrMcwM1etXskiQIktOKM0Oay0+ypqg9mT66LbEIFl6qwuaRsTaluyK96bLt4OTC8iSV gpq8S5wwNmB9ko+n3hpsVaamc4dUUdPeHZh2h7HiH0/HBrK94kLfj0xFPsuF6qdHVdHPMUCOoIF8 NnkqdZraN6U8oa1YXQXh2/kE/iLNvgC4UGcAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDItMTdU MTE6MDE6MzMrMDA6MDAFY3lGAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAyLTE3VDExOjAxOjMz KzAwOjAwdD7B+gAAAABJRU5ErkJggg== X-Now-Playing: Moacir Santos's _Brazil USA 70_: "Kathy" Date: Wed, 17 Feb 2021 12:16:49 +0100 In-Reply-To: (Stefan Kangas's message of "Wed, 17 Feb 2021 01:52:18 -0800") Message-ID: <87mtw3ndum.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas writes: > Here's a patch that does that. [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org, Stefan Monnier , Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas 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 From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 17 08:26:31 2021 Received: (at 43300) by debbugs.gnu.org; 17 Feb 2021 13:26:31 +0000 Received: from localhost ([127.0.0.1]:42839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCMqd-0001SE-Im for submit@debbugs.gnu.org; Wed, 17 Feb 2021 08:26:31 -0500 Received: from mail-wm1-f51.google.com ([209.85.128.51]:52525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCMqb-0001Rw-72 for 43300@debbugs.gnu.org; Wed, 17 Feb 2021 08:26:30 -0500 Received: by mail-wm1-f51.google.com with SMTP id l17so2123185wmq.2 for <43300@debbugs.gnu.org>; Wed, 17 Feb 2021 05:26:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=AUUEmyiA2CNZgo7e/he/m1NP/N3uED4QBB+cdTjLYdU=; b=L2aX2WGqUCyiZTERPmYVwnc9ANjNyUKrGa/SzHgOPHL4buTYUXdC6sr8uQfftHaryQ 3uics+r82O9hyda6s3nYSGeLPWGyZomLOQhcFRdOBJqqBFBXPlJGCt8Dbo7H7eVgUTaQ bbZOmmC4YZo4N7CN/L0UxFhfTZPb/F3v6Kk1O5oof00JL1fEpMnLbYGTn5r1UAeno53b IdzSr7VGgyyW4TKc6jsQ3dslUhRt5hBbDkcoEjK/L6acXXFtKlJYhG7/FC7odURbmjZx WArGnOn0qb80EDoI4T+LmD53rVQsNP3nNa6uOtD0S9OpJmc2FBsZCN1UGamslehy06Ba vU7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=AUUEmyiA2CNZgo7e/he/m1NP/N3uED4QBB+cdTjLYdU=; b=tn9wD3TSggN2AzkByPYeW+JRxIzBVdSfOFs/ylHKYVzTRY+l+FaxlWI/L+kmX9EE4A +x+mL1kosXO4ATjg2bj/jtZNobW2lRNDFAioVIC+I3ZprJH4M57qNcji00hv1RlAiUCI 5tubsVsbeyrIoz9wOxQKxqB9tEj8jIqUWuCdz6azDFBMZCbdL0eOn/OlC+mk9MfWE3G7 8zwcUHRTc0By5AVwioulS+n6t0LDzUX2oci5+6wurvrV4QE51oJEsgDOcbESVw7J3ZGA x69+f/VsldGmykcvFKxPYy0ioxG7q0y4YXm5tB+BelYpu1GB51g8p+meL37hsq7KtFA7 TWlw== X-Gm-Message-State: AOAM532ulUDZ1qWNQiC83u/II2sLAFbWAQB259Xq1UVMgeid7kgni3WN rQsdHr9BPpHx7qqeWu0tzup8GA== X-Google-Smtp-Source: ABdhPJx/IfvghOJu20ftBFUkdM/6JYMXuMM11yTlT7+bPEFRSBqfCzQFG7qqnZi7Cn5Ry+R36xVJ+w== X-Received: by 2002:a1c:9843:: with SMTP id a64mr3343268wme.44.1613568383225; Wed, 17 Feb 2021 05:26:23 -0800 (PST) Received: from localhost ([2a02:8084:20e2:c380:6d2d:c2fa:f3fa:cabd]) by smtp.gmail.com with ESMTPSA id 2sm4394185wre.24.2021.02.17.05.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 05:26:22 -0800 (PST) From: "Basil L. Contovounesios" To: Stefan Kangas Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> <87ft1wvv57.fsf@gnus.org> <87eehfvrr8.fsf@gnus.org> Date: Wed, 17 Feb 2021 13:26:21 +0000 In-Reply-To: (Stefan Kangas's message of "Wed, 17 Feb 2021 01:52:18 -0800") Message-ID: <875z2q25c2.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43300 Cc: 43300@debbugs.gnu.org, Lars Ingebrigtsen , Stefan Monnier , Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas 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 From debbugs-submit-bounces@debbugs.gnu.org Thu May 13 06:19:16 2021 Received: (at 43300) by debbugs.gnu.org; 13 May 2021 10:19:16 +0000 Received: from localhost ([127.0.0.1]:41400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lh8R2-0001ar-AU for submit@debbugs.gnu.org; Thu, 13 May 2021 06:19:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lh8R0-0001aa-34 for 43300@debbugs.gnu.org; Thu, 13 May 2021 06:19:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=CJiqNFhMW5ilGuJBYu+WwRt/gPOlynKyIm/YIHB9+aQ=; b=MLZDHjt2iR/R7LqKkG3kRpjKGS H/tSZp/wiexwpgbkqEipac3hMOZFhVqUusqJIuwA/sBmBgC72xqJtd8v41WNaQNm5Dp1pqz+FA1/m it9PWPUQZZV4Vs32YZ1+J1CGeumZ07m+VbLKiZ6LRK2sdTVEcLNhwhrt16ypcfY32A2U=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lh8Qp-0003EL-Vc; Thu, 13 May 2021 12:19:06 +0200 From: Lars Ingebrigtsen To: Stefan Kangas Subject: Re: bug#43300: [PATCH] Make M-x show new commands for obsolete aliases References: <87ft576o5h.fsf@linkov.net> <87zh3ezvg8.fsf@tcd.ie> <87y2iyh7fh.fsf@mail.linkov.net> <87ft1wvv57.fsf@gnus.org> <87eehfvrr8.fsf@gnus.org> X-Now-Playing: Shara Nelson's _What Silence Knows_: "Uptight" Date: Thu, 13 May 2021 12:19:03 +0200 In-Reply-To: (Stefan Kangas's message of "Wed, 17 Feb 2021 01:52:18 -0800") Message-ID: <87k0o3q6lk.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Stefan Kangas 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. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 43300 Cc: "Basil L. Contovounesios" , 43300@debbugs.gnu.org, Stefan Monnier , Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas 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 From debbugs-submit-bounces@debbugs.gnu.org Thu May 13 06:19:18 2021 Received: (at control) by debbugs.gnu.org; 13 May 2021 10:19:18 +0000 Received: from localhost ([127.0.0.1]:41403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lh8R4-0001b6-Ha for submit@debbugs.gnu.org; Thu, 13 May 2021 06:19:18 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lh8R3-0001ah-0S for control@debbugs.gnu.org; Thu, 13 May 2021 06:19:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=PTU1VNaGPxeoilsgrJpKAXrYZurv1NucdtxWF7hGtJk=; b=g5XrYSiyV9wmlbqeEwL1wsEV/r 8wTDwvU3/5dk1vq4oS6a9KpAnsG+ULj9z9j7htVTTvLkSQldjUAAcVGjjRZBAlsBpKnooLCOwCkqi foaAhXxDUAgUqKo+xndiS5Fpay04qLeVjwXr5gw8UnegiNeaGHLYR4EHBKcBFkgCzsXI=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lh8Qv-0003EW-Fo for control@debbugs.gnu.org; Thu, 13 May 2021 12:19:11 +0200 Date: Thu, 13 May 2021 12:19:09 +0200 Message-Id: <87im3nq6le.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43300 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 43300 fixed close 43300 28.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 43300 fixed close 43300 28.1 quit From unknown Tue Jun 17 20:15:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 10 Jun 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator