From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#27016: possible bug in `defsetf' Date: Thu, 25 May 2017 22:26:40 +0200 Message-ID: <87vaood6nz.fsf@drachen> References: <87poex5igx.fsf@users.sourceforge.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1495744097 23749 195.159.176.226 (25 May 2017 20:28:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 May 2017 20:28:17 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) 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 Thu May 25 22:28:11 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 1dDzMd-0005vF-DU for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 22:28:07 +0200 Original-Received: from localhost ([::1]:33572 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDzMj-0005cn-0J for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 16:28:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47317) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDzMc-0005cG-Iu for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 16:28:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDzMY-0003xz-Ji for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 16:28:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35498) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDzMY-0003xv-G4 for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 16:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dDzMY-0002us-AZ for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 16:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 May 2017 20:28:02 +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: wontfix Original-Received: via spool by 27016-submit@debbugs.gnu.org id=B27016.149574402611149 (code B ref 27016); Thu, 25 May 2017 20:28:02 +0000 Original-Received: (at 27016) by debbugs.gnu.org; 25 May 2017 20:27:06 +0000 Original-Received: from localhost ([127.0.0.1]:38175 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDzLe-0002tl-DG for submit@debbugs.gnu.org; Thu, 25 May 2017 16:27:06 -0400 Original-Received: from mout.web.de ([212.227.17.11]:51943) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDzLc-0002tE-6C for 27016@debbugs.gnu.org; Thu, 25 May 2017 16:27:04 -0400 Original-Received: from drachen.dragon ([94.216.140.150]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MWSBi-1dSqPj23hK-00XbSG; Thu, 25 May 2017 22:26:41 +0200 In-Reply-To: <87poex5igx.fsf@users.sourceforge.net> (npostavs's message of "Thu, 25 May 2017 06:38:54 -0400") X-Provags-ID: V03:K0:9OD59oTXn0fImO/UuzcT7qtqRS+YJa4vAwrj5Z2biC/sg+4FcYh XpM7l3Tg/+rtvQR1h9cxqcBCQvMNjtmljPMzVzoKsUbSy4nDextzO09Mczv+hXiuPjqirNH jXEI2bPLCgi6HJBL86lLMOQidwrkHHwIaKciPx5nB2L8NCeayoyXMrWXdRD6Fz6vBc41js1 vFSCmqI7affmNHp33+f5g== X-UI-Out-Filterresults: notjunk:1;V01:K0:zhDyKpKKEG0=:A7nDKfYPutWNmFwevMCtLf whBnCZzUZ+iLtYhrgx1oatYXlCZwiZG4eVuOFRiA9pDjdvQ4HqCLU7ASLoup7yws2EQDYmAkT iJR8P5Tear8pMYD3uaMZw/+JmHEa/Yx44T/wk8KmuLKdWBfh9zDEVWg0K9s81Kue1Gv0b46WL XZJZeNL1c65628x/Lf7zKmmDNZ5RjOELh6YBIjl8Yz+4fwBxZvOIr1laPFe0IQoLkDFZ2I9kZ eCGhMw6Au/KNPxH236qxo5lRttAZnEUXgcUsuHqUD/G26/+VE6NZrVG+JUcPHuNHvMvnU6jIS L+RtyVQpBygSoJeVQICIRZQsPTAl2hkXOqm7Lpfbwjd6pDjxX2GtrC9LD8kyuceWpGmKJRC1s pUqBgdonELihFq69kLmliGDQWw6TbU0XNx/FhQIu6hon0uacwmbk8/26YNV+v94K3EyZCs6KC +n5Lv9xLw8FQz4n5fQDEq1JptbEx+SibyfYs70YZNJvPwUrODZx2cbfUHwu2Cc/n5J//B8XNJ aQVt4Z2XWmMLyJqEfLTLJDXitfbBRHWMstSXG3wwQT6RMLXQ6/McXXD9yEEexm5VpLpLUqCep rLoIPIpP/nV3TPmJjubfUbo3b4GW982RPTxn+kN5St4FQnIg64DTCzRStL3hAH+pQzRHYzrSV 4l1SlWirpNFNrZiW40TC/KYtBIliL9wcx6Oga3OTpEaCKS3n0RsCwPFm5yEATYNC0ItTDeikx itpsHJYReDzOrEG2VEjHZtoZPDcrqqWNykyBErv3sdagrm1xRREqZsm2kziKuQhfoNHmqek4 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:132859 Archived-At: npostavs@users.sourceforge.net writes: > Oh, I think `eval-when' should be equivalent: > > (eval-when (compile load eval) > (unless t > (defsetf foobar setcar))) FWIW, I don't understand. Doesn't that just expand to the same code as before when evaluated? That code is just evaluated under even more circumstances. I would rather try something like #+begin_src emacs-lisp (unless t (eval '(progn (defalias 'foobar 'cons) (defsetf foobar setcar)))) #+end_src to avoid the eager macro expansion unless the code is actually run. Michael.