aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-28 19:03:03 +0000
committerRichard M. Stallman1994-10-28 19:03:03 +0000
commita4332c3f491b585a2141be5d8a7f77e592488cd7 (patch)
treed2eb54f4155faad31a1d302d6dad2d5edc095335
parent47c2ba0e279af4095a685ffab41f19c8aa9026b2 (diff)
downloademacs-a4332c3f491b585a2141be5d8a7f77e592488cd7.tar.gz
emacs-a4332c3f491b585a2141be5d8a7f77e592488cd7.zip
(iso-accents-mode): Variable renamed from iso-accents-minor-mode.
-rw-r--r--lisp/international/iso-acc.el31
1 files changed, 15 insertions, 16 deletions
diff --git a/lisp/international/iso-acc.el b/lisp/international/iso-acc.el
index d60d7b4f297..537a9b22c27 100644
--- a/lisp/international/iso-acc.el
+++ b/lisp/international/iso-acc.el
@@ -24,13 +24,12 @@
24 24
25;;; Commentary: 25;;; Commentary:
26 26
27;; Function `iso-accents-mode' activates a minor mode 27;; Function `iso-accents-mode' activates a minor mode in which
28;; (`iso-accents-minor-mode') in which typewriter "dead keys" are 28;; typewriter "dead keys" are emulated. The purpose of this emulation
29;; emulated. The purpose of this emulation is to provide a simple 29;; is to provide a simple means for inserting accented characters
30;; means for inserting accented characters according to the ISO-8859-1 30;; according to the ISO-8859-1 character set.
31;; character set.
32;; 31;;
33;; In `iso-accents-minor-mode', pseudo accent characters are used to 32;; In `iso-accents-mode', pseudo accent characters are used to
34;; introduce accented keys. The pseudo-accent characterss are: 33;; introduce accented keys. The pseudo-accent characterss are:
35;; 34;;
36;; ' (minute) -> grave accent 35;; ' (minute) -> grave accent
@@ -141,16 +140,16 @@
141 ) 140 )
142 "Association list for ISO accent combinations.") 141 "Association list for ISO accent combinations.")
143 142
144(defvar iso-accents-minor-mode nil 143(defvar iso-accents-mode nil
145 "*Non-nil enables ISO Accents mode. 144 "*Non-nil enables ISO Accents mode.
146Setting this variable makes it local to the current buffer. 145Setting this variable makes it local to the current buffer.
147See `iso-accents-mode'.") 146See function `iso-accents-mode'.")
148(make-variable-buffer-local 'iso-accents-minor-mode) 147(make-variable-buffer-local 'iso-accents-mode)
149 148
150(defun iso-accents-accent-key (prompt) 149(defun iso-accents-accent-key (prompt)
151 "Modify the following character by adding an accent to it." 150 "Modify the following character by adding an accent to it."
152 ;; Pick up the accent character. 151 ;; Pick up the accent character.
153 (if iso-accents-minor-mode 152 (if iso-accents-mode
154 (iso-accents-compose prompt) 153 (iso-accents-compose prompt)
155 (char-to-string last-input-char))) 154 (char-to-string last-input-char)))
156 155
@@ -196,7 +195,7 @@ those characters that are not actually used.")
196 195
197(or key-translation-map (setq key-translation-map (make-sparse-keymap))) 196(or key-translation-map (setq key-translation-map (make-sparse-keymap)))
198;; For sequences starting with an accent character, 197;; For sequences starting with an accent character,
199;; use a function that tests iso-accents-minor-mode. 198;; use a function that tests iso-accents-mode.
200(if (memq ?' iso-accents-enable) 199(if (memq ?' iso-accents-enable)
201 (define-key key-translation-map "'" 'iso-accents-accent-key)) 200 (define-key key-translation-map "'" 'iso-accents-accent-key))
202(if (memq ?` iso-accents-enable) 201(if (memq ?` iso-accents-enable)
@@ -213,10 +212,10 @@ those characters that are not actually used.")
213;; It is a matter of taste if you want the minor mode indicated 212;; It is a matter of taste if you want the minor mode indicated
214;; in the mode line... 213;; in the mode line...
215;; If so, uncomment the next four lines. 214;; If so, uncomment the next four lines.
216;; (or (assq 'iso-accents-minor-mode minor-mode-map-alist) 215;; (or (assq 'iso-accents-mode minor-mode-map-alist)
217;; (setq minor-mode-alist 216;; (setq minor-mode-alist
218;; (append minor-mode-alist 217;; (append minor-mode-alist
219;; '((iso-accents-minor-mode " ISO-Acc"))))) 218;; '((iso-accents-mode " ISO-Acc")))))
220 219
221;;;###autoload 220;;;###autoload
222(defun iso-accents-mode (&optional arg) 221(defun iso-accents-mode (&optional arg)
@@ -246,10 +245,10 @@ and a negative argument disables it."
246 ;; Negative arg means switch it off. 245 ;; Negative arg means switch it off.
247 (<= (prefix-numeric-value arg) 0) 246 (<= (prefix-numeric-value arg) 0)
248 ;; No arg means toggle. 247 ;; No arg means toggle.
249 iso-accents-minor-mode) 248 iso-accents-mode)
250 (setq iso-accents-minor-mode nil) 249 (setq iso-accents-mode nil)
251 250
252 ;; Enable electric accents. 251 ;; Enable electric accents.
253 (setq iso-accents-minor-mode t))) 252 (setq iso-accents-mode t)))
254 253
255;;; iso-acc.el ends here 254;;; iso-acc.el ends here