unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10635: 23.3; Docstring for `defcustom' fails to mention that `:safe' keyword takes a predicate.
@ 2012-01-29  0:34 Samuel Bronson
  2012-01-29 10:03 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Samuel Bronson @ 2012-01-29  0:34 UTC (permalink / raw)
  To: 10635


I've taken the liberty of creating a patch, in which I also fix a
`checkdoc' warning:

diff -u -L /usr/share/emacs/23.3/lisp/custom.el.gz -L /tmp/buffer-content-21867Fhg /tmp/jka-com21867Srm /tmp/buffer-content-21867Fhg
--- /usr/share/emacs/23.3/lisp/custom.el.gz
+++ /tmp/buffer-content-21867Fhg
@@ -197,7 +197,7 @@
 
 Neither SYMBOL nor VALUE need to be quoted.
 If SYMBOL is not already bound, initialize it to VALUE.
-The remaining arguments should have the form
+The remaining arguments (ARGS) should have the form
 
    [KEYWORD VALUE]...
 
@@ -222,7 +222,9 @@
 	for this option, then when your `.emacs' file loads the value,
 	it does (require VALUE) first.
 :risky	Set SYMBOL's `risky-local-variable' property to VALUE.
-:safe	Set SYMBOL's `safe-local-variable' property to VALUE.
+:safe	Set SYMBOL's `safe-local-variable' property to VALUE,
+	a predicate telling whether any given value is safe for the
+	variable.  See Info node `(elisp) File Local Variables'.
 
 The following common keywords are also meaningful.
 

Diff finished.  Sat Jan 28 19:22:47 2012


In GNU Emacs 23.3.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2011-10-25 on murphy, modified by Debian
configured using `configure  '--build' 'i486-linux-gnu' '--build' 'i486-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/i386-linux-gnu' '--with-x=yes' '--with-x-toolkit=lucid' '--with-toolkit-scroll-bars' '--without-gconf' 'build_alias=i486-linux-gnu' 'CFLAGS=-DDEBIAN -g -O2''

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!





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

* bug#10635: 23.3; Docstring for `defcustom' fails to mention that `:safe' keyword takes a predicate.
  2012-01-29  0:34 bug#10635: 23.3; Docstring for `defcustom' fails to mention that `:safe' keyword takes a predicate Samuel Bronson
@ 2012-01-29 10:03 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2012-01-29 10:03 UTC (permalink / raw)
  To: Samuel Bronson; +Cc: 10635

Samuel Bronson <naesten@gmail.com> writes:

> I've taken the liberty of creating a patch, in which I also fix a
> `checkdoc' warning:

Thanks.  I added the manual link as you suggested, but I don't think
it's worth going into more detail than that about the
safe-local-variable property within that docstring.





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

end of thread, other threads:[~2012-01-29 10:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-29  0:34 bug#10635: 23.3; Docstring for `defcustom' fails to mention that `:safe' keyword takes a predicate Samuel Bronson
2012-01-29 10:03 ` Chong Yidong

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