1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 14:30:50 -08:00

* 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
This commit is contained in:
Jari Aalto 2011-01-21 13:12:32 -05:00 committed by Stefan Monnier
parent d5e632d853
commit 26a2788480
2 changed files with 8 additions and 1 deletions

View file

@ -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