aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-02-04 20:35:08 +0000
committerDave Love2000-02-04 20:35:08 +0000
commit9ff33afbe7d7b48bf62c13c432bb52cac4f38abd (patch)
tree1e0c6a26dfb1603c3717fa225346563a558d360f
parentf093a5e0fb6cfbece2b92843691cb12e9ce865bc (diff)
downloademacs-9ff33afbe7d7b48bf62c13c432bb52cac4f38abd.tar.gz
emacs-9ff33afbe7d7b48bf62c13c432bb52cac4f38abd.zip
(mode-line-mule-info): Fix/extend last change.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/bindings.el37
2 files changed, 33 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9a9aac145c0..0b5166ae8c3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12000-02-04 Dave Love <fx@gnu.org> 12000-02-04 Dave Love <fx@gnu.org>
2 2
3 * bindings.el (mode-line-mule-info): Fix/extend last change.
4
3 * completion.el: Replace completion-dolist with dolist. 5 * completion.el: Replace completion-dolist with dolist.
4 6
5 * tar-mode.el: Replace tar-dolist, tar-dotimes with dolist, 7 * tar-mode.el: Replace tar-dolist, tar-dotimes with dolist,
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 113ce20ee3e..9477e91f2fb 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -1,6 +1,7 @@
1;;; bindings.el --- define standard key bindings and some variables. 1;;; bindings.el --- define standard key bindings and some variables.
2 2
3;; Copyright (C) 1985,86,87,92,93,94,95,96,99 Free Software Foundation, Inc. 3;; Copyright (C) 1985,86,87,92,93,94,95,96,99,2000
4;; Free Software Foundation, Inc.
4 5
5;; Maintainer: FSF 6;; Maintainer: FSF
6;; Keywords: internal 7;; Keywords: internal
@@ -61,13 +62,37 @@ corresponding to the mode line clicked."
61 (force-mode-line-update)))) 62 (force-mode-line-update))))
62 map)) 63 map))
63 64
64;; This might have a local-map to bring up a MULE menu or describe the
65;; current method. At least give the user a clue what the field is.
66(defvar mode-line-mule-info 65(defvar mode-line-mule-info
67 `("" 66 `(""
68 (current-input-method ("" (propertize current-input-method-title 67 (current-input-method
69 'help-echo "Input method"))) 68 ("" (:eval
70 ,(propertize "%Z" 'help-echo (purecopy "Coding system information"))) 69 (if current-input-method
70 (propertize
71 current-input-method-title
72 'help-echo (concat ,(purecopy "Input method: ")
73 current-input-method
74 ". mouse-2 toggles, mouse-3 describes")
75 'local-map ,(purecopy
76 (let ((map (make-sparse-keymap)))
77 (define-key map [mode-line mouse-2]
78 (lambda (e)
79 (interactive "e")
80 (save-selected-window
81 (select-window
82 (posn-window (event-start e)))
83 (toggle-input-method)
84 (force-mode-line-update))))
85 (define-key map [mode-line mouse-3]
86 (lambda (e)
87 (interactive "e")
88 (save-selected-window
89 (select-window
90 (posn-window (event-start e)))
91 (describe-input-method))))
92 map)))))))
93 ,(propertize
94 "%Z" 'help-echo
95 (purecopy "Coding system information: see M-x describe-coding-system")))
71 "Mode-line control for displaying information of multilingual environment. 96 "Mode-line control for displaying information of multilingual environment.
72Normally it displays current input method (if any activated) and 97Normally it displays current input method (if any activated) and
73mnemonics of the following coding systems: 98mnemonics of the following coding systems: