GNU bug report logs - #10635
23.3; Docstring for `defcustom' fails to mention that `:safe' keyword takes a predicate.

Previous Next

Package: emacs;

Reported by: Samuel Bronson <naesten <at> gmail.com>

Date: Sun, 29 Jan 2012 00:42:01 UTC

Severity: minor

Found in version 23.3

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10635 in the body.
You can then email your comments to 10635 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10635; Package emacs. (Sun, 29 Jan 2012 00:42:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Samuel Bronson <naesten <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 29 Jan 2012 00:42:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Samuel Bronson <naesten <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.3;
	Docstring for `defcustom' fails to mention that `:safe' keyword takes
	a predicate.
Date: Sat, 28 Jan 2012 19:34:44 -0500
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!




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10635; Package emacs. (Sun, 29 Jan 2012 10:04:02 GMT) Full text and rfc822 format available.

Message #8 received at 10635 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Samuel Bronson <naesten <at> gmail.com>
Cc: 10635 <at> debbugs.gnu.org
Subject: Re: bug#10635: 23.3;
	Docstring for `defcustom' fails to mention that `:safe' keyword takes
	a predicate.
Date: Sun, 29 Jan 2012 18:03:32 +0800
Samuel Bronson <naesten <at> 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.




bug closed, send any further explanations to 10635 <at> debbugs.gnu.org and Samuel Bronson <naesten <at> gmail.com> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 29 Jan 2012 10:04:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 26 Feb 2012 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 87 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.