unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Can a variable be both a defcustom and buffer local?
@ 2010-09-23 20:38 Lennart Borgman
  2010-09-23 21:04 ` Drew Adams
  2010-09-23 22:32 ` Stefan Monnier
  0 siblings, 2 replies; 5+ messages in thread
From: Lennart Borgman @ 2010-09-23 20:38 UTC (permalink / raw)
  To: Emacs-Devel devel

ispell-local-dictionary is that. Does that work?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Can a variable be both a defcustom and buffer local?
  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
  1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2010-09-23 21:04 UTC (permalink / raw)
  To: 'Lennart Borgman', 'Emacs-Devel devel'

> Can a variable be both a defcustom and buffer local?

Of course.

> ispell-local-dictionary is that.

Likewise auto-hscroll-mode, compilation-disable-input,
compilation-error-regexp-alist, emacs-lisp-mode-hook, ffap-inhibit-ffap-flag,
font-lock-verbose, line-move-ignore-invisible, lisp-indent-function,
mode-line-format, search-whitespace-regexp, transient-mark-mode,
truncate-lines,...

And those are just those that grep shows in my own code.
Grep the vanilla sources if you want to see more.




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can a variable be both a defcustom and buffer local?
  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
  1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2010-09-23 22:32 UTC (permalink / raw)
  To: Lennart Borgman; +Cc: Emacs-Devel devel

> ispell-local-dictionary is that. Does that work?

Yes, for some definition of "work".


        Stefan



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can a variable be both a defcustom and buffer local?
  2010-09-23 22:32 ` Stefan Monnier
@ 2010-09-23 23:03   ` Lennart Borgman
  2010-09-24 12:03     ` Agustin Martin
  0 siblings, 1 reply; 5+ messages in thread
From: Lennart Borgman @ 2010-09-23 23:03 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: Emacs-Devel devel

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."



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Can a variable be both a defcustom and buffer local?
  2010-09-23 23:03   ` Lennart Borgman
@ 2010-09-24 12:03     ` Agustin Martin
  0 siblings, 0 replies; 5+ messages in thread
From: Agustin Martin @ 2010-09-24 12:03 UTC (permalink / raw)
  To: emacs-devel

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



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-24 12:03 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).