changeset 112419:a651b7492a78

* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): Assume foo(bar) is a manpage reference rather than some unquoted symbol.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Fri, 21 Jan 2011 13:12:32 -0500
parents 106bf56d370e
children f7f90410cc52
files lisp/ChangeLog lisp/emacs-lisp/checkdoc.el
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jan 21 13:07:41 2011 -0500
+++ b/lisp/ChangeLog	Fri Jan 21 13:12:32 2011 -0500
@@ -1,3 +1,8 @@
+2011-01-21  Jari Aalto  <jari.aalto@cante.net>
+
+	* emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine): (bug#7705)
+	Assume foo(bar) is a manpage reference rather than some unquoted symbol.
+
 2011-01-21  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* subr.el (shell-quote-argument): Properly quote \n (bug#7687).
--- a/lisp/emacs-lisp/checkdoc.el	Fri Jan 21 13:07:41 2011 -0500
+++ b/lisp/emacs-lisp/checkdoc.el	Fri Jan 21 13:12:32 2011 -0500
@@ -1817,7 +1817,9 @@
        (let ((found nil) (start (point)) (msg nil) (ms nil))
 	 (while (and (not msg)
 		     (re-search-forward
-		      "[^-([`':a-zA-Z]\\(\\w+[:-]\\(\\w\\|\\s_\\)+\\)[^]']"
+		      ;; Ignore manual page refereces like
+		      ;; git-config(1).
+		      "[^-([`':a-zA-Z]\\(\\w+[:-]\\(\\w\\|\\s_\\)+\\)[^](']"
 		      e t))
 	   (setq ms (match-string 1))
 	   ;; A . is a \s_ char, so we must remove periods from