From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Re: [BUG] Dynamic scoping of project-plist in preparation-function Date: Wed, 22 Jun 2016 11:37:40 +0530 Message-ID: <87wplhiwnn.fsf@systemreboot.net> References: <87pora9u30.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFbKn-0007WQ-5W for emacs-orgmode@gnu.org; Wed, 22 Jun 2016 02:08:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bFbKj-0005My-0k for emacs-orgmode@gnu.org; Wed, 22 Jun 2016 02:08:20 -0400 Received: from [117.218.232.8] (port=35312 helo=hrrol) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bFbKi-0005LI-8J for emacs-orgmode@gnu.org; Wed, 22 Jun 2016 02:08:16 -0400 Received: from [223.227.13.97] (helo=steel) by hrrol with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.87) (envelope-from ) id 1bFbKd-0000gb-Lq for emacs-orgmode@gnu.org; Wed, 22 Jun 2016 11:38:13 +0530 In-reply-to: <87pora9u30.fsf@saiph.selenimh> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: "Emacs-orgmode@gnu.org" --=-=-= Content-Type: text/plain > 2. Require preparation functions to accept one parameter, the project > plist. I think adding project-plist as a parameter to preparation functions is definitely more elegant. But, I also came across this old thread where it was noted that making project-plist a proper parameter, instead of it being dynamically scoped into the preparation function, would break a lot of code. https://lists.gnu.org/archive/html/emacs-orgmode/2010-03/msg00016.html But now, with org moving to lexical binding, I think it is time to make project-plist a proper parameter, despite the costs of doing so. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXaistAAoJEC4l7othgCuzsPcIAIhsMKLauscAV2a03aPbfWWR Ir8e1lpuVWQn/K4hN5u2MYQ2+pbXweyo442QM3X+WhBKBMyqaqphb+kUokWWssYz bhmWWulrUqNrzVVZ/kbyiqZq5JyR/rfb5/SJI7vl3voEdGTzhy1QPPAl5tb6NiPO Y8SyVfxpYCqndj8YLV0KeJRH2poqglbsFONyGEuq76L4i8sricQ0Tcc/OKhVTXfp p6j20HL4Grz/ahNUNMUbyyyigB0Umor2IVWagX2R0ffCblPQBiAxksWLXW3YN27v tRHkmkTaiS4MmKJ0l68CZDrfSySA2kcyNPnGUprO4FkbCUMR5FHCCb59UazYw/o= =DHRd -----END PGP SIGNATURE----- --=-=-=--