diff options
| author | Kim F. Storm | 2002-05-25 00:06:56 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-05-25 00:06:56 +0000 |
| commit | 20023b9cb448aa6e766a0dc73ab08d1aecf3cbf5 (patch) | |
| tree | ff672ea8090296d33b237513bcfd1413485cda9d | |
| parent | feb51e916d64ccaa4e5c044a737ce9587eb2c440 (diff) | |
| download | emacs-20023b9cb448aa6e766a0dc73ab08d1aecf3cbf5.tar.gz emacs-20023b9cb448aa6e766a0dc73ab08d1aecf3cbf5.zip | |
(cua--self-insert-char-p): New function.
| -rw-r--r-- | lisp/emulation/cua-base.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/emulation/cua-base.el b/lisp/emulation/cua-base.el index 5f6e966647f..cfcc333820a 100644 --- a/lisp/emulation/cua-base.el +++ b/lisp/emulation/cua-base.el | |||
| @@ -954,6 +954,13 @@ Extra commands should be added to `cua-user-movement-commands'") | |||
| 954 | (unless (listp key) (setq key (list key))) | 954 | (unless (listp key) (setq key (list key))) |
| 955 | (define-key map (vector (cons (if cua-use-hyper-key 'hyper 'meta) key)) fct)) | 955 | (define-key map (vector (cons (if cua-use-hyper-key 'hyper 'meta) key)) fct)) |
| 956 | 956 | ||
| 957 | (defun cua--self-insert-char-p (def) | ||
| 958 | ;; Return DEF if current key sequence is self-inserting in | ||
| 959 | ;; global-map. | ||
| 960 | (if (memq (global-key-binding (this-single-command-keys)) | ||
| 961 | '(self-insert-command self-insert-iso)) | ||
| 962 | def nil)) | ||
| 963 | |||
| 957 | (defvar cua-global-keymap (make-sparse-keymap) | 964 | (defvar cua-global-keymap (make-sparse-keymap) |
| 958 | "Global keymap for cua-mode; users may add to this keymap.") | 965 | "Global keymap for cua-mode; users may add to this keymap.") |
| 959 | 966 | ||