1561 |
;; to describe the most important commands in your major mode, and |
;; to describe the most important commands in your major mode, and |
1562 |
;; then use `\\{...}' to display the rest of the mode's keymap. |
;; then use `\\{...}' to display the rest of the mode's keymap. |
1563 |
(save-excursion |
(save-excursion |
1564 |
(if (re-search-forward "\\\\\\\\\\[\\w+" e t |
(if (and (re-search-forward "\\\\\\\\\\[\\w+" e t |
1565 |
(1+ checkdoc-max-keyref-before-warn)) |
(1+ checkdoc-max-keyref-before-warn)) |
1566 |
|
(not (re-search-forward "\\\\\\\\{\\w+}" e t))) |
1567 |
(checkdoc-create-error |
(checkdoc-create-error |
1568 |
"Too many occurrences of \\[function]. Use \\{keymap} instead" |
"Too many occurrences of \\[function]. Use \\{keymap} instead" |
1569 |
s (marker-position e)))) |
s (marker-position e)))) |