From: Juanma Barranquero <lekktu@gmail.com>
To: Glenn Morris <rgm@gnu.org>
Cc: 14591@debbugs.gnu.org
Subject: bug#14591: New keyword :local for defcustom
Date: Fri, 14 Jun 2013 15:03:16 +0200 [thread overview]
Message-ID: <CAAeL0SQC3DYeRpzYw6XC3X6L2=vp6-omqDLer5iEeXiADCEnkA@mail.gmail.com> (raw)
In-Reply-To: <2wtxl3xmrf.fsf@fencepost.gnu.org>
On Wed, Jun 12, 2013 at 7:27 PM, Glenn Morris <rgm@gnu.org> wrote:
> (Do you ever
> want to make something permanent-local but not buffer-local?)
69 variables are so marked on lisp/**
Of these, 8 are really minor modes (so they are always used as buffer-local).
2 are defcustoms:
2C-separator
backup-by-copying-when-mismatch
The rest:
archive-superior-buffer
backup-inhibited
buffer-auto-save-file-format
buffer-file-format
comint-input-autoexpand
comint-input-filter-functions
comint-input-ring
comint-input-ring-index
comint-move-point-for-output
comint-output-filter-functions
comint-preoutput-filter-functions
comint-ptyp
comint-save-input-ring-index
comint-scroll-show-maximum-output
comint-scroll-to-bottom-on-input
custom-local-buffer
cvs-buffer
cvs-edit-log-files
enable-character-translation
epa-file-encrypt-to
find-file-literally
gud-find-file
gud-marker-filter
input-method-function
plstore-encoded
plstore-encrypt-to
rcirc-urls
revert-buffer-function
revert-buffer-insert-file-contents-function
rmail-buffer
rmail-current-message
rmail-deleted-vector
rmail-inbox-list
rmail-last-regexp
rmail-message-vector
rmail-mime-decoded
rmail-msgref-vector
rmail-old-headers
rmail-old-pruned
rmail-overlay-list
rmail-seriously-modified
rmail-summary-buffer
rmail-summary-overlay
rmail-summary-vector
rmail-total-messages
rmail-was-converted
tar-superior-buffer
tar-superior-descriptor
term-input-autoexpand
term-input-filter-functions
term-input-ring
term-input-ring-index
term-ptyp
term-scroll-show-maximum-output
term-scroll-to-bottom-on-output
vc-log-view-type
vc-parent-buffer
vc-parent-buffer-name
write-file-functions
Of course, some (perhaps most) of these are made buffer-local when
used. But there are a few which are not, in a not-making-sense way.
One of them that I already mentioned is revert-buffer-function, but
backup-inhibited is even more ridiculous, because its docstring says:
This variable is intended for use by making it local to a buffer.
But it is local only if you make it local.
So we have a variable which is permanent local, *intended* to be used
as buffer-local, yet very explicitly and (apparently) purposefully not
made automatically buffer-local.
Color me puzzled,
Juanma
next prev parent reply other threads:[~2013-06-14 13:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-11 17:18 bug#14591: New keyword :local for defcustom Juanma Barranquero
2013-06-11 21:01 ` Ted Zlatanov
2013-06-12 17:27 ` Glenn Morris
2013-06-13 1:57 ` Juanma Barranquero
2013-06-13 14:16 ` Stefan Monnier
2013-06-13 14:25 ` Juanma Barranquero
2013-06-13 19:53 ` Stefan Monnier
2013-06-14 13:06 ` Juanma Barranquero
2019-06-27 11:28 ` Lars Ingebrigtsen
2019-06-28 11:04 ` Juanma Barranquero
2013-06-14 13:03 ` Juanma Barranquero [this message]
2013-06-12 18:56 ` Stefan Monnier
2013-06-13 2:01 ` Juanma Barranquero
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='CAAeL0SQC3DYeRpzYw6XC3X6L2=vp6-omqDLer5iEeXiADCEnkA@mail.gmail.com' \
--to=lekktu@gmail.com \
--cc=14591@debbugs.gnu.org \
--cc=rgm@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.