aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2009-10-23 17:26:06 +0000
committerChong Yidong2009-10-23 17:26:06 +0000
commit36bfa3af07802e1e2d9cbd3ce912e4a067d0accb (patch)
treea6aa39e88c65d7720f4ecb5f6664d45e1fb92085
parent912314214b404c3131a1ecebc2756f0e54a79a44 (diff)
downloademacs-36bfa3af07802e1e2d9cbd3ce912e4a067d0accb.tar.gz
emacs-36bfa3af07802e1e2d9cbd3ce912e4a067d0accb.zip
* emacs-lisp/checkdoc.el (checkdoc-proper-noun-region-engine):
Allow uncapitalized info node names (Bug#3921).
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/emacs-lisp/checkdoc.el7
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b411cd4939f..1971496c36d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12009-10-23 Chong Yidong <cyd@stupidchicken.com> 12009-10-23 Chong Yidong <cyd@stupidchicken.com>
2 2
3 * emacs-lisp/checkdoc.el (checkdoc-proper-noun-region-engine):
4 Allow uncapitalized info node names (Bug#3921).
5
3 * mail/emacsbug.el (report-emacs-bug): Tweak the sentence pointing 6 * mail/emacsbug.el (report-emacs-bug): Tweak the sentence pointing
4 to the DEBUG file (Bug#3781). 7 to the DEBUG file (Bug#3781).
5 8
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 0d63ed79d0a..67d310ed0ef 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -2016,7 +2016,12 @@ If the offending word is in a piece of quoted text, then it is skipped."
2016 ;; surrounded by /, as in a URL or filename: /emacs/ 2016 ;; surrounded by /, as in a URL or filename: /emacs/
2017 (not (and (= ?/ (char-after e)) 2017 (not (and (= ?/ (char-after e))
2018 (= ?/ (char-before b)))) 2018 (= ?/ (char-before b))))
2019 (not (checkdoc-in-example-string-p begin end))) 2019 (not (checkdoc-in-example-string-p begin end))
2020 ;; info node
2021 (not (save-excursion
2022 (goto-char b)
2023 (looking-back "\\<[Ii]nfo[ \t\n]+\\(node\\|anchor\\)[ \t\n]+`("
2024 (line-beginning-position)))))
2020 (if (checkdoc-autofix-ask-replace 2025 (if (checkdoc-autofix-ask-replace
2021 b e (format "Text %s should be capitalized. Fix? " 2026 b e (format "Text %s should be capitalized. Fix? "
2022 text) 2027 text)