emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc string of `local-variable-if-set-p'


From: Luc Teirlinck
Subject: Re: doc string of `local-variable-if-set-p'
Date: Thu, 14 Oct 2004 20:52:24 -0500 (CDT)

Richard Stallman wrote:

     Non-nil if VARIABLE becomes local in buffer BUFFER when set there.

   That is clearer but not quite right.  If VARIABLE is already local in
   BUFFER, the function returns t.

and Miles Bader wrote:

   Non-nil if VARIABLE would be buffer-local in BUFFER after being set there.

Seven characters too long.

In the docstring I proposed, I put:

   Non-nil if VARIABLE will be local in buffer BUFFER when set there.

This is completely correct.  Even if VARIABLE is already local in
BUFFER, it still will be local when set.

Entire previously proposed docstring:

DEFUN ("local-variable-if-set-p", Flocal_variable_if_set_p, 
Slocal_variable_if_set_p,
       1, 2, 0,
       doc: /* Non-nil if VARIABLE will be local in buffer BUFFER when set 
there.
More precisely, this means that setting the variable \(with `set' or`setq'),
while it does not have a `let'-style binding that was made in BUFFER,
will produce a buffer local binding.  See Info node
`(elisp)Creating Buffer-Local'.
BUFFER defaults to the current buffer.  */)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]