unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* checkdoc: URLs in docstrings with lisp symbols
@ 2005-10-27 22:51 Bill Wohler
  2005-10-28 16:17 ` Richard M. Stallman
  0 siblings, 1 reply; 5+ messages in thread
From: Bill Wohler @ 2005-10-27 22:51 UTC (permalink / raw)


I have the following in a docstring:

  Use the \"make-face\" (http://quimby.gnus.org/circus/face/make-face)
  script

checkdoc ignores the make-face string but complains that the make-face
bit in the URL should be quoted `'. The Info node (elisp)Documentation
Tips doesn't say how URLs should be treated.

Should I be quoting URLs in docstrings? Given that I usually quote
filenames, that might not be a bad way to go.

  Use the \"make-face\" (\"http://quimby.gnus.org/circus/face/make-face\")
  script

The following patch to checkdoc-this-string-valid-engine in checkdoc.el
avoids symbol matches immediately after a / and fixes the error I saw.
Is this OK?

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:44:49 -0000
@@ -1802,7 +1803,7 @@
        (let ((found nil) (start (point)) (msg nil) (ms nil))
 	 (while (and (not msg)
 		     (re-search-forward
-		      "[^-([`':a-zA-Z]\\(\\w+[:-]\\(\\w\\|\\s_\\)+\\)[^]']"
+		      "[^-([`':/a-zA-Z]\\(\\w+[:-]\\(\\w\\|\\s_\\)+\\)[^]']"
 		      e t))
 	   (setq ms (match-string 1))
 	   (save-match-data


-- 
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] 5+ messages in thread

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

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-27 22:51 checkdoc: URLs in docstrings with lisp symbols Bill Wohler
2005-10-28 16:17 ` Richard M. Stallman
2005-10-28 22:01   ` Bill Wohler
2005-10-29  5:12     ` Richard M. Stallman
2005-10-31  1:30       ` 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).