From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Didier Verna Newsgroups: gmane.emacs.devel Subject: Re: Possible defvar bug Date: Mon, 18 Feb 2013 16:00:28 +0100 Message-ID: References: <87d2vxr8h6.fsf@thinkpad.tsdh.de> <87obfhy8zc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1361199648 27659 80.91.229.3 (18 Feb 2013 15:00:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2013 15:00:48 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jambunathan K Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 18 16:01:09 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 1U7SDM-0001CY-Tg for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2013 16:01:09 +0100 Original-Received: from localhost ([::1]:42901 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7SD2-0002Sf-Vd for ged-emacs-devel@m.gmane.org; Mon, 18 Feb 2013 10:00:48 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45879) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7SCx-0002Rw-Ik for emacs-devel@gnu.org; Mon, 18 Feb 2013 10:00:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U7SCq-0007ar-GE for emacs-devel@gnu.org; Mon, 18 Feb 2013 10:00:43 -0500 Original-Received: from sao-paulo.lrde.epita.fr ([163.5.55.1]:41492 helo=uzeb.lrde.epita.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U7SCq-0007Zc-AI for emacs-devel@gnu.org; Mon, 18 Feb 2013 10:00:36 -0500 Original-Received: by uzeb.lrde.epita.fr (Postfix, from userid 17030) id 3F01916E1486; Mon, 18 Feb 2013 16:00:28 +0100 (CET) In-Reply-To: <87obfhy8zc.fsf@gmail.com> (Jambunathan K.'s message of "Mon, 18 Feb 2013 20:17:35 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAHlBMVEU2JRYGAgS1fmcODQgI BwWEWUPAoY/29vKjb1hjQjD52wzVAAACaElEQVQ4jWXTv27bMBAG8EPVpOVmQcqQlUAUjRIo988W Q3oAIQATcTVQO2+gXYBseiOa0gnfth8pOWlcjvrh7uOdaVoko3xOBDE7cH+01ioi2lGdjLpNasHk BJDRObulcqF5KwAdfwOpfgOuR65IkNUz5AB57Km8GnNFBet0PswgpQXEP3IuDTppfQZXaNuSh0m0 h8uekiuuswPZIecB8hOUye5JKyd5zqcQfJcqwP16VPY0Reik1EtPdfxpMzrrp8iHzNfhturRw5Ir 56fQmq89A9o9wtOlxAqGwecOflWyk+22p7RmzoVWWio7TGAA8TsoZO3gemR9TythPOBWuWQqYnrs 9GHpISHy4NMNI1rKUZkjoMFvhBIPHJvxASZ6AKQFAMN2A1/f2C5fKyK6BcQCrQChBNfFULTbevAZ FhVhRM2zg/ra42BXM/hrSZ1tZPsSoAKwCbALnq39dB5EwYwP6fzIOsvWivUT1M4QoURLq2y24c/H CSLhHC4MUdbRa3bDbicoMPeUgimNGw7hTu/gpAJgBeY4A/r7Wf1WQIaixxkcgg3WggeE7RGZ/QzS 2NEICheThuzNPyDln0WEjsiih18n0OZ1lKYsmA2d9k/bGZh7xXuLKj+9IXGx28yQ0H0unfmcMMwn KsFOFWl6MeBdOeyMBE5yeaoo7xCCmpUoPIh0f4K4cJ1un+MmfK+ixQRNXMX1hT5USfgukqa6nKCp 6vLOmSpdJZEQq1Kk1Qzvp6AybZpafP8fqsbDz3MQJAKUt2dQU7QK8OUciqj0IK7PWyHdQ7LafgSE VAHQ6wPgLyFCRvmt/wuKAmdal/AqowAAAABJRU5ErkJggg== X-Face: Rx%uSYHo?&&=`_pTEID'bvnP>rqQRsiiVhE^#x5+BR1DkAWiE7SU("&7@Dn&_QE^[xIHHeg"7}tXrhHT+]}-Ln21e`i~gZ6S=(`xU3?gJLT%}rU; 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:157130 Archived-At: Jambunathan K wrote: > I am certain I don't understand what these paragraphs mean, > particularly the second one. > lands. > ,---- C-h f > | If SYMBOL has a local binding, then this form affects the local > | binding. This is usually not what you want. Thus, if you need to > | load a file defining variables, with this form or with `defconst' or > | `defcustom', you should always load that file _outside_ any bindings > | for these variables. (`defconst' and `defcustom' behave similarly in > | this respect.) > `---- This means that: ELISP> (let ((foo 3)) (defvar foo 1) (print foo)) 3 ELISP> foo *** Eval error *** Symbol's value as variable is void: foo ELISP> And, no, this is almost never what you want :-) Just like Tassilo noticed by accident. -- Resistance is futile. You will be jazzimilated. Scientific site: http://www.lrde.epita.fr/~didier Music (Jazz) site: http://www.didierverna.com