aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/checkdoc.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 947fcb3ab9c..fe075baf536 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -1374,6 +1374,17 @@ regexp short cuts work. FP is the function defun information."
1374 "Second line should not have indentation" 1374 "Second line should not have indentation"
1375 (match-beginning 1) 1375 (match-beginning 1)
1376 (match-end 1))))) 1376 (match-end 1)))))
1377 ;; * Check for '(' in column 0.
1378 (save-excursion
1379 (when (re-search-forward "^(" e t)
1380 (if (checkdoc-autofix-ask-replace (match-beginning 0)
1381 (match-end 0)
1382 "Escape this '('? "
1383 "\\(")
1384 nil
1385 (checkdoc-create-error
1386 "Open parenthesis in column 0 should be escaped"
1387 (match-beginning 0) (match-end 0)))))
1377 ;; * Do not start or end a documentation string with whitespace. 1388 ;; * Do not start or end a documentation string with whitespace.
1378 (let (start end) 1389 (let (start end)
1379 (if (or (if (looking-at "\"\\([ \t\n]+\\)") 1390 (if (or (if (looking-at "\"\\([ \t\n]+\\)")