aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vcursor.el
diff options
context:
space:
mode:
authorStephen Eglen1998-03-07 18:19:38 +0000
committerStephen Eglen1998-03-07 18:19:38 +0000
commit4bef911093051ec6dfca2e1415e42baee60f8e37 (patch)
tree01e2642e0ce7282e95907bc908e065a2817d30c1 /lisp/vcursor.el
parent14d4446b73f2f52becebc28d96e82f6ff5fe8e57 (diff)
downloademacs-4bef911093051ec6dfca2e1415e42baee60f8e37.tar.gz
emacs-4bef911093051ec6dfca2e1415e42baee60f8e37.zip
Customized.
Diffstat (limited to 'lisp/vcursor.el')
-rw-r--r--lisp/vcursor.el35
1 files changed, 25 insertions, 10 deletions
diff --git a/lisp/vcursor.el b/lisp/vcursor.el
index ae5affc2ce1..1eeed59715f 100644
--- a/lisp/vcursor.el
+++ b/lisp/vcursor.el
@@ -302,6 +302,11 @@
302 302
303;;; Code: 303;;; Code:
304 304
305(defgroup vcursor nil
306 "Manipulate an alternative (\"virtual\") cursor."
307 :prefix "vcursor-"
308 :group 'display)
309
305(or (memq 'vcursor (face-list)) 310(or (memq 'vcursor (face-list))
306 (progn 311 (progn
307 (copy-face 'modeline 'vcursor) 312 (copy-face 'modeline 'vcursor)
@@ -312,24 +317,32 @@
312 (set-face-background 'vcursor "cyan"))) 317 (set-face-background 'vcursor "cyan")))
313 (set-face-underline-p 'vcursor t))) 318 (set-face-underline-p 'vcursor t)))
314 319
315(defvar vcursor-auto-disable nil 320(defcustom vcursor-auto-disable nil
316 "*If non-nil, disable the virtual cursor after use. 321 "*If non-nil, disable the virtual cursor after use.
317Any non-vcursor command will force `vcursor-disable' to be called.") 322Any non-vcursor command will force `vcursor-disable' to be called."
323 :type 'boolean
324 :group 'vcursor)
318 325
319(defvar vcursor-key-bindings t 326(defcustom vcursor-key-bindings t
320 "*How to bind keys when vcursor is loaded. 327 "*How to bind keys when vcursor is loaded.
321If t (the default), guess; if xterm, use bindings suitable for an 328If t (the default), guess; if xterm, use bindings suitable for an
322X terminal; if oemacs, use bindings which work on a PC with Oemacs. 329X terminal; if oemacs, use bindings which work on a PC with Oemacs.
323If nil, don't define any key bindings.") 330If nil, don't define any key bindings."
331 :type '(choice (const t) (const xterm) (const oemacs) (const nil))
332 :group 'vcursor)
324 333
325(defvar vcursor-interpret-input nil 334(defcustom vcursor-interpret-input nil
326 "*If non-nil, input from the vcursor is treated as interactive input. 335 "*If non-nil, input from the vcursor is treated as interactive input.
327This will cause text insertion to be much slower. Note that no special 336This will cause text insertion to be much slower. Note that no special
328interpretation of strings is done: \"\C-x\" is a string of four 337interpretation of strings is done: \"\C-x\" is a string of four
329characters. The default is simply to copy strings.") 338characters. The default is simply to copy strings."
339 :type 'boolean
340 :group 'vcursor)
330 341
331(defvar vcursor-string "**>" 342(defcustom vcursor-string "**>"
332 "String used to show the vcursor position on dumb terminals.") 343 "String used to show the vcursor position on dumb terminals."
344 :type 'string
345 :group 'vcursor)
333 346
334(defvar vcursor-overlay nil 347(defvar vcursor-overlay nil
335 "Overlay for the virtual cursor. 348 "Overlay for the virtual cursor.
@@ -346,8 +359,10 @@ scrolling set this. It is used by the `vcursor-auto-disable' code.")
346;; could do some memq-ing with last-command instead, but this will 359;; could do some memq-ing with last-command instead, but this will
347;; automatically handle any new commands using the primitives. 360;; automatically handle any new commands using the primitives.
348 361
349(defvar vcursor-copy-flag nil 362(defcustom vcursor-copy-flag nil
350 "*Non-nil means moving vcursor should copy characters moved over to point.") 363 "*Non-nil means moving vcursor should copy characters moved over to point."
364 :type 'boolean
365 :group 'vcursor)
351 366
352(defvar vcursor-temp-goal-column nil 367(defvar vcursor-temp-goal-column nil
353 "Keeps track of temporary goal columns for the virtual cursor.") 368 "Keeps track of temporary goal columns for the virtual cursor.")