aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Malabarba2015-03-25 17:48:15 +0000
committerArtur Malabarba2015-03-25 17:48:38 +0000
commiteeb515715d50e55477b6bc9c5a64fbb57dfaec94 (patch)
treebfe44e6d0461262b76a8ef717af4d697bf8644cc
parent7c4a0e3b46dff5ccd2233c24ac0143d3f30747ff (diff)
downloademacs-eeb515715d50e55477b6bc9c5a64fbb57dfaec94.tar.gz
emacs-eeb515715d50e55477b6bc9c5a64fbb57dfaec94.zip
emacs-lisp/checkdoc.el: Don't complain about args starting with _.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/emacs-lisp/checkdoc.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index e74733015c9..2d150ba3dd2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12015-03-25 Artur Malabarba <bruce.connor.am@gmail.com>
2
3 * emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
4 Don't complain about args starting with _.
5
12015-03-25 Stefan Monnier <monnier@iro.umontreal.ca> 62015-03-25 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * international/mule-cmds.el (mule--ucs-names-annotation): New func. 8 * international/mule-cmds.el (mule--ucs-names-annotation): New func.
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 288e25e6060..777fed082d9 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -1663,14 +1663,15 @@ function,command,variable,option or symbol." ms1))))))
1663 1663
1664 ;; Addendum: Make sure they appear in the doc in the same 1664 ;; Addendum: Make sure they appear in the doc in the same
1665 ;; order that they are found in the arg list. 1665 ;; order that they are found in the arg list.
1666 (let ((args (cdr (cdr (cdr (cdr fp))))) 1666 (let ((args (nthcdr 4 fp))
1667 (last-pos 0) 1667 (last-pos 0)
1668 (found 1) 1668 (found 1)
1669 (order (and (nth 3 fp) (car (nth 3 fp)))) 1669 (order (and (nth 3 fp) (car (nth 3 fp))))
1670 (nocheck (append '("&optional" "&rest") (nth 3 fp))) 1670 (nocheck (append '("&optional" "&rest") (nth 3 fp)))
1671 (inopts nil)) 1671 (inopts nil))
1672 (while (and args found (> found last-pos)) 1672 (while (and args found (> found last-pos))
1673 (if (member (car args) nocheck) 1673 (if (or (member (car args) nocheck)
1674 (string-match "\\`_" (car args)))
1674 (setq args (cdr args) 1675 (setq args (cdr args)
1675 inopts t) 1676 inopts t)
1676 (setq last-pos found 1677 (setq last-pos found