aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/emulation
diff options
context:
space:
mode:
authorStefan Kangas2021-09-18 23:39:01 +0200
committerStefan Kangas2021-09-18 23:42:24 +0200
commita602d548dfaa1dcd44c3af017ccbbcd3586ca023 (patch)
tree1ee9592337ddca2d373d1f95230203d15e702f0c /lisp/emulation
parentdd3f6b13f673433e590c55b24232cf0a7e70de6e (diff)
downloademacs-a602d548dfaa1dcd44c3af017ccbbcd3586ca023.tar.gz
emacs-a602d548dfaa1dcd44c3af017ccbbcd3586ca023.zip
; Stylistic docfixes in emulation/*.el found by checkdoc
Diffstat (limited to 'lisp/emulation')
-rw-r--r--lisp/emulation/cua-base.el4
-rw-r--r--lisp/emulation/cua-rect.el6
-rw-r--r--lisp/emulation/viper-ex.el2
-rw-r--r--lisp/emulation/viper-init.el63
-rw-r--r--lisp/emulation/viper-keym.el8
-rw-r--r--lisp/emulation/viper-mous.el3
-rw-r--r--lisp/emulation/viper-util.el9
7 files changed, 46 insertions, 49 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el
index b6620499603..3976c1ea063 100644
--- a/lisp/emulation/cua-base.el
+++ b/lisp/emulation/cua-base.el
@@ -330,9 +330,9 @@ See `cua-set-mark' for details."
330 "If non-nil, registers are supported via numeric prefix arg. 330 "If non-nil, registers are supported via numeric prefix arg.
331If the value is t, any numeric prefix arg in the range 0 to 9 will be 331If the value is t, any numeric prefix arg in the range 0 to 9 will be
332interpreted as a register number. 332interpreted as a register number.
333If the value is `not-ctrl-u', using C-u to enter a numeric prefix is not 333If the value is `not-ctrl-u', using \\[universal-argument] to enter a numeric prefix is not
334interpreted as a register number. 334interpreted as a register number.
335If the value is `ctrl-u-only', only numeric prefix entered with C-u is 335If the value is `ctrl-u-only', only numeric prefix entered with \\[universal-argument] is
336interpreted as a register number." 336interpreted as a register number."
337 :type '(choice (const :tag "Disabled" nil) 337 :type '(choice (const :tag "Disabled" nil)
338 (const :tag "Enabled, but C-u arg is not a register" not-ctrl-u) 338 (const :tag "Enabled, but C-u arg is not a register" not-ctrl-u)
diff --git a/lisp/emulation/cua-rect.el b/lisp/emulation/cua-rect.el
index 0039092fd6e..65ae2f192fa 100644
--- a/lisp/emulation/cua-rect.el
+++ b/lisp/emulation/cua-rect.el
@@ -710,9 +710,11 @@ Mark is kept if keep-clear is 'keep and cleared if keep-clear is 'clear."
710 (nreverse rect))) 710 (nreverse rect)))
711 711
712(defun cua--insert-rectangle (rect &optional below paste-column line-count) 712(defun cua--insert-rectangle (rect &optional below paste-column line-count)
713 "Insert rectangle as insert-rectangle, but don't set mark and exit with 713 "Insert rectangle RECT similarly to `insert-rectangle'.
714In contrast to `insert-rectangle', don't set mark and exit with
714point at either next to top right or below bottom left corner 715point at either next to top right or below bottom left corner
715Notice: In overwrite mode, the rectangle is inserted as separate text lines." 716
717Note: In overwrite mode, the rectangle is inserted as separate text lines."
716 (if (eq below 'auto) 718 (if (eq below 'auto)
717 (setq below (and (bolp) 719 (setq below (and (bolp)
718 (or (eolp) (eobp) (= (1+ (point)) (point-max)))))) 720 (or (eolp) (eobp) (= (1+ (point)) (point-max))))))
diff --git a/lisp/emulation/viper-ex.el b/lisp/emulation/viper-ex.el
index e93666956ce..b1cbcc5a6d4 100644
--- a/lisp/emulation/viper-ex.el
+++ b/lisp/emulation/viper-ex.el
@@ -1798,7 +1798,7 @@ reversed."
1798 set-cmd var auto-cmd-label))) 1798 set-cmd var auto-cmd-label)))
1799 1799
1800 (if (and ask-if-save 1800 (if (and ask-if-save
1801 (y-or-n-p (format "Do you want to save this setting in %s " 1801 (y-or-n-p (format "Do you want to save this setting in %s?"
1802 viper-custom-file-name))) 1802 viper-custom-file-name)))
1803 (progn 1803 (progn
1804 (viper-save-string-in-file 1804 (viper-save-string-in-file
diff --git a/lisp/emulation/viper-init.el b/lisp/emulation/viper-init.el
index 8188971c0d0..730ca0b5a2e 100644
--- a/lisp/emulation/viper-init.el
+++ b/lisp/emulation/viper-init.el
@@ -246,19 +246,19 @@ that deletes a file.")
246 246
247;; Some common error messages 247;; Some common error messages
248 248
249(defconst viper-SpuriousText "Spurious text after command" "") 249(defconst viper-SpuriousText "Spurious text after command")
250(defconst viper-BadExCommand "Not an editor command" "") 250(defconst viper-BadExCommand "Not an editor command")
251(defconst viper-InvalidCommandArgument "Invalid command argument" "") 251(defconst viper-InvalidCommandArgument "Invalid command argument")
252(defconst viper-NoPrevSearch "No previous search string" "") 252(defconst viper-NoPrevSearch "No previous search string")
253(defconst viper-EmptyRegister "`%c': Nothing in this register" "") 253(defconst viper-EmptyRegister "`%c': Nothing in this register")
254(defconst viper-InvalidRegister "`%c': Invalid register" "") 254(defconst viper-InvalidRegister "`%c': Invalid register")
255(defconst viper-EmptyTextmarker "`%c': Text marker doesn't point anywhere" "") 255(defconst viper-EmptyTextmarker "`%c': Text marker doesn't point anywhere")
256(defconst viper-InvalidTextmarker "`%c': Invalid text marker" "") 256(defconst viper-InvalidTextmarker "`%c': Invalid text marker")
257(defconst viper-InvalidViCommand "Invalid command" "") 257(defconst viper-InvalidViCommand "Invalid command")
258(defconst viper-BadAddress "Ill-formed address" "") 258(defconst viper-BadAddress "Ill-formed address")
259(defconst viper-FirstAddrExceedsSecond "First address exceeds second" "") 259(defconst viper-FirstAddrExceedsSecond "First address exceeds second")
260(defconst viper-NoFileSpecified "No file specified" "") 260(defconst viper-NoFileSpecified "No file specified")
261(defconst viper-ViperBell "Viper bell" "") 261(defconst viper-ViperBell "Viper bell")
262 262
263;; Is t until viper-mode executes for the very first time. 263;; Is t until viper-mode executes for the very first time.
264;; Prevents recursive descend into startup messages. 264;; Prevents recursive descend into startup messages.
@@ -282,7 +282,7 @@ Use `\\[viper-set-expert-level]' to change this.")
282;; If non-nil, ISO accents will be turned on in insert/replace emacs states and 282;; If non-nil, ISO accents will be turned on in insert/replace emacs states and
283;; turned off in vi-state. For some users, this behavior may be too 283;; turned off in vi-state. For some users, this behavior may be too
284;; primitive. In this case, use insert/emacs/vi state hooks. 284;; primitive. In this case, use insert/emacs/vi state hooks.
285(defvar-local viper-automatic-iso-accents nil "") 285(defvar-local viper-automatic-iso-accents nil)
286;; Set iso-accents-mode to ARG. Check if it is bound first 286;; Set iso-accents-mode to ARG. Check if it is bound first
287(defsubst viper-set-iso-accents-mode (arg) 287(defsubst viper-set-iso-accents-mode (arg)
288 (if (boundp 'iso-accents-mode) 288 (if (boundp 'iso-accents-mode)
@@ -292,7 +292,7 @@ Use `\\[viper-set-expert-level]' to change this.")
292;; Don't change this! 292;; Don't change this!
293(defvar viper-mule-hook-flag t) 293(defvar viper-mule-hook-flag t)
294;; If non-nil, the default intl. input method is turned on. 294;; If non-nil, the default intl. input method is turned on.
295(defvar-local viper-special-input-method nil "") 295(defvar-local viper-special-input-method nil)
296 296
297;; viper hook to run on input-method activation 297;; viper hook to run on input-method activation
298(defun viper-activate-input-method-action () 298(defun viper-activate-input-method-action ()
@@ -355,7 +355,7 @@ it better fits your working style."
355;; Replace mode and changing text 355;; Replace mode and changing text
356 356
357;; Hack used to pass global states around for short period of time 357;; Hack used to pass global states around for short period of time
358(defvar-local viper-intermediate-command nil "") 358(defvar-local viper-intermediate-command nil)
359 359
360;; This is used to pass the right Vi command key sequence to 360;; This is used to pass the right Vi command key sequence to
361;; viper-set-destructive-command whenever (this-command-keys) doesn't give the 361;; viper-set-destructive-command whenever (this-command-keys) doesn't give the
@@ -365,7 +365,7 @@ it better fits your working style."
365(defconst viper-this-command-keys nil) 365(defconst viper-this-command-keys nil)
366 366
367;; Indicates that the current destructive command has started in replace mode. 367;; Indicates that the current destructive command has started in replace mode.
368(defvar-local viper-began-as-replace nil "") 368(defvar-local viper-began-as-replace nil)
369 369
370(defcustom viper-allow-multiline-replace-regions t 370(defcustom viper-allow-multiline-replace-regions t
371 "If non-nil, Viper will allow multi-line replace regions. 371 "If non-nil, Viper will allow multi-line replace regions.
@@ -396,7 +396,7 @@ delete the text being replaced, as in standard Vi."
396;; internal var, used to remember the default cursor color of emacs frames 396;; internal var, used to remember the default cursor color of emacs frames
397(defvar viper-vi-state-cursor-color nil) 397(defvar viper-vi-state-cursor-color nil)
398 398
399(defvar-local viper-replace-overlay nil "") 399(defvar-local viper-replace-overlay nil)
400(put 'viper-replace-overlay 'permanent-local t) 400(put 'viper-replace-overlay 'permanent-local t)
401 401
402(defcustom viper-replace-region-end-delimiter "$" 402(defcustom viper-replace-region-end-delimiter "$"
@@ -434,18 +434,18 @@ color displays. By default, the delimiters are used only on TTYs."
434(put 'viper-last-posn-in-replace-region 'permanent-local t) 434(put 'viper-last-posn-in-replace-region 'permanent-local t)
435(put 'viper-last-posn-while-in-insert-state 'permanent-local t) 435(put 'viper-last-posn-while-in-insert-state 'permanent-local t)
436 436
437(defvar-local viper-sitting-in-replace nil "") 437(defvar-local viper-sitting-in-replace nil)
438(put 'viper-sitting-in-replace 'permanent-local t) 438(put 'viper-sitting-in-replace 'permanent-local t)
439 439
440;; Remember the number of characters that have to be deleted in replace 440;; Remember the number of characters that have to be deleted in replace
441;; mode to compensate for the inserted characters. 441;; mode to compensate for the inserted characters.
442(defvar-local viper-replace-chars-to-delete 0 "") 442(defvar-local viper-replace-chars-to-delete 0)
443;; This variable is used internally by the before/after changed functions to 443;; This variable is used internally by the before/after changed functions to
444;; determine how many chars were deleted by the change. This can't be 444;; determine how many chars were deleted by the change. This can't be
445;; determined inside after-change-functions because those get the length of the 445;; determined inside after-change-functions because those get the length of the
446;; deleted region, not the number of chars deleted (which are two different 446;; deleted region, not the number of chars deleted (which are two different
447;; things under MULE). 447;; things under MULE).
448(defvar-local viper-replace-region-chars-deleted 0 "") 448(defvar-local viper-replace-region-chars-deleted 0)
449 449
450;; Insertion ring and command ring 450;; Insertion ring and command ring
451(defcustom viper-insertion-ring-size 14 451(defcustom viper-insertion-ring-size 14
@@ -494,7 +494,7 @@ will make it hard to use Vi-style timeout macros."
494;; Autoindent in insert 494;; Autoindent in insert
495 495
496;; Variable that keeps track of whether C-t has been pressed. 496;; Variable that keeps track of whether C-t has been pressed.
497(defvar-local viper-cted nil "") 497(defvar-local viper-cted nil)
498 498
499;; Preserve the indent value, used by C-d in insert mode. 499;; Preserve the indent value, used by C-d in insert mode.
500(defvar-local viper-current-indent 0) 500(defvar-local viper-current-indent 0)
@@ -502,14 +502,14 @@ will make it hard to use Vi-style timeout macros."
502;; Whether to preserve the indent, used by C-d in insert mode. 502;; Whether to preserve the indent, used by C-d in insert mode.
503(defvar-local viper-preserve-indent nil) 503(defvar-local viper-preserve-indent nil)
504 504
505(defvar-local viper-auto-indent nil "") 505(defvar-local viper-auto-indent nil)
506(defcustom viper-auto-indent nil 506(defcustom viper-auto-indent nil
507 "Enable autoindent, if t. 507 "Enable autoindent, if t.
508This is a buffer-local variable." 508This is a buffer-local variable."
509 :type 'boolean 509 :type 'boolean
510 :group 'viper) 510 :group 'viper)
511 511
512(defvar-local viper-electric-mode t "") 512(defvar-local viper-electric-mode t)
513(defcustom viper-electric-mode t 513(defcustom viper-electric-mode t
514 "If t, electrify Viper. 514 "If t, electrify Viper.
515Currently, this only electrifies auto-indentation, making it appropriate to the 515Currently, this only electrifies auto-indentation, making it appropriate to the
@@ -595,7 +595,7 @@ to a new place after repeating previous Vi command."
595;;; Variables for Moves and Searches 595;;; Variables for Moves and Searches
596 596
597(defgroup viper-search nil 597(defgroup viper-search nil
598 "Variables that define the search and query-replace behavior of Viper." 598 "Variables that define the search and `query-replace' behavior of Viper."
599 :prefix "viper-" 599 :prefix "viper-"
600 :group 'viper) 600 :group 'viper)
601 601
@@ -658,14 +658,14 @@ negative number."
658 :type 'boolean 658 :type 'boolean
659 :group 'viper) 659 :group 'viper)
660 660
661(defvar-local viper-ex-style-motion t "") 661(defvar-local viper-ex-style-motion t)
662(defcustom viper-ex-style-motion t 662(defcustom viper-ex-style-motion t
663 "If t, the commands l,h do not cross lines, etc (Ex-style). 663 "If t, the commands l,h do not cross lines, etc (Ex-style).
664If nil, these commands cross line boundaries." 664If nil, these commands cross line boundaries."
665 :type 'boolean 665 :type 'boolean
666 :group 'viper) 666 :group 'viper)
667 667
668(defvar-local viper-ex-style-editing t "") 668(defvar-local viper-ex-style-editing t)
669(defcustom viper-ex-style-editing t 669(defcustom viper-ex-style-editing t
670 "If t, Ex-style behavior while editing in Vi command and insert states. 670 "If t, Ex-style behavior while editing in Vi command and insert states.
671`Backspace' and `Delete' don't cross line boundaries in insert. 671`Backspace' and `Delete' don't cross line boundaries in insert.
@@ -677,14 +677,14 @@ If nil, the above commands can work across lines."
677 :type 'boolean 677 :type 'boolean
678 :group 'viper) 678 :group 'viper)
679 679
680(defvar-local viper-ESC-moves-cursor-back viper-ex-style-editing "") 680(defvar-local viper-ESC-moves-cursor-back viper-ex-style-editing)
681(defcustom viper-ESC-moves-cursor-back nil 681(defcustom viper-ESC-moves-cursor-back nil
682 "If t, ESC moves cursor back when changing from insert to vi state. 682 "If t, ESC moves cursor back when changing from insert to vi state.
683If nil, the cursor stays where it was when ESC was hit." 683If nil, the cursor stays where it was when ESC was hit."
684 :type 'boolean 684 :type 'boolean
685 :group 'viper) 685 :group 'viper)
686 686
687(defvar-local viper-delete-backwards-in-replace nil "") 687(defvar-local viper-delete-backwards-in-replace nil)
688(defcustom viper-delete-backwards-in-replace nil 688(defcustom viper-delete-backwards-in-replace nil
689 "If t, DEL key will delete characters while moving the cursor backwards. 689 "If t, DEL key will delete characters while moving the cursor backwards.
690If nil, the cursor will move backwards without deleting anything." 690If nil, the cursor will move backwards without deleting anything."
@@ -702,7 +702,7 @@ If nil, the cursor will move backwards without deleting anything."
702 :tag "Search Wraps Around" 702 :tag "Search Wraps Around"
703 :group 'viper-search) 703 :group 'viper-search)
704 704
705(defvar-local viper-related-files-and-buffers-ring nil "") 705(defvar-local viper-related-files-and-buffers-ring nil)
706(defcustom viper-related-files-and-buffers-ring nil 706(defcustom viper-related-files-and-buffers-ring nil
707 "List of file and buffer names to consider related to the current buffer. 707 "List of file and buffer names to consider related to the current buffer.
708Related buffers can be cycled through via :R and :P commands." 708Related buffers can be cycled through via :R and :P commands."
@@ -839,8 +839,7 @@ to customize the actual face object `viper-minibuffer-vi'
839this variable represents.") 839this variable represents.")
840 840
841;; the current face to be used in the minibuffer 841;; the current face to be used in the minibuffer
842(defvar-local 842(defvar-local viper-minibuffer-current-face viper-minibuffer-emacs-face)
843 viper-minibuffer-current-face viper-minibuffer-emacs-face "")
844 843
845 844
846;;; Miscellaneous 845;;; Miscellaneous
diff --git a/lisp/emulation/viper-keym.el b/lisp/emulation/viper-keym.el
index 75b627ea6a7..7e14a56556b 100644
--- a/lisp/emulation/viper-keym.el
+++ b/lisp/emulation/viper-keym.el
@@ -69,7 +69,7 @@ major mode in effect."
69 :group 'viper) 69 :group 'viper)
70 70
71(defcustom viper-want-ctl-h-help nil 71(defcustom viper-want-ctl-h-help nil
72 "If non-nil, bind C-h to help-command; otherwise, C-h gets the usual Vi bindings." 72 "If non-nil, bind C-h to `help-command'; otherwise, C-h gets the usual Vi bindings."
73 :type 'boolean 73 :type 'boolean
74 :group 'viper) 74 :group 'viper)
75 75
@@ -211,17 +211,17 @@ In insert mode, this key also functions as Meta."
211 211
212;; Tells viper-add-local-keys to create a new viper-vi-local-user-map for new 212;; Tells viper-add-local-keys to create a new viper-vi-local-user-map for new
213;; buffers. Not a user option. 213;; buffers. Not a user option.
214(defvar-local viper-need-new-vi-local-map t "") 214(defvar-local viper-need-new-vi-local-map t)
215(put 'viper-need-new-vi-local-map 'permanent-local t) 215(put 'viper-need-new-vi-local-map 'permanent-local t)
216 216
217;; Tells viper-add-local-keys to create a new viper-insert-local-user-map for 217;; Tells viper-add-local-keys to create a new viper-insert-local-user-map for
218;; new buffers. Not a user option. 218;; new buffers. Not a user option.
219(defvar-local viper-need-new-insert-local-map t "") 219(defvar-local viper-need-new-insert-local-map t)
220(put 'viper-need-new-insert-local-map 'permanent-local t) 220(put 'viper-need-new-insert-local-map 'permanent-local t)
221 221
222;; Tells viper-add-local-keys to create a new viper-emacs-local-user-map for 222;; Tells viper-add-local-keys to create a new viper-emacs-local-user-map for
223;; new buffers. Not a user option. 223;; new buffers. Not a user option.
224(defvar-local viper-need-new-emacs-local-map t "") 224(defvar-local viper-need-new-emacs-local-map t)
225(put 'viper-need-new-emacs-local-map 'permanent-local t) 225(put 'viper-need-new-emacs-local-map 'permanent-local t)
226 226
227 227
diff --git a/lisp/emulation/viper-mous.el b/lisp/emulation/viper-mous.el
index 98b123a7f49..02db39f1cb0 100644
--- a/lisp/emulation/viper-mous.el
+++ b/lisp/emulation/viper-mous.el
@@ -65,8 +65,7 @@ or a triple-click."
65(defcustom viper-multiclick-timeout (if (viper-window-display-p) 65(defcustom viper-multiclick-timeout (if (viper-window-display-p)
66 double-click-time 66 double-click-time
67 500) 67 500)
68 "Time interval in millisecond within which successive mouse clicks are 68 "Time interval in milliseconds for mouse clicks to be considered related."
69considered related."
70 :type 'integer) 69 :type 'integer)
71 70
72;; Local variable used to toggle wraparound search on click. 71;; Local variable used to toggle wraparound search on click.
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el
index 8ff1cf91c05..b92f60d6a5e 100644
--- a/lisp/emulation/viper-util.el
+++ b/lisp/emulation/viper-util.el
@@ -1091,14 +1091,11 @@ In addition, the symbol `_' may be considered alphanumeric if
1091`viper-syntax-preference' is `strict-vi' or `reformed-vi'.") 1091`viper-syntax-preference' is `strict-vi' or `reformed-vi'.")
1092 1092
1093(defconst viper-strict-ALPHA-chars "a-zA-Z0-9_" 1093(defconst viper-strict-ALPHA-chars "a-zA-Z0-9_"
1094 "Regexp matching the set of alphanumeric characters acceptable to strict 1094 "Regexp matching the set of alphanumeric characters acceptable to strict Vi.")
1095Vi.")
1096(defconst viper-strict-SEP-chars " \t\n" 1095(defconst viper-strict-SEP-chars " \t\n"
1097 "Regexp matching the set of alphanumeric characters acceptable to strict 1096 "Regexp matching the set of alphanumeric characters acceptable to strict Vi.")
1098Vi.")
1099(defconst viper-strict-SEP-chars-sans-newline " \t" 1097(defconst viper-strict-SEP-chars-sans-newline " \t"
1100 "Regexp matching the set of alphanumeric characters acceptable to strict 1098 "Regexp matching the set of alphanumeric characters acceptable to strict Vi.")
1101Vi.")
1102 1099
1103(defconst viper-SEP-char-class " -" 1100(defconst viper-SEP-char-class " -"
1104 "String of syntax classes for Vi separators. 1101 "String of syntax classes for Vi separators.