From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: Trying to cope with Calendar's dynamic scoping Date: Thu, 05 Sep 2013 13:55:15 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1378403774 9319 80.91.229.3 (5 Sep 2013 17:56:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Sep 2013 17:56:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 05 19:56:18 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 1VHdmw-00028a-GL for ged-emacs-devel@m.gmane.org; Thu, 05 Sep 2013 19:56:14 +0200 Original-Received: from localhost ([::1]:33037 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHdmw-0005zr-6c for ged-emacs-devel@m.gmane.org; Thu, 05 Sep 2013 13:56:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60039) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHdm6-0005Of-JP for emacs-devel@gnu.org; Thu, 05 Sep 2013 13:55:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VHdm0-0003sy-Nb for emacs-devel@gnu.org; Thu, 05 Sep 2013 13:55:22 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VHdm0-0003ss-CP for emacs-devel@gnu.org; Thu, 05 Sep 2013 13:55:16 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1VHdlz-0003jH-Fu; Thu, 05 Sep 2013 13:55:15 -0400 X-Spook: Vickie Weaver Qaddafi UOP e-cash Belknap smuggle CIDA X-Ran: dh.o[$5"i_9cS|!>|K[6g,>mbQqw~hHe/PL"!0;GKy.cg.TV$Mlc\.rvM\cgl\h%:=!tuU X-Hue: blue X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e 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:163203 Archived-At: Stefan Monnier wrote: >> Was there any particular aspect you thought might not work? > > Well, there's the fundamental difference between lexical and dynamic > scoping: Oh, so nothing major then... > While you can have > > &%%(blabla date blabla) > > you can't have > > &%%(my-cal-fun) > > where my-cal-fun is defined in your .emacs as > > (defun my-cal-fun () (blabla date blabla)) Or defined in any third-party library. Eg it seems this would break org, which has "helpfully" hidden the warnings from "(defvar date)". I don't know how common such usage is. If you think we need to move to lexical scoping for everything, then the incompatible change has to be made at some point, it seems. Maybe Emacs 25.1 is more appropriate for something like that?