[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/lisp/emacs-lisp checkdoc.el
From: |
Kevin Ryde |
Subject: |
[Emacs-diffs] emacs/lisp/emacs-lisp checkdoc.el |
Date: |
Sun, 08 Nov 2009 21:48:43 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Kevin Ryde <kryde> 09/11/08 21:48:43
Modified files:
lisp/emacs-lisp: checkdoc.el
Log message:
* emacs-lisp/checkdoc.el (checkdoc-proper-noun-regexp): Match noun
at end of sentence (my Bug#4818).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/emacs-lisp/checkdoc.el?cvsroot=emacs&r1=1.79&r2=1.80
Patches:
Index: checkdoc.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/emacs-lisp/checkdoc.el,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -b -r1.79 -r1.80
--- checkdoc.el 27 Oct 2009 22:52:19 -0000 1.79
+++ checkdoc.el 8 Nov 2009 21:48:43 -0000 1.80
@@ -331,12 +331,15 @@
"List of words (not capitalized) which should be capitalized.")
(defvar checkdoc-proper-noun-regexp
+ ;; "[.!?]" is for noun at end of a sentence, since those chars
+ ;; are symbol syntax in emacs-lisp-mode and so don't match \\_>.
+ ;; The \" allows it to be the last sentence in a docstring too.
(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 "\\)\\(\\_>\\|[.!?][ \t\n\"]\\)"))
"Regular expression derived from `checkdoc-proper-noun-regexp'.")
(defvar checkdoc-common-verbs-regexp nil
- [Emacs-diffs] emacs/lisp/emacs-lisp checkdoc.el,
Kevin Ryde <=