unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* "Non-nil means" versus "On means" in docstrings
@ 2005-10-27 22:29 Bill Wohler
  2005-10-28  8:31 ` Eli Zaretskii
  2005-10-29  5:13 ` Richard M. Stallman
  0 siblings, 2 replies; 10+ messages in thread
From: Bill Wohler @ 2005-10-27 22:29 UTC (permalink / raw)


When running checkdoc, I get a "Flag variable doc strings should usually
start: Non-nil means" error on the following:

  (defcustom mh-compose-space-does-completion-flag nil
    "*On means \\<mh-letter-mode-map>\\[mh-letter-complete-or-space] does completion in message header."
    :type 'boolean
    :group 'mh-letter)

This might have been fine before the advent of customize, but now that
we have customize, we have opened our applications (such as MH-E) to
non-programmers who would have no idea what "Non-nil" means. When they
click on the customize button, they see "On" and "Off".

I would therefore propose, for the sake of usability, to modify
checkdoc-this-string-valid-engine so that it accepts "On means" as well
as "Non-nil means".

Index: checkdoc.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/emacs-lisp/checkdoc.el,v
retrieving revision 1.51
diff -u -u -r1.51 checkdoc.el
--- checkdoc.el	24 Sep 2005 13:43:59 -0000	1.51
+++ checkdoc.el	27 Oct 2005 22:22:37 -0000
@@ -1635,7 +1635,8 @@
 
 	     ;; If the variable has -flag in the name, make sure
 	     (if (and (string-match "-flag$" (car fp))
-		      (not (looking-at "\"\\*?Non-nil\\s-+means\\s-+")))
+		      (not (looking-at
+                            "\"\\*?\\(Non-nil\\|On\\)\\s-+means\\s-+")))
 		 (checkdoc-create-error
 		  "Flag variable doc strings should usually start: Non-nil means"
 		  s (marker-position e) t))

-- 
Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

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

end of thread, other threads:[~2005-10-30 20:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-27 22:29 "Non-nil means" versus "On means" in docstrings Bill Wohler
2005-10-28  8:31 ` Eli Zaretskii
2005-10-28 16:22   ` Bill Wohler
2005-10-28 22:08     ` Bill Wohler
2005-10-29  5:13 ` Richard M. Stallman
2005-10-29  7:59   ` Lennart Borgman
2005-10-29 20:33     ` Richard M. Stallman
2005-10-29 21:43       ` Kim F. Storm
2005-10-29 22:30         ` Lennart Borgman
2005-10-30 20:15   ` Bill Wohler

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