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: Trying to cope with Calendar's dynamic scoping Date: Fri, 06 Sep 2013 10:58:45 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: ger.gmane.org 1378479541 4872 80.91.229.3 (6 Sep 2013 14:59:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Sep 2013 14:59:01 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 06 16:59:02 2013 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 1VHxUz-0005Dt-Ot for ged-emacs-devel@m.gmane.org; Fri, 06 Sep 2013 16:59:01 +0200 Original-Received: from localhost ([::1]:38190 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHxUz-0001zj-AX for ged-emacs-devel@m.gmane.org; Fri, 06 Sep 2013 10:59:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58439) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHxUq-0001y6-57 for emacs-devel@gnu.org; Fri, 06 Sep 2013 10:58:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHxUi-0008CU-Ov for emacs-devel@gnu.org; Fri, 06 Sep 2013 10:58:52 -0400 Original-Received: from relais.videotron.ca ([24.201.245.36]:61301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHxUi-0008CQ-KU; Fri, 06 Sep 2013 10:58:44 -0400 Original-Received: from ceviche.home ([24.203.189.74]) by VL-VM-MR002.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0MSP00K8YLLVFK20@VL-VM-MR002.ip.videotron.ca>; Fri, 06 Sep 2013 10:58:43 -0400 (EDT) Original-Received: by ceviche.home (Postfix, from userid 20848) id E211E66086; Fri, 06 Sep 2013 10:58:45 -0400 (EDT) In-reply-to: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 24.201.245.36 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:163228 Archived-At: >> But it means we have to keep using dynamic scoping for `date' and >> `entry', for now. > Well, it has to be done at some point, doesn't it? > And can't you have code which works in either version just by using > (if (boundp 'diary-date) diary-date date) > ? Right. My patch does provide diary-date and diary-entry, so code can/should start doing the above, but we should keep the old code working a bit longer by also providing the old names via dynamic scoping (since lexical scoping is not quite sufficient for that). Stefan