unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* default-fill-column
@ 2003-11-15 16:37 Luc Teirlinck
  2003-11-16 22:58 ` default-fill-column Stefan Monnier
  2003-12-27  4:13 ` default-fill-column Richard Stallman
  0 siblings, 2 replies; 5+ messages in thread
From: Luc Teirlinck @ 2003-11-15 16:37 UTC (permalink / raw)


I use `default-fill-column' as an example, but the remarks below seem to
apply to all variables of the type `default-some-buffer-local-variable'.

Ielm run:

*** Welcome to IELM ***  Type (describe-mode) for help.
ELISP> (local-variable-p 'fill-column)
nil
ELISP> fill-column
70
ELISP> (setq default-fill-column 75)
75
ELISP> fill-column
70
ELISP> (local-variable-p 'fill-column)
nil
ELISP> (default-value 'fill-column)
75
ELISP> (buffer-local-value 'fill-column (current-buffer))
75
ELISP> fill-column
70

Now fill-column has two values in *ielm*:
The updated default-value accessed by `buffer-local-value' and the old
default-value, accessed by ordinary evaluation.

For instance,`describe-variable' which uses `buffer-local-value' says
that the value is 75.

It seems hard to consider this a "feature".  At the very least, the
fact that C-h v returns a value different from the value returned by
evaluation has to be considered a bug.

Again, `fill-column' is just an example.  There are plenty of similar
variables in Emacs and they all seem to behave this way.

Final remark (continuation of Ielm run):

ELISP> (setq-default fill-column (default-value 'fill-column))
75
ELISP> fill-column
75
ELISP> 

Sincerely,

Luc.

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

end of thread, other threads:[~2003-12-27  4:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-15 16:37 default-fill-column Luc Teirlinck
2003-11-16 22:58 ` default-fill-column Stefan Monnier
2003-11-22 21:23   ` default-fill-column Luc Teirlinck
2003-11-24 16:23     ` default-fill-column Richard Stallman
2003-12-27  4:13 ` default-fill-column Richard Stallman

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