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: Wed, 21 Aug 2013 00:33:50 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1377064334 28197 80.91.229.3 (21 Aug 2013 05:52:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Aug 2013 05:52:14 +0000 (UTC) Cc: "Edward M. Reingold" , emacs-devel@gnu.org To: Leo Liu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Aug 21 07:52:16 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 1VC1L5-0008Fy-HD for ged-emacs-devel@m.gmane.org; Wed, 21 Aug 2013 07:52:15 +0200 Original-Received: from localhost ([::1]:51597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC1L4-00035F-L6 for ged-emacs-devel@m.gmane.org; Wed, 21 Aug 2013 01:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC1Kv-00034Z-7X for emacs-devel@gnu.org; Wed, 21 Aug 2013 01:52:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VC13P-0006lm-M3 for emacs-devel@gnu.org; Wed, 21 Aug 2013 01:34:06 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:6636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VC07E-0007jc-BD for emacs-devel@gnu.org; Wed, 21 Aug 2013 00:33:52 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GszCNfZEKA6R6gV6Caik X-IPAS-Result: Av4EABK/CFHO+LNT/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAsOJhIUGA0kiB4GszCNfZEKA6R6gV6Caik X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="22723787" Original-Received: from 206-248-179-83.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([206.248.179.83]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 21 Aug 2013 00:33:44 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id E97D9AE1E2; Wed, 21 Aug 2013 00:33:50 -0400 (EDT) In-Reply-To: (Leo Liu's message of "Wed, 21 Aug 2013 09:22:51 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.182 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:162948 Archived-At: >> It also renames `date' and `entry' to `diary-date' and `diary-entry' >> where dynamic scoping is used. > In diary files one can reference `date' etc. directly. This will break > those diary files. In those cases, the variables are bound, just not via dynamic scoping ;-) It's all pretty tricky business, so please try not to assume too much about how the code works. Instead, try it out and report concrete problems. It may very well be that the approach won't work in practice. Stefan