From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: void variable Date: Thu, 19 Aug 2004 14:45:12 -0600 (MDT) Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1092948361 6683 80.91.224.253 (19 Aug 2004 20:46:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Aug 2004 20:46:01 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 19 22:45:51 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BxtnD-0005tb-00 for ; Thu, 19 Aug 2004 22:45:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxtrU-0005LO-0G for ged-emacs-devel@m.gmane.org; Thu, 19 Aug 2004 16:50:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BxtrL-0005LJ-T8 for emacs-devel@gnu.org; Thu, 19 Aug 2004 16:50:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BxtrJ-0005Ky-Fn for emacs-devel@gnu.org; Thu, 19 Aug 2004 16:50:07 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BxtrJ-0005Ko-2B for emacs-devel@gnu.org; Thu, 19 Aug 2004 16:50:05 -0400 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1Bxtmd-0008TF-BR for emacs-devel@gnu.org; Thu, 19 Aug 2004 16:45:15 -0400 Original-Received: from mailrelay1.lanl.gov (localhost.localdomain [127.0.0.1]) by mailwasher-b.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i7JKjDCp024761 for ; Thu, 19 Aug 2004 14:45:13 -0600 Original-Received: from x-mail.lanl.gov (x-mail.lanl.gov [128.165.4.125]) by mailrelay1.lanl.gov (8.12.10/8.12.11/(ccn-5)) with ESMTP id i7JKjC1p013987 for ; Thu, 19 Aug 2004 14:45:12 -0600 Original-Received: from x-mail.lanl.gov (localhost.localdomain [127.0.0.1]) by x-mail.lanl.gov (8.12.10/8.12.10/(ccn-5)) with ESMTP id i7JKjCu6004059 for ; Thu, 19 Aug 2004 14:45:12 -0600 Original-Received: from localhost (herring@localhost) by x-mail.lanl.gov (8.12.10/8.12.10/Submit) with ESMTP id i7JKjCQI004055 for ; Thu, 19 Aug 2004 14:45:12 -0600 X-Authentication-Warning: x-mail.lanl.gov: herring owned process doing -bs Original-To: emacs-devel@gnu.org In-Reply-To: X-PMX-Version: 4.6.0.99824 X-Scanned-By: MIMEDefang 2.35 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26330 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26330 > The patch below seems to work well. Any objection (or suggestion of > a better message)? > Stefan It seems to me that it would make even more sense to actually bind the variable's global value despite any dynamic bindings; this certainly would be unusual, but even warning about it violates the the usual `let' binding semantics. (If this were judged to be a good idea, one could even have `set[q]-global' that would provide the capacity in general. Of course, on that note one could have `makunbound-global' and even `makunbound-default' to complete the possibilities...) Of course, there would then be no way to fool a `defvar' if you wanted the global variable left unbound, but that seems like an unlikely desire (and there's always `makunbound' if you're desperate). This is all admittedly somewhat insane, so if it's rubbish, here's a message idea: "Can't bind `foo-bar' globally: `let' around `defvar'" Davis Herring -- This product is sold by volume, not by mass. If it seems too dense or too sparse, it means mass-energy conversion has occurred during shipping.