Skip to content

Commit e476010

Browse files
committed
Miscellaneous checkdoc fixes
* lisp/ansi-color.el (ansi-color--ensure-context): * lisp/doc-view.el (doc-view-svg-face): * lisp/external-completion.el (external-completion-table): * lisp/ffap.el (ffap-ro-mode-hook, ffap-gnus-hook): * lisp/find-file.el: * lisp/flow-ctrl.el (flow-control-c-s-replacement) (flow-control-c-q-replacement): * lisp/forms.el (forms-multi-line): * lisp/help.el (search-forward-help-for-help): * lisp/hi-lock.el (hi-lock-use-overlays): * lisp/image.el (find-image): * lisp/isearch.el (isearch-forward, isearch-forward-regexp) (isearch-lazy-count-format): * lisp/jsonrpc.el (jsonrpc--continue, initialize-instance): * lisp/mouse-copy.el (mouse-kill-preserving-secondary): * lisp/pixel-scroll.el (pixel-bob-at-top-p) (pixel-scroll-down-and-set-window-vscroll): * lisp/printing.el (pr-gv-command, pr-gs-command) (pr-gs-switches): * lisp/register.el (register-use-preview): * lisp/repeat.el (repeat-check-key): * lisp/saveplace.el (save-place-abbreviate-file-names): * lisp/select.el (gui--clipboard-selection-unchanged-p): * lisp/ses.el (ses-header-row): * lisp/simple.el (transpose-sexps-default-function) (normal-erase-is-backspace, normal-erase-is-backspace-mode): * lisp/sqlite-mode.el (sqlite-mode): * lisp/tempo.el (tempo-insert-region): * lisp/term.el (term-mode-map, term-mode, term-char-mode): Checkdoc fixes.
1 parent a478423 commit e476010

24 files changed

+64
-69
lines changed

lisp/ansi-color.el

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -565,12 +565,11 @@ This function can be added to `comint-preoutput-filter-functions'."
565565

566566
(defun ansi-color--ensure-context (context-sym position)
567567
"Return CONTEXT-SYM's value as a valid context.
568-
If it is nil, set CONTEXT-SYM's value to a new context and return
569-
it. Context is a list of the form as described in
570-
`ansi-color-context' if POSITION is nil, or
571-
`ansi-color-context-region' if POSITION is non-nil.
568+
If it is nil, set CONTEXT-SYM's value to a new context and return it.
569+
Context is a list of the form as described in `ansi-color-context' if
570+
POSITION is nil, or `ansi-color-context-region' if POSITION is non-nil.
572571
573-
If CONTEXT-SYM's value is already non-nil, return it. If its
572+
If CONTEXT-SYM's value is already non-nil, return it. If its
574573
marker doesn't point anywhere yet, position it before character
575574
number POSITION, if non-nil."
576575
(let ((context (symbol-value context-sym)))

lisp/doc-view.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
;; subdirectory of `doc-view-cache-directory' and reused when you want to view
5252
;; that file again. To reconvert a document hit `g' (`doc-view-reconvert-doc')
5353
;; when displaying the document. To delete all cached files use
54-
;; `doc-view-clear-cache'. To open the cache with dired, so that you can tidy
54+
;; `doc-view-clear-cache'. To open the cache with Dired, so that you can tidy
5555
;; it out use `doc-view-dired-cache'.
5656
;;
5757
;; When conversion is underway the first page will be displayed as soon as it
@@ -239,8 +239,8 @@ showing only titles and no page number."
239239
:version "29.1")
240240

241241
(defface doc-view-svg-face '((t :inherit default))
242-
"Face used for SVG images. Only background and foreground colors
243-
are used.
242+
"Face used for SVG images.
243+
Only background and foreground colors are used.
244244
See `doc-view-mupdf-use-svg'."
245245
:version "30.1")
246246

lisp/external-completion.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ function links CATEGORY to the style `external', by modifying
7575
set in `completion-styles'.
7676
7777
LOOKUP is a function taking a string PATTERN and a number
78-
POINT. The function should contact the tool and return a list of
78+
POINT. The function should contact the tool and return a list of
7979
strings representing the completions for PATTERN given that POINT
8080
is the location of point within it. LOOKUP decides if PATTERN is
8181
interpreted as a substring, a regular expression, or any other

lisp/ffap.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1953,12 +1953,12 @@ Only intended for interactive use."
19531953
;; bindings you would prefer.
19541954

19551955
(defun ffap-ro-mode-hook ()
1956-
"Bind `ffap-next' and `ffap-menu' to M-l and M-m, resp."
1956+
"Bind `ffap-next' and `ffap-menu' to \\`M-l' and \\`M-m', resp."
19571957
(local-set-key "\M-l" 'ffap-next)
19581958
(local-set-key "\M-m" 'ffap-menu))
19591959

19601960
(defun ffap-gnus-hook ()
1961-
"Bind `ffap-gnus-next' and `ffap-gnus-menu' to M-l and M-m, resp."
1961+
"Bind `ffap-gnus-next' and `ffap-gnus-menu' to \\`M-l' and \\`M-m', resp."
19621962
;; message-id's
19631963
(setq-local thing-at-point-default-mail-uri-scheme "news")
19641964
;; Note "l", "L", "m", "M" are taken:

lisp/find-file.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
;;
9494
;; GIVEN AN ARGUMENT (with the ^U prefix), ff-find-other-file will get the
9595
;; other file in another (the other?) window (see find-file-other-window and
96-
;; switch-to-buffer-other-window). This can be set on a more permanent basis
96+
;; switch-to-buffer-other-window). This can be set on a more permanent basis
9797
;; by setting ff-always-in-other-window to t in which case the ^U prefix will
9898
;; do the opposite of what was described above.
9999
;;

lisp/flow-ctrl.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@
4444
;;; Code:
4545

4646
(defvar flow-control-c-s-replacement ?\034
47-
"Character that replaces C-s, when flow control handling is enabled.")
47+
"Character that replaces \\`C-s', when flow control handling is enabled.")
4848
(defvar flow-control-c-q-replacement ?\036
49-
"Character that replaces C-q, when flow control handling is enabled.")
49+
"Character that replaces \\`C-q', when flow control handling is enabled.")
5050

5151
(put 'keyboard-translate-table 'char-table-extra-slots 0)
5252

lisp/forms.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@
323323
"Non-nil means: visit the file in view (read-only) mode.
324324
This is set automatically if the file permissions don't let you write it.")
325325

326-
(defvar forms-multi-line "\C-k" "\
327-
If not nil: use this character to separate multi-line fields (default C-k).")
326+
(defvar forms-multi-line "\C-k"
327+
"If non-nil, use this character to separate multi-line fields (default \\`C-k').")
328328

329329
(defcustom forms-forms-scroll nil
330330
"Non-nil means replace scroll-up/down commands in Forms mode.

lisp/help.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ current buffer."
12051205
(describe-function-1 defn)))))))
12061206

12071207
(defun search-forward-help-for-help ()
1208-
"Search forward in the help-for-help window.
1208+
"Search forward in the `help-for-help' window.
12091209
This command is meant to be used after issuing the \\[help-for-help] command."
12101210
(interactive)
12111211
(unless (get-buffer help-for-help-buffer-name)

lisp/hi-lock.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ with completion and history."
751751

752752
(defvar hi-lock-use-overlays nil
753753
"Whether to always use overlays instead of font-lock rules.
754-
When font-lock-mode is enabled and the buffer specifies font-lock rules,
754+
When `font-lock-mode' is enabled and the buffer specifies font-lock rules,
755755
highlighting is performed by adding new font-lock rules to the existing ones,
756756
so when new matching strings are added, they are highlighted by font-lock.
757757
Otherwise, overlays are used, but new highlighting overlays are not added

lisp/image.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ string containing the actual image data. If the property `:type TYPE'
815815
is omitted or nil, try to determine the image type from its first few
816816
bytes of image data. If that doesn't work, and the property `:file
817817
FILE' provide a file name, use its file extension as indication of the
818-
image type. If `:type TYPE' is provided, it must match the actual type
818+
image type. If `:type TYPE' is provided, it must match the actual type
819819
determined for FILE or DATA by `create-image'.
820820
821821
The function returns the image specification for the first specification

0 commit comments

Comments
 (0)