diff options
author | Richard M. Stallman <rms@gnu.org> | 2005-07-08 22:54:57 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2005-07-08 22:54:57 +0000 |
commit | 65a30f585cb16df3d12a8e9a9c951021c8c2f389 (patch) | |
tree | 24cb825b60b1fcc8da71a8f064b177823db620bb /lisp/emacs-lisp | |
parent | cbca0a4b3725ef3678927d530c9a9d350bf84e1b (diff) | |
download | emacs-65a30f585cb16df3d12a8e9a9c951021c8c2f389.tar.gz emacs-65a30f585cb16df3d12a8e9a9c951021c8c2f389.tar.bz2 emacs-65a30f585cb16df3d12a8e9a9c951021c8c2f389.zip |
(checkdoc-proper-noun-list):
Check for "emacs", etc., as entire symbol, not just as word.
(checkdoc-file-comments-engine): Use regexp-quote on FN.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/checkdoc.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index 6562f04ca1d..6534af050f3 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el @@ -317,12 +317,12 @@ This should be set in an Emacs Lisp file's local variables." "List of words (not capitalized) which should be capitalized.") (defvar checkdoc-proper-noun-regexp - (let ((expr "\\<\\(") + (let ((expr "\\_<\\(") (l checkdoc-proper-noun-list)) (while l (setq expr (concat expr (car l) (if (cdr l) "\\|" "")) l (cdr l))) - (concat expr "\\)\\>")) + (concat expr "\\)\\_>")) "Regular expression derived from `checkdoc-proper-noun-regexp'.") (defvar checkdoc-common-verbs-regexp nil @@ -2326,10 +2326,10 @@ Code:, and others referenced in the style guide." (save-excursion (goto-char (point-max)) (if (not (re-search-backward - (concat "^;;;[ \t]+" fn "\\(" (regexp-quote fe) + (concat "^;;;[ \t]+" (regexp-quote fn) "\\(" (regexp-quote fe) "\\)?[ \t]+ends here[ \t]*$" "\\|^;;;[ \t]+ End of file[ \t]+" - fn "\\(" (regexp-quote fe) "\\)?") + (regexp-quote fn) "\\(" (regexp-quote fe) "\\)?") nil t)) (if (checkdoc-y-or-n-p "No identifiable footer! Add one? ") (progn |