From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Rafael D Sorkin Newsgroups: gmane.emacs.bugs Subject: bug#27016: possible bug in `defsetf' Date: Mon, 22 May 2017 16:25:14 -0400 Message-ID: References: Reply-To: Rafael D Sorkin NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1495484772 8315 195.159.176.226 (22 May 2017 20:26:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 May 2017 20:26:12 +0000 (UTC) Cc: 27016@debbugs.gnu.org, Rafael D Sorkin To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 22 22:26:08 2017 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 1dCtu4-00022D-6b for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 May 2017 22:26:08 +0200 Original-Received: from localhost ([::1]:44787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCtu9-0007ts-P6 for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 May 2017 16:26:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCtu1-0007sT-Pl for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 16:26:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCtty-0001KA-Hn for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 16:26:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58844) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCtty-0001Jg-81 for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 16:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dCttx-0005ty-VH for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 16:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Rafael D Sorkin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 May 2017 20:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27016 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo unreproducible Original-Received: via spool by 27016-submit@debbugs.gnu.org id=B27016.149548472122641 (code B ref 27016); Mon, 22 May 2017 20:26:01 +0000 Original-Received: (at 27016) by debbugs.gnu.org; 22 May 2017 20:25:21 +0000 Original-Received: from localhost ([127.0.0.1]:33288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCttJ-0005t7-DJ for submit@debbugs.gnu.org; Mon, 22 May 2017 16:25:21 -0400 Original-Received: from mail-oi0-f100.google.com ([209.85.218.100]:32931) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCttH-0005st-Fk for 27016@debbugs.gnu.org; Mon, 22 May 2017 16:25:20 -0400 Original-Received: by mail-oi0-f100.google.com with SMTP id b3so16107492oii.0 for <27016@debbugs.gnu.org>; Mon, 22 May 2017 13:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=perimeterinstitute.ca; s=google; h=reply-to:from:to:cc:subject:in-reply-to:message-id:date; bh=z4CB1gigW915eEo67EyQTav9RldBE+4l8Qrv5sT/y84=; b=SSfrPZvSR4HWp2vwg41kPSUGPL1TjRLf5Ofj/VJj9Rv//HozZHJimOgqoTvC3khUpD +cpCVXPe04ipQhpG3ggKFOMSoSue8vJ8eiRYG9O58kkaZv5ZsOc1dybwr/gx26F6CLxs jdGMr0JnYqHY+YJKZocBpPTNhR5GuLI1D3oGY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:from:to:cc:subject:in-reply-to :message-id:date; bh=z4CB1gigW915eEo67EyQTav9RldBE+4l8Qrv5sT/y84=; b=Um5wTTiUgI6F+t1cu7l4FtMHVECYE74/m+d9Z99Oes0JPvHcRuQDyCwEvky4kRNxka +fZ9nnt7oTJNzq8l6x1sQGMOrkmRxGApFObeQjBHci7odC2KXmAWDi0r51wUW4nptupS 58crtNaw16g1zrBAyBod8RhryHN0cqqYVpf9dTYC9Ns3LfaKTjN+TYzfT8wnGs9LxWcl bLxPdfemkYjtFyawkwm2NCRSLraDIjUNp1PZCQaL1mPzxNlnQaHJ+g8hRMJktmCSsbPf 8dWSfZ5yKAo50mRdCRED390DhMxv3QiEcB9PhsebZvmxRESr5ves0URl5RgmnaiFM8ej jknA== X-Gm-Message-State: AODbwcCD6YwI5wx2XxkgQom/IzhgKnni9G5XDQx4oqGuCvbzWK6UtHD0 J1aFqIbG38wS9ExPTEnFGYwY7qpSGOt6h41WJ8o2 X-Received: by 10.36.12.141 with SMTP id 135mr41004121itn.89.1495484713730; Mon, 22 May 2017 13:25:13 -0700 (PDT) Original-Received: from mail.perimeterinstitute.ca ([38.104.158.162]) by smtp-relay.gmail.com with ESMTP id o184sm6433894ito.2.2017.05.22.13.25.13; Mon, 22 May 2017 13:25:13 -0700 (PDT) X-Relaying-Domain: perimeterinstitute.ca Original-Received: from mars.pi.local (mars.pi.local [10.10.7.6]) by mail.perimeterinstitute.ca (Postfix) with ESMTPS id CD34AC0025; Mon, 22 May 2017 16:34:17 -0400 (EDT) Original-Received: from rsorkin by mars.pi.local with local (Exim 4.69) (envelope-from ) id 1dCttC-0001tS-OZ; Mon, 22 May 2017 16:25:14 -0400 X-Mailer: MH-E 8.2; nmh 1.2; GNU Emacs 23.1.1 In-reply-to: your message of Mon, 22 May 2017 08:11:25 -0400 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:132741 Archived-At: Hi Noam, Following your suggestion I tried starting with "emacs -Q" and got the same results as you did. However if I (require 'cl) then the bug returns. (I normally require CL automatically on starting emacs.) So perhaps it's an incompatibility between CL and the new way that defsetf is implemented. - Rafael > Sender: Noam Postavsky > From: npostavs@users.sourceforge.net > To: Rafael D Sorkin > Cc: 27016@debbugs.gnu.org > Subject: Re: bug#27016: possible bug in `defsetf' > Date: Mon, 22 May 2017 08:11:25 -0400 > In-Reply-To: (Rafael D. Sorkin's message of > "Mon, 22 May 2017 02:39:28 -0400") > User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) > > tags 27016 unreproducible > quit > > Rafael D Sorkin writes: > > > emacs-version ; 24.5.1 > > (setq pair (cons 3 4)) ; (3 . 4) > > (foobar pair) ; Symbol's function definition is void: foobar > > (setf (foobar pair) 0) ; (foobar pair) is not a valid place expression > > (unless t > > (defalias 'foobar 'cons) > > (defsetf foobar setcar)) ; nil > > (foobar pair) ; same as above > > (setf (foobar pair) 0) ; 0 ! > > pair ; (0 . 4) ! > > I'm not able to reproduce this behaviour on 24.5, the second setf throws > an error just like the first. How are you evaluating these exactly > (starting from emacs -Q)? I tried C-x C-e on each sexp in turn. ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- Rafael Sorkin Perimeter Institute for Theoretical Physics 31 Caroline Street North Waterloo, ON N2L 2Y5 Canada ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-