Subject: bug#56641: closed (Re: bug#56641: Deprecate `lsh`)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 23 Jul 2022 10:33:02 +0000

Your bug report

#56641: Deprecate `lsh`

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
56641: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=56641
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#56641: Deprecate `lsh`
From: Mattias Engdegård <[email-masked]>
To: Lars Ingebrigtsen <[email-masked]>
Cc: [email-masked], Wilson Snyder <[email-masked]>
Date: Sat, 23 Jul 2022 12:32:24 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

There is now a compiler warning about calls to `lsh`.

Although we usually defer changes in verilog-mode.el to the maintainer for keeping in sync with the upstream version, I made the necessary (trivial) adjustments to keep warnings away.

Subject: Deprecate `lsh`
From: Mattias Engdegård <[email-masked]>
To: Emacs Bug Report <[email-masked]>
Date: Tue, 19 Jul 2022 15:38:29 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

The function `lsh` works almost like `ash` but is much slower, cannot be constant-folded by the compiler, and above all has confusing semantics for historical reasons. Using `lsh` instead of `ash` is always a mistake.

For these reasons we should deprecate `lsh`. It is not important to remove it as soon as possible, but to dissuade people from accidentally using it in their code.