From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel Subject: Re: optimizing defconst Date: Mon, 29 Oct 2007 09:25:01 -0700 (PDT) Message-ID: <39505.128.165.123.18.1193675101.squirrel@webmail.lanl.gov> References: <200710271747.l9RHlQ53020242@oogie-boogie.ics.uci.edu> <200710280228.l9S2Sldn002915@oogie-boogie.ics.uci.edu> <87fxzumc4x.fsf@kfs-lx.testafd.dk> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1193675514 7597 80.91.229.12 (29 Oct 2007 16:31:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Oct 2007 16:31:54 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 29 17:31:57 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1ImXWu-0005Gs-6W for ged-emacs-devel@m.gmane.org; Mon, 29 Oct 2007 17:31:56 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImXWk-0007z6-H1 for ged-emacs-devel@m.gmane.org; Mon, 29 Oct 2007 12:31:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ImXWf-0007y0-32 for emacs-devel@gnu.org; Mon, 29 Oct 2007 12:31:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ImXWd-0007vc-8J for emacs-devel@gnu.org; Mon, 29 Oct 2007 12:31:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ImXWc-0007ur-UN for emacs-devel@gnu.org; Mon, 29 Oct 2007 12:31:39 -0400 Original-Received: from mailwasher.lanl.gov ([204.121.3.2]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ImXQN-0002wS-J7 for emacs-devel@gnu.org; Mon, 29 Oct 2007 12:25:12 -0400 Original-Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l9TGP551003192 for ; Mon, 29 Oct 2007 10:25:05 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay3.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l9TGP11u004835 for ; Mon, 29 Oct 2007 10:25:01 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l9TGP1YS010626 for ; Mon, 29 Oct 2007 10:25:01 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l9TGP1Pp010624; Mon, 29 Oct 2007 09:25:01 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Mon, 29 Oct 2007 09:25:01 -0700 (PDT) In-Reply-To: User-Agent: SquirrelMail/1.4.8-6.el3.2lanl X-Priority: 3 (Normal) Importance: Normal X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: herring@lanl.gov X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:82078 Archived-At: > (if (featurep 'xemacs) > (defvaralias 'viper-xemacs-p t) > (defvaralias 'viper-xemacs-p nil)) > > (setq viper-xemacs-p t) > => Attempt to set a constant symbol: viper-xemacs-p ...which of course simplifies to (defvaralias 'viper-xemacs-p (featurep 'xemacs)) which is of course identical to `set' in interface, though it only supports booleans (use "(not (not val))" to convert). That's ... intensely and simultaneously amusing and disgusting. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.