aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-11-23 23:19:43 +0000
committerRichard M. Stallman1994-11-23 23:19:43 +0000
commit48a0ae63d2f85fe7aec62d7b1864bd3ed675e0dd (patch)
tree29614bb3cbdf2eaf5ce531ed8a086a1b6e02e0da
parent351dc550971aabce0a57e91be9fbc8cc163200c0 (diff)
downloademacs-48a0ae63d2f85fe7aec62d7b1864bd3ed675e0dd.tar.gz
emacs-48a0ae63d2f85fe7aec62d7b1864bd3ed675e0dd.zip
(double-mode-name): Variable deleted.
(minor-mode-alist): Use a constant string to indicate Double mode.
-rw-r--r--lisp/double.el24
1 files changed, 12 insertions, 12 deletions
diff --git a/lisp/double.el b/lisp/double.el
index cd27f31fbb8..c64ab007f54 100644
--- a/lisp/double.el
+++ b/lisp/double.el
@@ -42,8 +42,6 @@
42;; The default mapping is for getting Danish/Norwegian keyboard layout 42;; The default mapping is for getting Danish/Norwegian keyboard layout
43;; using ISO Latin 1 on a US keyboard. 43;; using ISO Latin 1 on a US keyboard.
44;; 44;;
45;; Requires FSF Emacs 19.20 or later.
46;;
47;; Imprtant node: While I would like to hear comments, bug reports, 45;; Imprtant node: While I would like to hear comments, bug reports,
48;; suggestions, please do @strong{not} expect me to put other mappings 46;; suggestions, please do @strong{not} expect me to put other mappings
49;; that the default into this file. There are billions and billions 47;; that the default into this file. There are billions and billions
@@ -76,7 +74,7 @@ Each entry is a list with three elements:
763. The string to be inserted when the key is pressed twice.") 743. The string to be inserted when the key is pressed twice.")
77 75
78(defvar double-prefix-only t 76(defvar double-prefix-only t
79 "*Non-nil means that double mode mapping only works for prefix keys. 77 "*Non-nil means that Double mode mapping only works for prefix keys.
80That is, for any key `X' in `double-map', `X' alone will be mapped 78That is, for any key `X' in `double-map', `X' alone will be mapped
81but not `C-u X' or `ESC X' since the X is not the prefix key.") 79but not `C-u X' or `ESC X' since the X is not the prefix key.")
82 80
@@ -141,8 +139,8 @@ but not `C-u X' or `ESC X' since the X is not the prefix key.")
141 139
142(defvar default-key-translation-map 140(defvar default-key-translation-map
143 (or key-translation-map (make-sparse-keymap)) 141 (or key-translation-map (make-sparse-keymap))
144 "Key translation you want to have effect, regardless of double mode. 142 "Key translation you want to have effect, regardless of Double mode.
145This will default to the value of `key-translation-map' when double was 143This defaults to the value of `key-translation-map' when double was
146first loaded.") 144first loaded.")
147 145
148(make-variable-buffer-local 'key-translation-map) 146(make-variable-buffer-local 'key-translation-map)
@@ -163,18 +161,20 @@ first loaded.")
163 161
164(or (assq 'double-mode minor-mode-alist) 162(or (assq 'double-mode minor-mode-alist)
165 (setq minor-mode-alist 163 (setq minor-mode-alist
166 (cons '(double-mode (" " double-mode-name)) minor-mode-alist))) 164 (cons '(double-mode " Double") minor-mode-alist)))
167 165
168(defvar double-mode-name "Double") 166;; This feature seemed useless and it confused describe-mode,
169;; Name of current double mode. 167;; so I deleted it.
170 (make-variable-buffer-local 'double-mode-name) 168;;;(defvar double-mode-name "Double")
169;;;;; Name of current double mode.
170;;; (make-variable-buffer-local 'double-mode-name)
171 171
172;;;###autoload 172;;;###autoload
173(defun double-mode (arg) 173(defun double-mode (arg)
174 "Toggle double mode. 174 "Toggle Double mode.
175With prefix arg, turn double mode on iff arg is positive. 175With prefix arg, turn Double mode on iff arg is positive.
176 176
177When double mode is on, some keys will insert will insert different 177When Double mode is on, some keys will insert will insert different
178strings when pressed twice. See variable `double-map' for details." 178strings when pressed twice. See variable `double-map' for details."
179 (interactive "P") 179 (interactive "P")
180 (if (or (and (null arg) double-mode) 180 (if (or (and (null arg) double-mode)