From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.devel Subject: Re: Can a variable be both a defcustom and buffer local? Date: Fri, 24 Sep 2010 14:03:59 +0200 Message-ID: <20100924120359.GA25557@agmartin.aq.upm.es> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1285332958 9609 80.91.229.12 (24 Sep 2010 12:55:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 12:55:58 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 24 14:55:12 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz7nr-0000oP-Sa for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 14:55:04 +0200 Original-Received: from localhost ([127.0.0.1]:44069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz7nq-0007I5-UI for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 08:55:02 -0400 Original-Received: from [140.186.70.92] (port=44400 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz724-0005LL-6n for emacs-devel@gnu.org; Fri, 24 Sep 2010 08:05:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oz722-00029O-U2 for emacs-devel@gnu.org; Fri, 24 Sep 2010 08:05:40 -0400 Original-Received: from fibonacci.ccupm.upm.es ([138.100.198.70]:53043 helo=smtp.upm.es) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz722-0001v0-Lg for emacs-devel@gnu.org; Fri, 24 Sep 2010 08:05:38 -0400 Original-Received: from agmartin.aq.upm.es (Agmartin.aq.upm.es [138.100.41.131]) by smtp.upm.es (8.14.3/8.14.3/fibonacci-001) with ESMTP id o8OC3xJX027868; Fri, 24 Sep 2010 14:03:59 +0200 Original-Received: by agmartin.aq.upm.es (Postfix, from userid 1000) id B73274633C; Fri, 24 Sep 2010 14:03:59 +0200 (CEST) Mail-Followup-To: emacs-devel Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Fri, 24 Sep 2010 08:54:55 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130763 Archived-At: On Fri, Sep 24, 2010 at 01:03:19AM +0200, Lennart Borgman wrote: > On Fri, Sep 24, 2010 at 12:32 AM, Stefan Monnier > wrote: > >> ispell-local-dictionary is that. Does that work? > > > > Yes, for some definition of "work". > > Maybe the shown help text should explain this? Something like this > could be added: > > "Customizing this variable changes the global value which is the > default for new buffers." Looking at that part of the code and at an ancient ispell.el I had here, the case of `ispell-local-dictionary' seems to be a reminiscence from ancient times, kept for backwards compatibility with people's .emacs files and with ancient docs. Seems that global change should now be done by customizing `ispell-dictionary' (noticed now when looking at the code, I recently wrongly suggested jidanni to use `ispell-local-dictionary' rather than `ispell-dictionary'). It was previously a defvar and was at some time changed to a defcustom. -- Agustin