unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#7118: 24.0.50; dired-subdir-alist, dired-directory, etc.: necessarily buffer-local
@ 2010-09-27 18:47 Drew Adams
  2010-09-27 21:05 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Drew Adams @ 2010-09-27 18:47 UTC (permalink / raw)
  To: 7118

We should use `make-variable-buffer-local' with vars such as
`dired-subdir-alist' and `dired-directory', instead of just calling
`make-local-variable'.  Why?  Because these vars MUST be buffer local,
and we might as well make the code clearer by pointing that out.  That
is precisely the use case for `make-variable-buffer-local': a var that
is necessarily buffer-local.
 
Also, the doc strings are otherwise incomplete/vague: for
`dired-subdir-alist', for example, it speaks of "the buffer".  The var's
value is local to each particular Dired buffer, and this needs to be
made more clear.  If we use `make-variable-buffer-local' that will add
the necessary info to `C-h v' so that the doc strings begin to make
sense.  (Still, we should mention in the doc string of
`dired-subdir-alist' that the subdirs are subdirs of `dired-directory'.)
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-09-20 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 






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

end of thread, other threads:[~2022-02-07  0:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-27 18:47 bug#7118: 24.0.50; dired-subdir-alist, dired-directory, etc.: necessarily buffer-local Drew Adams
2010-09-27 21:05 ` Stefan Monnier
2011-07-14 14:21   ` Lars Magne Ingebrigtsen
2011-07-14 14:45     ` Juanma Barranquero
2011-07-14 14:49       ` Lars Magne Ingebrigtsen
2011-07-17  2:24         ` Stefan Monnier
2011-08-02 21:11           ` Drew Adams
2010-09-27 23:35 ` Juanma Barranquero
2022-02-07  0:31 ` Lars Ingebrigtsen

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