* Re: M-x edit-kbd-macro C-h l does not work in X
[not found] <20020618170443.16251.qmail@web10107.mail.yahoo.com>
@ 2002-06-20 14:34 ` Richard Stallman
0 siblings, 0 replies; only message in thread
From: Richard Stallman @ 2002-06-20 14:34 UTC (permalink / raw)
Cc: emacs-devel
Does this patch fix it?
*** edmacro.el.~1.24.~ Mon Jul 16 18:45:42 2001
--- edmacro.el Wed Jun 19 12:10:16 2002
***************
*** 609,631 ****
(setq i (1+ i) start (1+ start)))
res))))))
! (defun edmacro-fix-menu-commands (macro)
! (when (vectorp macro)
! (let ((i 0) ev)
! (while (< i (length macro))
! (when (consp (setq ev (aref macro i)))
! (cond ((equal (cadadr ev) '(menu-bar))
! (setq macro (vconcat (edmacro-subseq macro 0 i)
! (vector 'menu-bar (car ev))
! (edmacro-subseq macro (1+ i))))
! (incf i))
;; It would be nice to do pop-up menus, too, but not enough
;; info is recorded in macros to make this possible.
(t
(error "Macros with mouse clicks are not %s"
"supported by this command"))))
! (incf i))))
! macro)
\f
;;; Parsing a human-readable keyboard macro.
--- 609,638 ----
(setq i (1+ i) start (1+ start)))
res))))))
! (defun edmacro-fix-menu-commands (macro &optional noerror)
! (if (vectorp macro)
! (let (result)
! ;; Make a list of the elements.
! (setq macro (append macro nil))
! (dolist (ev macro)
! (cond ((atom ev)
! (push ev result))
! ((eq (car ev) 'help-echo))
! ((equal ev '(menu-bar))
! (push 'menu-bar result))
! ((equal (cadadr ev) '(menu-bar))
! (push (vector 'menu-bar (car ev)) result))
;; It would be nice to do pop-up menus, too, but not enough
;; info is recorded in macros to make this possible.
+ (noerror
+ ;; Just ignore mouse events.
+ nil)
(t
(error "Macros with mouse clicks are not %s"
"supported by this command"))))
! ;; Reverse them again and make them back into a vector.
! (vconcat (nreverse result)))
! macro))
\f
;;; Parsing a human-readable keyboard macro.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-06-20 14:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20020618170443.16251.qmail@web10107.mail.yahoo.com>
2002-06-20 14:34 ` M-x edit-kbd-macro C-h l does not work in X Richard Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).