diff options
| author | Karoly Lorentey | 2005-11-01 06:23:08 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-11-01 06:23:08 +0000 |
| commit | cd0cf71c4f41023a8d9c20b3a26e44b980992b5a (patch) | |
| tree | b763cfec551254e2228335be4e218ed7a9a19109 /lisp/emulation | |
| parent | c40bb1ba81a5df164f0b9b61e3480c55808717b7 (diff) | |
| parent | 895725e10c0fb68ed21abb48183cc8843bcaadf3 (diff) | |
| download | emacs-cd0cf71c4f41023a8d9c20b3a26e44b980992b5a.tar.gz emacs-cd0cf71c4f41023a8d9c20b3a26e44b980992b5a.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 142-148, 615-628)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-615
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-616
Add lisp/mh-e/.arch-inventory
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-617
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-618
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-619
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-620
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-621
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-622
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-623
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-624
Update from CVS: lisp/smerge-mode.el: Add 'tools' to file keywords.
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-625
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-626
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-627
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-628
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-142
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-143
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-144
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-145
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-146
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-147
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-148
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-435
Diffstat (limited to 'lisp/emulation')
| -rw-r--r-- | lisp/emulation/viper.el | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index a361469382e..71b9347b8b0 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -942,55 +942,55 @@ It also can't undo some Viper settings." | |||
| 942 | ;; the advice. | 942 | ;; the advice. |
| 943 | (eval-after-load | 943 | (eval-after-load |
| 944 | "iso-acc" | 944 | "iso-acc" |
| 945 | (defadvice iso-accents-mode (around viper-iso-accents-advice activate) | 945 | '(defadvice iso-accents-mode (around viper-iso-accents-advice activate) |
| 946 | "Set viper-automatic-iso-accents to iso-accents-mode." | 946 | "Set viper-automatic-iso-accents to iso-accents-mode." |
| 947 | (let ((arg (ad-get-arg 0))) | 947 | (let ((arg (ad-get-arg 0))) |
| 948 | ad-do-it | 948 | ad-do-it |
| 949 | (setq viper-automatic-iso-accents | 949 | (setq viper-automatic-iso-accents |
| 950 | (if (eq viper-current-state 'vi-state) | 950 | (if (eq viper-current-state 'vi-state) |
| 951 | (if arg | 951 | (if arg |
| 952 | ;; if iso-accents-mode was called with positive arg, turn | 952 | ;; if iso-accents-mode was called with positive arg, turn |
| 953 | ;; accents on | 953 | ;; accents on |
| 954 | (> (prefix-numeric-value arg) 0) | 954 | (> (prefix-numeric-value arg) 0) |
| 955 | ;; else: toggle viper-automatic-iso-accents | 955 | ;; else: toggle viper-automatic-iso-accents |
| 956 | (not viper-automatic-iso-accents)) | 956 | (not viper-automatic-iso-accents)) |
| 957 | ;; other states: accept what iso-accents-mode has done | 957 | ;; other states: accept what iso-accents-mode has done |
| 958 | iso-accents-mode)) | 958 | iso-accents-mode)) |
| 959 | ;; turn off ISO accents in vi-state | 959 | ;; turn off ISO accents in vi-state |
| 960 | (if (eq viper-current-state 'vi-state) | 960 | (if (eq viper-current-state 'vi-state) |
| 961 | (viper-set-iso-accents-mode nil)) | 961 | (viper-set-iso-accents-mode nil)) |
| 962 | (if (memq viper-current-state '(vi-state insert-state replace-state)) | 962 | (if (memq viper-current-state '(vi-state insert-state replace-state)) |
| 963 | (message "Viper ISO accents mode: %s" | 963 | (message "Viper ISO accents mode: %s" |
| 964 | (if viper-automatic-iso-accents "on" "off"))) | 964 | (if viper-automatic-iso-accents "on" "off"))) |
| 965 | ))) | 965 | ))) |
| 966 | 966 | ||
| 967 | ;; International input methods | 967 | ;; International input methods |
| 968 | (if viper-emacs-p | 968 | (if viper-emacs-p |
| 969 | (eval-after-load "mule-cmds" | 969 | (eval-after-load "mule-cmds" |
| 970 | (progn | 970 | '(progn |
| 971 | (defadvice inactivate-input-method (after viper-mule-advice activate) | 971 | (defadvice inactivate-input-method (after viper-mule-advice activate) |
| 972 | "Set viper-special-input-method to disable intl. input methods." | 972 | "Set viper-special-input-method to disable intl. input methods." |
| 973 | (viper-inactivate-input-method-action)) | 973 | (viper-inactivate-input-method-action)) |
| 974 | (defadvice activate-input-method (after viper-mule-advice activate) | 974 | (defadvice activate-input-method (after viper-mule-advice activate) |
| 975 | "Set viper-special-input-method to enable intl. input methods." | 975 | "Set viper-special-input-method to enable intl. input methods." |
| 976 | (viper-activate-input-method-action)) | 976 | (viper-activate-input-method-action)) |
| 977 | )) | 977 | )) |
| 978 | ;; XEmacs Although these hooks exist in Emacs, they don't seem to be always | 978 | ;; XEmacs Although these hooks exist in Emacs, they don't seem to be always |
| 979 | ;; called on input-method activation/deactivation, so we the above advise | 979 | ;; called on input-method activation/deactivation, so we the above advise |
| 980 | ;; functions instead. | 980 | ;; functions instead. |
| 981 | (eval-after-load "mule-cmds" | 981 | (eval-after-load "mule-cmds" |
| 982 | (progn | 982 | '(progn |
| 983 | (add-hook 'input-method-activate-hook | 983 | (add-hook 'input-method-activate-hook |
| 984 | 'viper-activate-input-method-action t) | 984 | 'viper-activate-input-method-action t) |
| 985 | (add-hook 'input-method-inactivate-hook | 985 | (add-hook 'input-method-inactivate-hook |
| 986 | 'viper-inactivate-input-method-action t))) | 986 | 'viper-inactivate-input-method-action t))) |
| 987 | ) | 987 | ) |
| 988 | (eval-after-load "mule-cmds" | 988 | (eval-after-load "mule-cmds" |
| 989 | (defadvice toggle-input-method (around viper-mule-advice activate) | 989 | '(defadvice toggle-input-method (around viper-mule-advice activate) |
| 990 | "Adjust input-method toggling in vi-state." | 990 | "Adjust input-method toggling in vi-state." |
| 991 | (if (and viper-special-input-method (eq viper-current-state 'vi-state)) | 991 | (if (and viper-special-input-method (eq viper-current-state 'vi-state)) |
| 992 | (viper-inactivate-input-method) | 992 | (viper-inactivate-input-method) |
| 993 | ad-do-it))) | 993 | ad-do-it))) |
| 994 | 994 | ||
| 995 | ) ; viper-set-hooks | 995 | ) ; viper-set-hooks |
| 996 | 996 | ||