diff options
| author | Luc Teirlinck | 2004-12-08 01:10:13 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-12-08 01:10:13 +0000 |
| commit | b680abcbeb4b5192c35a5602a8d6e9240ffdde74 (patch) | |
| tree | 298ae96ae046711023c17bdd9cc539efc4e316cf | |
| parent | ad136a7c3b310fa7240dd2adf62f23b454782bd0 (diff) | |
| download | emacs-b680abcbeb4b5192c35a5602a8d6e9240ffdde74.tar.gz emacs-b680abcbeb4b5192c35a5602a8d6e9240ffdde74.zip | |
`edit-kbd-macro' is now bound to `C-x C-k e'.
(edmacro-finish-edit): Further update for keyboard macros that are
lambda forms.
(edmacro-sanitize-for-string): Correctly remove Meta modifier
(as suggested by Kim Storm).
| -rw-r--r-- | lisp/edmacro.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/edmacro.el b/lisp/edmacro.el index 0db09d7eebe..67be9f34a15 100644 --- a/lisp/edmacro.el +++ b/lisp/edmacro.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; edmacro.el --- keyboard macro editor | 1 | ;;; edmacro.el --- keyboard macro editor |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1993, 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1993, 1994, 2004 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Dave Gillespie <daveg@synaptics.com> | 5 | ;; Author: Dave Gillespie <daveg@synaptics.com> |
| 6 | ;; Maintainer: Dave Gillespie <daveg@synaptics.com> | 6 | ;; Maintainer: Dave Gillespie <daveg@synaptics.com> |
| @@ -28,7 +28,7 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Usage: | 29 | ;;; Usage: |
| 30 | ;; | 30 | ;; |
| 31 | ;; The `C-x C-k' (`edit-kbd-macro') command edits a keyboard macro | 31 | ;; The `C-x C-k e' (`edit-kbd-macro') command edits a keyboard macro |
| 32 | ;; in a special buffer. It prompts you to type a key sequence, | 32 | ;; in a special buffer. It prompts you to type a key sequence, |
| 33 | ;; which should be one of: | 33 | ;; which should be one of: |
| 34 | ;; | 34 | ;; |
| @@ -266,7 +266,8 @@ or nil, use a compact 80-column format." | |||
| 266 | (and b (commandp b) (not (arrayp b)) | 266 | (and b (commandp b) (not (arrayp b)) |
| 267 | (not (kmacro-extract-lambda b)) | 267 | (not (kmacro-extract-lambda b)) |
| 268 | (or (not (fboundp b)) | 268 | (or (not (fboundp b)) |
| 269 | (not (arrayp (symbol-function b)))) | 269 | (not (or (arrayp (symbol-function b)) |
| 270 | (get b 'kmacro)))) | ||
| 270 | (not (y-or-n-p | 271 | (not (y-or-n-p |
| 271 | (format "Key %s is already defined; %s" | 272 | (format "Key %s is already defined; %s" |
| 272 | (edmacro-format-keys key 1) | 273 | (edmacro-format-keys key 1) |
| @@ -655,7 +656,7 @@ The string represents the same events; Meta is indicated by bit 7. | |||
| 655 | This function assumes that the events can be stored in a string." | 656 | This function assumes that the events can be stored in a string." |
| 656 | (setq seq (copy-sequence seq)) | 657 | (setq seq (copy-sequence seq)) |
| 657 | (loop for i below (length seq) do | 658 | (loop for i below (length seq) do |
| 658 | (when (< (aref seq i) 0) | 659 | (when (logand (aref seq i) 128) |
| 659 | (setf (aref seq i) (logand (aref seq i) 127)))) | 660 | (setf (aref seq i) (logand (aref seq i) 127)))) |
| 660 | seq) | 661 | seq) |
| 661 | 662 | ||