From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#32463: 27.0.50; (logior -1) => 4611686018427387903 Date: Sat, 18 Aug 2018 11:48:11 -0700 Organization: UCLA Computer Science Department Message-ID: <3a6f17af-018e-cb0b-5182-cf736b3a814c@cs.ucla.edu> References: <86mutll4w2.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1534618026 4824 195.159.176.226 (18 Aug 2018 18:47:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 18 Aug 2018 18:47:06 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cc: 32463@debbugs.gnu.org To: Pip Cet , andrewjmoreton@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 18 20:47:01 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fr6FZ-000189-AG for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Aug 2018 20:47:01 +0200 Original-Received: from localhost ([::1]:40079 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fr6Hf-00009V-HF for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 Aug 2018 14:49:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51792) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fr6HZ-00009D-1A for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2018 14:49:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fr6HV-0006xW-TG for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2018 14:49:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49215) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fr6HV-0006xS-Pt for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2018 14:49:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fr6HV-0006Ek-O5 for bug-gnu-emacs@gnu.org; Sat, 18 Aug 2018 14:49:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Aug 2018 18:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 32463 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 32463-submit@debbugs.gnu.org id=B32463.153461810023917 (code B ref 32463); Sat, 18 Aug 2018 18:49:01 +0000 Original-Received: (at 32463) by debbugs.gnu.org; 18 Aug 2018 18:48:20 +0000 Original-Received: from localhost ([127.0.0.1]:54233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fr6Gq-0006Dg-1q for submit@debbugs.gnu.org; Sat, 18 Aug 2018 14:48:20 -0400 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:55626) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fr6Go-0006DS-Qx for 32463@debbugs.gnu.org; Sat, 18 Aug 2018 14:48:19 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 18A07160F92; Sat, 18 Aug 2018 11:48:13 -0700 (PDT) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id G3yIdMfdvC2t; Sat, 18 Aug 2018 11:48:12 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 54180160FBE; Sat, 18 Aug 2018 11:48:12 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id weeV1JlLy8F5; Sat, 18 Aug 2018 11:48:12 -0700 (PDT) Original-Received: from [192.168.1.9] (unknown [47.154.30.119]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D3392160F92; Sat, 18 Aug 2018 11:48:11 -0700 (PDT) In-Reply-To: Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:149572 Archived-At: Pip Cet wrote: > Paul committed a patch in the meantime (independently, I think?) which > does add tests. I'll try to write some more. Yes, I noticed the logior etc. problem separately and fixed it in master without knowing about this bug report. There are some other bignum problems too that need fixing and are in my pipeline. > can we agree that lsh and ash behave > the same for bignums? It would be weird for lsh to act one way for negative bignums, and a different and incompatible way for negative fixnums. Instead, I suggest that we deprecate lsh, as it doesn't make sense any more now that integers have unbounded size. While we're deprecating it, we can make (lsh A B) signal an error if A is a bignum and B is negative, since there's nothing we can do there that is reasonable and is compatible with the fixnum behavior.