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: Evil defvars in org.el Date: Sat, 28 Apr 2012 11:10:25 -0400 Message-ID: References: <87k411g8xa.fsf@gnu.org> <874ns475zt.fsf@Rainer.invalid> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1335625833 2549 80.91.229.3 (28 Apr 2012 15:10:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Apr 2012 15:10:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Achim Gratz Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 28 17:10:32 2012 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 1SO9I8-00057s-5d for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2012 17:10:32 +0200 Original-Received: from localhost ([::1]:41299 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SO9I7-0003bo-D9 for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2012 11:10:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:58296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SO9I4-0003bY-Hs for emacs-devel@gnu.org; Sat, 28 Apr 2012 11:10:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SO9I2-0003vQ-ST for emacs-devel@gnu.org; Sat, 28 Apr 2012 11:10:28 -0400 Original-Received: from ironport-out.teksavvy.com ([206.248.143.162]:42941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SO9I2-0003vL-Op for emacs-devel@gnu.org; Sat, 28 Apr 2012 11:10:26 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApYIACxOgk9soXnu/2dsb2JhbABDuCMDgQyBCIIJAQEEAVYjBQsLDiYSFBgNJIgcBbYyi2GEeQSkRYFdgwM X-IronPort-AV: E=Sophos;i="4.75,391,1330923600"; d="scan'208";a="177354015" Original-Received: from 108-161-121-238.dsl.teksavvy.com (HELO pastel.home) ([108.161.121.238]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 28 Apr 2012 11:10:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 2E55758973; Sat, 28 Apr 2012 11:10:25 -0400 (EDT) In-Reply-To: <874ns475zt.fsf@Rainer.invalid> (Achim Gratz's message of "Sat, 28 Apr 2012 07:57:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.143.162 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:150116 Archived-At: >> So in reality in Emacs-24 such (defvar ) only >> affect the current file (actually only the current scope, so you can do >> (defun test () (defvar toto) (let (toto ...) ...)) and `toto' will only >> be dynbound within `test'. > I had no idea this is even possible... and the manual advises that the > defvar should "usually be at top-level". So, commenting out all the > file-level (defvar=A0date) in all of org and then changing in org-bbdb.el > like this: In general, having them at file-level is just as good as having it within a defun. Stefan