From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: master d506d91b1f 2/2: Make linum.el obsolete Date: Wed, 21 Sep 2022 12:17:56 -0400 Message-ID: References: <166370103866.17769.3203831255447980421@vcs2.savannah.gnu.org> <20220920191039.C61BCC00874@vcs2.savannah.gnu.org> <8735clp3n7.fsf@posteo.net> <87v8phnjqx.fsf@posteo.net> <87pmfonbi3.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007cde5905e9324a16" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21510"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Kangas , EMACS development team To: Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 21 18:40:10 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ob2le-0005Oi-ML for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 18:40:10 +0200 Original-Received: from localhost ([::1]:43794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ob2ld-0004lC-Pg for ged-emacs-devel@m.gmane-mx.org; Wed, 21 Sep 2022 12:40:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43914) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ob2QR-0002YD-8D for emacs-devel@gnu.org; Wed, 21 Sep 2022 12:18:18 -0400 Original-Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]:42966) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ob2QO-0002AZ-Tb for emacs-devel@gnu.org; Wed, 21 Sep 2022 12:18:14 -0400 Original-Received: by mail-pl1-x634.google.com with SMTP id v1so6153798plo.9 for ; Wed, 21 Sep 2022 09:18:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=nN32140KlrBkma2VsP4kyaLSUipLRClmrODQPmChNRk=; b=a5kdpMCsfzlcnOTci6EsVxNsvDT3tXTCO5DvN+wvv0h2FxttPSTKj05qmOy5W5y9Yy sTTj5G/F6ahYBUl9zI4TRto0VrWvNQFCsPjdH+H+sjQYXrHubjEzIkwad8wtdxTlYIBQ 5Qdk5O3vXAqzWsFNL62fkC6zV3pP0Lk6WIaSBu7SQloZ9NGy8uZuok4C7HgG+oJpH3X4 DxLEMmn16lfyqMbTlsjmv1rXdOl1Q8QBoFEaHJ9kLd29KfNrAR8fc2O8LHkotQ/zcpN5 LLpa46sl2BwngewqpklmFM3xScx2Tx1Muw9aLMmK4yOFEzNy4rg/xg5BR7/lgB6sGJE3 jrYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=nN32140KlrBkma2VsP4kyaLSUipLRClmrODQPmChNRk=; b=BUQPK8lttr73/gCCByCRXGxsQXLmmqL/CWabFBkm4UvEQTwyLzQo3/Ru/FeAC3Pz/2 ZweTxrfGbwXFJ8euOvLzvPpKYAr7WqeycO/e3m2aL0I+ratyzuY4Slc4GS730y+lbYid A/JIWXdWbhUThkyRSTiAhtS9e+lgZ0C9bN72ogxz/WQgcmkYnLHtpsZYWFEVkfPWOehG MkLdHBZzWkdBqlgxGIgaci+CFhIgWNvsOzb6QhP4A9GaLqPylfCoBZBvvtHRKeqiVdl7 oCxOTZEVenlEvgzCgDt6QzgvAYfmwoJYLpQmc5/MijaMYmodYAj8h2jUvyH0dfhnkwEf hmEw== X-Gm-Message-State: ACrzQf3AGTgQc9onwLZMigbt5Cup/wDfmyd02oUUQjN0IzlIQIcOBFU0 lEFSXdPWWAFlEz9dBtl84UQ77RUdGZuakc+eKTY= X-Google-Smtp-Source: AMsMyM7kJ6vnAh7bitsbrgCHCKeeitFoGx+eKynLyuSg9OT3z+/ynzBWRn33aCeDv53sz87mQ681rqnEnDRBhyuCSeA= X-Received: by 2002:a17:90a:f291:b0:200:acc9:422d with SMTP id fs17-20020a17090af29100b00200acc9422dmr10047486pjb.21.1663777090885; Wed, 21 Sep 2022 09:18:10 -0700 (PDT) In-Reply-To: <87pmfonbi3.fsf@posteo.net> Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=yandros@gmail.com; helo=mail-pl1-x634.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:295933 Archived-At: --0000000000007cde5905e9324a16 Content-Type: text/plain; charset="UTF-8" On Wed, Sep 21, 2022 at 9:24 AM Philip Kaludercic wrote: > Perhaps, when it comes to this, it might be enough to add a legacy alias > and make `linum-mode' invoke `display-line-numbers-mode', doing the same > for `global-linum-mode' and `global-display-line-numbers-mode'. > > A more general idea might be to have some kind of init.el-health-checker > command that could detect and propose to fix simple issues like these. > But then again, will those who never pay attention notice this? > Perhaps a variant of the disabled-command machinery for replaced functionality? Something like: (put 'linum-mode 'replaced "This library was made obsolete in Emacs 29.1. We recommend...") If this need doesn't deserve a generalized approach, it looks like a one-off for linum based on #'command-query could work. Hope this helps, ~Chad --0000000000007cde5905e9324a16 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


--0000000000007cde5905e9324a16--