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: Wed, 24 May 2017 00:52:34 -0400 Message-ID: References: Reply-To: Rafael D Sorkin NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1495601598 27776 195.159.176.226 (24 May 2017 04:53:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 24 May 2017 04:53:18 +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 Wed May 24 06:53: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 1dDOIL-00070j-1Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 May 2017 06:53:13 +0200 Original-Received: from localhost ([::1]:52714 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDOIM-0000xs-1k for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 May 2017 00:53:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dDOID-0000wi-Ly for bug-gnu-emacs@gnu.org; Wed, 24 May 2017 00:53:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dDOIA-0006ES-Hk for bug-gnu-emacs@gnu.org; Wed, 24 May 2017 00:53:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60937) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dDOIA-0006ED-Cx for bug-gnu-emacs@gnu.org; Wed, 24 May 2017 00:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dDOI9-0003R4-So for bug-gnu-emacs@gnu.org; Wed, 24 May 2017 00:53: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: Wed, 24 May 2017 04:53: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.149560156013178 (code B ref 27016); Wed, 24 May 2017 04:53:01 +0000 Original-Received: (at 27016) by debbugs.gnu.org; 24 May 2017 04:52:40 +0000 Original-Received: from localhost ([127.0.0.1]:35381 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDOHo-0003QU-LB for submit@debbugs.gnu.org; Wed, 24 May 2017 00:52:40 -0400 Original-Received: from mail-qt0-f225.google.com ([209.85.216.225]:35250) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dDOHm-0003QH-Mb for 27016@debbugs.gnu.org; Wed, 24 May 2017 00:52:39 -0400 Original-Received: by mail-qt0-f225.google.com with SMTP id s58so21026025qtb.2 for <27016@debbugs.gnu.org>; Tue, 23 May 2017 21:52:38 -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=R9xuZzW1KlFCzX87x2j01rgT4h2lDBzLrsymXgfgCqo=; b=X7YnHujMz3LuD1LnGL7ZOYkRkWrUiEI3azk7LQtZXPeeln1SGtt7XTbiN7BCUyIkxF AvMeWs/uiECOleAE9acypWXMOfJDydfUJoawo66s4o0ZG2Fw/Hrs81oiWpHqxHe+3rm1 ZrxXizD448EWEQAVxKv3YPpLfyx0aEbfbeA4s= 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=R9xuZzW1KlFCzX87x2j01rgT4h2lDBzLrsymXgfgCqo=; b=db8HebNo+35iT9WRDJyATkPyHFSYQIAIwFb0BrNEjGAfqB2nP/foVcwC5UThumu3DN 00SXvkbxXrAJeus1OwTKe7YHvKhi0Ogt7r0RdtmxCkolDhe8+WamG7QIx2Ux1eXvZ+Ht 6VxG/MkWaHKrvaNPDpSQU9gFf9v9NjB6ljlVPk6FZpHVk5K/kaHoYp0EoYjYGqxup7CJ HdSVfB3x9RHC1IfpH2MUjz/yLxiTLEf0I4w7G8gzgbK6n/aFR9IzdDC2yvlUm0b3qOkg 0jvxP6WkKyBVHLmQgkhndo2natFg2iNEQMUb6mSAVPuK4iRp/CVHFm+Fiv9YmSl549aD WO3Q== X-Gm-Message-State: AODbwcANYSK9dZrMQezaq1jwNr8yEKE22Kq1DPwuXPJhjrtrxCz2sVHl TDjvElr9cLXWKouvRe0PNnm2OwG0IeYdSBjvTiBt X-Received: by 10.36.118.12 with SMTP id z12mr6827162itb.47.1495601552773; Tue, 23 May 2017 21:52:32 -0700 (PDT) Original-Received: from mail.perimeterinstitute.ca ([38.104.158.162]) by smtp-relay.gmail.com with ESMTP id u4sm1096730ita.0.2017.05.23.21.52.32; Tue, 23 May 2017 21:52:32 -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 C0F9CC0075; Wed, 24 May 2017 01:01:43 -0400 (EDT) Original-Received: from rsorkin by mars.pi.local with local (Exim 4.69) (envelope-from ) id 1dDOHi-0000sh-3R; Wed, 24 May 2017 00:52:34 -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 19:15:57 -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:132777 Archived-At: > `defun' takes effect at runtime (or rather it expands to > `defalias' which operates at runtime), whereas `defsetf' has > to affect subsequent compilation, so waiting until runtime to > decide whether the condition is true could not really work. Well the way I was using it, everything used to work fine. I found the bug when it stopped working and I was unable to figure out why. I had a defsetf inside a conditional in a file that was to be loaded and/or compiled and then loaded. (Compilation isn't really the issue.) Before loading that file I set a "switch" which the conditional referred to. That way a defsetf done before loading the file could be either overridden or not, as desired. I found the ability to control the defsetf this way to be useful. However, as I wrote before, I only used this device a few times, not so many that I couldn't adapt to losing it. ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~- Rafael Sorkin Perimeter Institute for Theoretical Physics 31 Caroline Street North Waterloo, ON N2L 2Y5 Canada ~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-