From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: npostavs@users.sourceforge.net Newsgroups: gmane.emacs.bugs Subject: bug#27016: possible bug in `defsetf' Date: Mon, 22 May 2017 08:11:25 -0400 Message-ID: <87mva5f5w2.fsf@users.sourceforge.net> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1495455022 14884 195.159.176.226 (22 May 2017 12:10:22 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 May 2017 12:10:22 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: 27016@debbugs.gnu.org To: Rafael D Sorkin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 22 14:10:14 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 1dCmA9-0003fh-UR for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 May 2017 14:10:14 +0200 Original-Received: from localhost ([::1]:42173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCmAF-0005bg-8f for geb-bug-gnu-emacs@m.gmane.org; Mon, 22 May 2017 08:10:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dCmA3-0005Wj-RM for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 08:10:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dCm9y-0005PL-B1 for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 08:10:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:57421) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dCm9y-0005PH-7K for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 08:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dCm9x-0007Gp-Ss for bug-gnu-emacs@gnu.org; Mon, 22 May 2017 08:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: npostavs@users.sourceforge.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 22 May 2017 12:10: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: Original-Received: via spool by 27016-submit@debbugs.gnu.org id=B27016.149545499627932 (code B ref 27016); Mon, 22 May 2017 12:10:01 +0000 Original-Received: (at 27016) by debbugs.gnu.org; 22 May 2017 12:09:56 +0000 Original-Received: from localhost ([127.0.0.1]:60098 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCm9r-0007GM-Oc for submit@debbugs.gnu.org; Mon, 22 May 2017 08:09:55 -0400 Original-Received: from mail-it0-f51.google.com ([209.85.214.51]:38464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dCm9q-0007G4-5S; Mon, 22 May 2017 08:09:54 -0400 Original-Received: by mail-it0-f51.google.com with SMTP id r63so21641216itc.1; Mon, 22 May 2017 05:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=XZugcra421JyI+gbRKO3uOrHujU4jQJbyaWqY6vY60s=; b=mVI3gQQbWoX6bYQ0X051IouxI/fm1Qn3bqjYJOJoC8lPt/z1lU/YH+VAaomaBaGwXW jnqI3bCGY25Z5UpvIoQ/WzHA45hpM5BSjSW5LlDvngRS8BoUVRjgteHvkERefPugbQ2n xbe2jFweEbOuU51PS0XdPWIio9pIElSOszKJ6CZbzJFYzW9gqUuuXMy2kQG3GQ71JK7z uFpx2ld26HuFLG92VWm0UVA63NlVvytZPwqBf7aa+6viupPQI/JQZQcjmiPIf/fxnqOx EDyIaab6ek95DZmMx4+03JWDdHx9yzjRY7fkAVsPKUO9nQL9fWYyVXqBTrfMGROzRUzM s15Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=XZugcra421JyI+gbRKO3uOrHujU4jQJbyaWqY6vY60s=; b=Pn79Blg4HA6xt1l3nC/pj4YeiqT3dp4UjAVX+wL1DATIKJpvuQwqCGhQlSUI5SKgQn jJwjp0Jvv34M8+ZDv3vIcbqEahT926ouJVTrezACR6eps7id2WlsvW5LqtquafIoYuW+ JBVZvlKwXMoGg7sDF/H1NRgsIbSp97WB6W9Om/D8WTh/jHnVxLvdL7LYJDCoEBE49tOz be0hdAT/iK4mNclgPsdJwyCsQ2k32VyRWYlT7IVlH7rK7QqowfJEItui6N1u2BvYxr8L SNFzKvCI4sufIRb6DnJvaOvSD321JqhAVW8GCeoy6jxSabDoJuzeaqXXxQoW+h2eb9vO b9gw== X-Gm-Message-State: AODbwcAkI+uo4oW4l4nGZYdWS296XX4HEU+3N/bW+v/0mwnMeFLjtkzk 6MghSKVTPU02ag== X-Received: by 10.36.33.142 with SMTP id e136mr39304669ita.72.1495454988574; Mon, 22 May 2017 05:09:48 -0700 (PDT) Original-Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id y87sm35407ita.17.2017.05.22.05.09.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 May 2017 05:09:47 -0700 (PDT) In-Reply-To: (Rafael D. Sorkin's message of "Mon, 22 May 2017 02:39:28 -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:132729 Archived-At: 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.