From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56641: Deprecate `lsh` Date: Wed, 20 Jul 2022 14:24:50 +0300 Message-ID: <838room3gd.fsf@gnu.org> References: <83zgh5mcqk.fsf@gnu.org> <52FF0BFF-F19C-4ABA-82BE-8FE3277B726D@acm.org> <83lespm50p.fsf@gnu.org> <87cze0bmn6.fsf@yahoo.com> <83bktkmrwx.fsf@gnu.org> <877d48bhch.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28359"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattiase@acm.org, stefankangas@gmail.com, 56641@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 20 13:57:06 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1oE8K9-00078g-1g for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 13:57:05 +0200 Original-Received: from localhost ([::1]:45250 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE8K8-0008Mf-19 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 Jul 2022 07:57:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE7q6-0007Z5-E4 for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 07:26:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58252) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE7q6-0001t9-5b for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 07:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oE7q6-0003rt-1r for bug-gnu-emacs@gnu.org; Wed, 20 Jul 2022 07:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 20 Jul 2022 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56641 X-GNU-PR-Package: emacs Original-Received: via spool by 56641-submit@debbugs.gnu.org id=B56641.165831630814797 (code B ref 56641); Wed, 20 Jul 2022 11:26:02 +0000 Original-Received: (at 56641) by debbugs.gnu.org; 20 Jul 2022 11:25:08 +0000 Original-Received: from localhost ([127.0.0.1]:56008 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE7pD-0003qb-MO for submit@debbugs.gnu.org; Wed, 20 Jul 2022 07:25:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47392) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE7pC-0003px-24 for 56641@debbugs.gnu.org; Wed, 20 Jul 2022 07:25:06 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE7p6-0001Q9-JU; Wed, 20 Jul 2022 07:25:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KIRx2JQlBJDS/gT5CCObjFUzlCt6wmhiDPWZB4OK9EU=; b=JkuLLD0+aSrg 3/Cu388+tdHFTmKh2QA1L+x7Z3SGsdP8IC4RKFaSwbkBq1daVT6lt1NKc8C2UL9Ik8VqrTnKiJqLj oMSP0RuaH0CsE6YWPsR+Z04+c1BdZbKg7pfgEdHa/2b88TviYwdgGZ/HN83WSjI3gMvEPiIYdyBoc 5tXFLE1Dzm8AMl+06qVnoYKdEYA4IPE2J/LajfpE1KHxzrIrqS5ZHf9sNa8VQ3H9/JbaBKjo74mu8 WZA5kdM1aYm5AbgvDOscP+Xr6Bo0PRDkBqB5CNkbjnf+bhc8ABwrRfM6aBeZJ0sZuqfXcoobHrJ80 UVRL9knHC/2nQ/Q8dmi3Lw==; Original-Received: from [87.69.77.57] (port=4163 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE7p6-00038p-2s; Wed, 20 Jul 2022 07:25:00 -0400 In-Reply-To: <877d48bhch.fsf@yahoo.com> (message from Po Lu on Wed, 20 Jul 2022 11:20:14 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237491 Archived-At: > From: Po Lu > Cc: stefankangas@gmail.com, mattiase@acm.org, 56641@debbugs.gnu.org > Date: Wed, 20 Jul 2022 11:20:14 +0800 > > Eli Zaretskii writes: > > > If it's rare enough (as it should be), I don't see the annoyance. Am > > I missing something? > > It might be rare, but there's nothing wrong with using lsh for its > intended purpose, which is handling negative numbers correctly in > several different situations. The point is that people could use lsh because they don't realize they could use ash instead. If one really must use lsh, there's always with-no-warnings, which is IMO fine for the rare situations where it's needed. > Byte-compiler warnings are supposed to point out problems. And this could indeed be a problem: that the programmer is not aware of a better alternative. So I don't see a problem with warning in this case, I just don't want us to pretend this function is "obsolete", because it isn't.