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 15:33:50 -0400 Message-ID: References: <87k411g8xa.fsf@gnu.org> <874ns475zt.fsf@Rainer.invalid> <87vckj6co1.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 1335641643 8689 80.91.229.3 (28 Apr 2012 19:34:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Apr 2012 19:34:03 +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 21:34:02 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 1SODP7-0002tR-QI for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2012 21:34:01 +0200 Original-Received: from localhost ([::1]:37732 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SODP7-0000eW-7Q for ged-emacs-devel@m.gmane.org; Sat, 28 Apr 2012 15:34:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:48655) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SODP4-0000eG-LE for emacs-devel@gnu.org; Sat, 28 Apr 2012 15:33:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SODP2-0000Wn-3p for emacs-devel@gnu.org; Sat, 28 Apr 2012 15:33:58 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:38219) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SODP1-0000WE-W7 for emacs-devel@gnu.org; Sat, 28 Apr 2012 15:33:56 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id q3SJXpOs017357; Sat, 28 Apr 2012 15:33:51 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id BF300AE233; Sat, 28 Apr 2012 15:33:50 -0400 (EDT) In-Reply-To: <87vckj6co1.fsf@Rainer.invalid> (Achim Gratz's message of "Sat, 28 Apr 2012 18:31:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4206=0 X-NAI-Spam-Version: 2.2.0.9309 : core <4206> : streams <751038> : uri <1104838> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 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:150125 Archived-At: >>> 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. > Either I've lost you here or the conclusion is that we can't do anything > in org to make these defvars less evil and should just silence the > warnings associated with them? The only thing that can be done for dynamic vars is to make them namespace-clean, so if renaming them is not an option (which could be the case for example because those vars appears in user customizations), then indeed, there's not much you can do. Stefan