From: Agustin Martin <agustin.martin@hispalinux.es>
To: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Can a variable be both a defcustom and buffer local?
Date: Fri, 24 Sep 2010 14:03:59 +0200 [thread overview]
Message-ID: <20100924120359.GA25557@agmartin.aq.upm.es> (raw)
In-Reply-To: <AANLkTi=Gmzdai9H6jj4Lo59+=nGWHywn6j=qvaMjOy4s@mail.gmail.com>
On Fri, Sep 24, 2010 at 01:03:19AM +0200, Lennart Borgman wrote:
> On Fri, Sep 24, 2010 at 12:32 AM, Stefan Monnier
> <monnier@iro.umontreal.ca> 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
prev parent reply other threads:[~2010-09-24 12:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-23 20:38 Can a variable be both a defcustom and buffer local? Lennart Borgman
2010-09-23 21:04 ` Drew Adams
2010-09-23 22:32 ` Stefan Monnier
2010-09-23 23:03 ` Lennart Borgman
2010-09-24 12:03 ` Agustin Martin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100924120359.GA25557@agmartin.aq.upm.es \
--to=agustin.martin@hispalinux.es \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.