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: Thu, 25 May 2017 01:01:04 -0400 Message-ID: References: Reply-To: Rafael D Sorkin NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1495688534 21955 195.159.176.226 (25 May 2017 05:02:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 25 May 2017 05:02:14 +0000 (UTC) Cc: Michael Heerdegen , 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 07:02: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 1dDkuV-0005aF-HU for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 07:02:07 +0200 Original-Received: from localhost ([::1]:58206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDkub-00058B-7U for geb-bug-gnu-emacs@m.gmane.org; Thu, 25 May 2017 01:02:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39524) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDkuV-00056e-FL for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 01:02:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDkuQ-0007l2-Ju for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 01:02:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34154) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDkuQ-0007ky-Gm for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 01:02:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dDkuQ-0003xX-9U for bug-gnu-emacs@gnu.org; Thu, 25 May 2017 01:02:02 -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: Thu, 25 May 2017 05:02: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.149568846915160 (code B ref 27016); Thu, 25 May 2017 05:02:02 +0000 Original-Received: (at 27016) by debbugs.gnu.org; 25 May 2017 05:01:09 +0000 Original-Received: from localhost ([127.0.0.1]:36831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDktZ-0003wR-Dy for submit@debbugs.gnu.org; Thu, 25 May 2017 01:01:09 -0400 Original-Received: from mail-oi0-f100.google.com ([209.85.218.100]:36856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDktX-0003wE-SQ for 27016@debbugs.gnu.org; Thu, 25 May 2017 01:01:08 -0400 Original-Received: by mail-oi0-f100.google.com with SMTP id w138so22690046oiw.3 for <27016@debbugs.gnu.org>; Wed, 24 May 2017 22:01:07 -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=vNUPKSQucU/aWOXSntRPInMR06dN2zyu3sBFDK+AW9c=; b=CWnFZOso+6JVK3zbeP6wnVmc/kBSKqcQKU2fwvojZSq4Z1ywaAn4vKcXerYZxpefsQ veN/RDSijQbg0yG433paTdqsT/sZKLo1rPlWU84QZwAMf5H9XnQdaC8r3zTorb38ctxG s933Lnz/3LRCvFv1fDuhc8ByTSg3P+nlcq+vg= 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=vNUPKSQucU/aWOXSntRPInMR06dN2zyu3sBFDK+AW9c=; b=GC8BMnVa/amiIW5ZHEHi4OYOLrVfLksgQE/1uiugS2lux2Df9GN++pnqvTOv+gP24F kwbmnzlz/DPqJhvcZc3wcAxIQdRX2ABU5cCp1nd4WqOUHW0uQFLN4Q3cZFLCZ2fcT7h+ wcIbNoPdNe+A4YrmL19Z23oJKaGJ7PzS8C/ISUb1xydm4VtJFapyp1nFYWbaO4Irbsuy iwkVb2PCn0Gy//5xBT2QUhQ/9gTQXm/afrdhZZm73l+ySUmDl3hyjskDJaPTca2tAgyB BqbdrkRAlPG7vN1NY2AtVFIreKcFmBHFjqU3742aEmwXLw8DwNzNOiCozVpM1cQJjZEN obQw== X-Gm-Message-State: AODbwcCFQm7dORlbSU0AzvOLBeEJVPke0GuOJ++mbop+MU4GOimMAIoC RroEFwMUgHnMGR+yIoTJAqP0Ie5y6w5Bv77KFChw X-Received: by 10.200.39.171 with SMTP id w40mr29740706qtw.87.1495688462384; Wed, 24 May 2017 22:01:02 -0700 (PDT) Original-Received: from mail.perimeterinstitute.ca ([38.104.158.162]) by smtp-relay.gmail.com with ESMTP id a15sm914795qkj.5.2017.05.24.22.01.02; Wed, 24 May 2017 22:01:02 -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 A7AA2C007B; Thu, 25 May 2017 01:10:18 -0400 (EDT) Original-Received: from rsorkin by mars.pi.local with local (Exim 4.69) (envelope-from ) id 1dDktU-0007AL-2h; Thu, 25 May 2017 01:01:04 -0400 X-Mailer: MH-E 8.2; nmh 1.2; GNU Emacs 23.1.1 In-reply-to: your message of Wed, 24 May 2017 21:50:55 -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:132816 Archived-At: > tags 27016 wontfix > close 27016 > quit > > > Can't you just `defsetf' unconditionally to a named > > function, and change that function's definition when > > appropriate (in a conditional)? > > Or just > > (eval-and-compile > (unless t > (defsetf foobar setcar))) > > Anyway, I don't see any likely solutions to make this work > exactly as before, so I'm going to close this as wontfix, but > feel free to continue discussing (and/or say that I'm wrong). One problem is that, as far as I know, common lisp doesn't have `eval-and-compile', and my code is meant to work with both elisp and common lisp. In any case, as I wrote to Michael, I plan now to use defsetf only at top level. So thanks for the suggestion, and do feel free to keep this bug closed as "wontfix". - Rafael ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- Rafael Sorkin Perimeter Institute for Theoretical Physics 31 Caroline Street North Waterloo, ON N2L 2Y5 Canada ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-