emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r109931: Fix doc of local-variable-if


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109931: Fix doc of local-variable-if-set-p.
Date: Fri, 07 Sep 2012 22:15:59 +0800
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109931
fixes bug: http://debbugs.gnu.org/10713
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Fri 2012-09-07 22:15:59 +0800
message:
  Fix doc of local-variable-if-set-p.
  
  * doc/lispref/variables.texi (Creating Buffer-Local): Fix description of
  local-variable-if-set-p.
  
  * src/data.c (Flocal_variable_if_set_p): Doc fix (Bug#10713).
modified:
  doc/lispref/ChangeLog
  doc/lispref/variables.texi
  src/ChangeLog
  src/data.c
=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2012-09-07 13:53:21 +0000
+++ b/doc/lispref/ChangeLog     2012-09-07 14:15:59 +0000
@@ -1,5 +1,8 @@
 2012-09-07  Chong Yidong  <address@hidden>
 
+       * variables.texi (Creating Buffer-Local): Fix description of
+       local-variable-if-set-p (Bug#10713).
+
        * eval.texi (Intro Eval): Add index entry for sexp (Bug#12233).
 
        * windows.texi (Display Action Functions)

=== modified file 'doc/lispref/variables.texi'
--- a/doc/lispref/variables.texi        2012-08-07 03:31:53 +0000
+++ b/doc/lispref/variables.texi        2012-09-07 14:15:59 +0000
@@ -1302,9 +1302,10 @@
 @end defun
 
 @defun local-variable-if-set-p variable &optional buffer
-This returns @code{t} if @var{variable} will become buffer-local in
-buffer @var{buffer} (which defaults to the current buffer) if it is
-set there.
+This returns @code{t} if @var{variable} either has a buffer-local
+value in buffer @var{buffer}, or is automatically buffer-local.
+Otherwise, it returns @code{nil}.  If omitted or @code{nil},
address@hidden defaults to the current buffer.
 @end defun
 
 @defun buffer-local-value variable buffer

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-09-07 08:55:03 +0000
+++ b/src/ChangeLog     2012-09-07 14:15:59 +0000
@@ -1,3 +1,7 @@
+2012-09-07  Chong Yidong  <address@hidden>
+
+       * data.c (Flocal_variable_if_set_p): Doc fix (Bug#10713).
+
 2012-09-07  Paul Eggert  <address@hidden>
 
        More signal-handler cleanup (Bug#12327).

=== modified file 'src/data.c'
--- a/src/data.c        2012-09-07 01:27:44 +0000
+++ b/src/data.c        2012-09-07 14:15:59 +0000
@@ -1882,12 +1882,12 @@
 
 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.  */)
+       doc: /* Non-nil if VARIABLE is local in buffer BUFFER when set there.
+BUFFER defaults to the current buffer.
+
+More precisely, return non-nil if either VARIABLE already has a local
+value in BUFFER, or if VARIABLE is automatically buffer-local (see
+`make-variable-buffer-local').  */)
   (register Lisp_Object variable, Lisp_Object buffer)
 {
   struct Lisp_Symbol *sym;


reply via email to

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