From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] (Updated) Run hook when variable is set Date: Thu, 19 Feb 2015 08:30:49 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1424352681 3845 80.91.229.3 (19 Feb 2015 13:31:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 Feb 2015 13:31:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kelly Dean Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 19 14:31:11 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YORCA-0006zN-2A for ged-emacs-devel@m.gmane.org; Thu, 19 Feb 2015 14:31:10 +0100 Original-Received: from localhost ([::1]:56350 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YORC9-00027c-DN for ged-emacs-devel@m.gmane.org; Thu, 19 Feb 2015 08:31:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YORBw-00027T-Ma for emacs-devel@gnu.org; Thu, 19 Feb 2015 08:30:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YORBr-0006ud-8h for emacs-devel@gnu.org; Thu, 19 Feb 2015 08:30:56 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:43249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YORBr-0006uO-3k for emacs-devel@gnu.org; Thu, 19 Feb 2015 08:30:51 -0500 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t1JDUnQQ030602; Thu, 19 Feb 2015 08:30:50 -0500 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 3C62DAE11B; Thu, 19 Feb 2015 08:30:49 -0500 (EST) In-Reply-To: (Kelly Dean's message of "Thu, 19 Feb 2015 10:35:14 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5222=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5222> : inlines <2238> : streams <1392855> : uri <1859320> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:183296 Archived-At: >> AFAICT this absurd concept comes from your interpretation of what's >> going on, and just shows that your interpretation is not >> a good model. > Regardless of the name, the interpretation is the right one for > multi-threaded code, and is just as valid as the alternative for > single-threaded code. No, the interpretation based on the current implementation (i.e. "void" is just a special value) works just as well in the multithreaded case. > Oh, I thought that was clear. Have makunbound signal an error if > let_shadows_global_binding_p or Flocal_variable_p is true. My theory is t= hat > this would only catch bugs, not catch intentional uses. Based on my experience with emitting messages in similar oddball cases (i.e. making a variable buffer-local while it's globally let-bound), my guess is that it would catch a few very rare oddball cases indeed, but: 1- those oddball cases end up harmless. 2- there's no easy "fix" for those cases (because the let-binding and the makunbound happen in completely unrelated code which usually aren't used at the same time and what *really* should happen is at best unclear, or is otherwise exactly what happens with the current semantics you don't like). > Well, =E2=8C=9Cvetted=E2=8C=9D works just as well as =E2=8C=9Cwritable=E2= =8C=9D for the field name, so I'm > inclined to leave it that way, but I'll change it if you want. Can I have my bikeshed transparent? Stefan