From: Luc Teirlinck <teirllm@dms.auburn.edu>
Subject: default-fill-column
Date: Sat, 15 Nov 2003 10:37:55 -0600 (CST) [thread overview]
Message-ID: <200311151637.hAFGbtK17946@raven.dms.auburn.edu> (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.
next reply other threads:[~2003-11-15 16:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-11-15 16:37 Luc Teirlinck [this message]
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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200311151637.hAFGbtK17946@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
/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 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).