1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-09 07:40:39 -08:00

* emacs-lisp/checkdoc.el (checkdoc-proper-noun-region-engine):

Allow uncapitalized info node names (Bug#3921).
This commit is contained in:
Chong Yidong 2009-10-23 17:26:06 +00:00
parent 912314214b
commit 36bfa3af07
2 changed files with 9 additions and 1 deletions

View file

@ -2016,7 +2016,12 @@ If the offending word is in a piece of quoted text, then it is skipped."
;; surrounded by /, as in a URL or filename: /emacs/
(not (and (= ?/ (char-after e))
(= ?/ (char-before b))))
(not (checkdoc-in-example-string-p begin end)))
(not (checkdoc-in-example-string-p begin end))
;; info node
(not (save-excursion
(goto-char b)
(looking-back "\\<[Ii]nfo[ \t\n]+\\(node\\|anchor\\)[ \t\n]+`("
(line-beginning-position)))))
(if (checkdoc-autofix-ask-replace
b e (format "Text %s should be capitalized. Fix? "
text)