diff options
author | Jari Aalto <jari.aalto@cante.net> | 2011-01-21 13:12:32 -0500 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2011-01-21 13:12:32 -0500 |
commit | 26a27884805a63e39f46f612fbe6f8fa618c499d (patch) | |
tree | 6efda711814333571d5a44fcfa0f3be4129c5f3d /lisp/emacs-lisp/checkdoc.el | |
parent | d5e632d853da69d61b488ac26773c547ac655c6a (diff) | |
download | emacs-26a27884805a63e39f46f612fbe6f8fa618c499d.tar.gz emacs-26a27884805a63e39f46f612fbe6f8fa618c499d.tar.bz2 emacs-26a27884805a63e39f46f612fbe6f8fa618c499d.zip |
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Assume foo(bar) is a manpage reference rather than some unquoted symbol.
Fixes: debbugs:7705
Diffstat (limited to 'lisp/emacs-lisp/checkdoc.el')
-rw-r--r-- | lisp/emacs-lisp/checkdoc.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index a89845285b9..6726e83c77b 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el @@ -1817,7 +1817,9 @@ Replace with \"%s\"? " original replace) (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 |