* cua-mode / substitute-command-keys interaction
@ 2004-05-04 0:52 Juanma Barranquero
0 siblings, 0 replies; only message in thread
From: Juanma Barranquero @ 2004-05-04 0:52 UTC (permalink / raw)
(load-library "cua-base")
(cua-mode)
(load-library "ehelp")
M-x electric-describe-function car [RET]
=> (in the echo area:) "Press SPC to scroll, q to exit, r to retain"
(add-hook 'electric-help-mode
'(lambda ()
(define-key electric-help-map "r" #'ignore)))
M-x electric-describe-function car [RET]
=> (echo area:) "Press M-x scroll-up to scroll, M-x electric-help-exit to exit, M-x electric-help-retain to retain"
(cua-mode 0)
M-x electric-describe-function car [RET]
=> (echo area:) "Press SPC to scroll, Q to exit, R to retain"
-------------------------------------------------
In the call to Electric-command-loop inside electric-command-help-loop,
substitute-command-keys acts weirdly. It's easy to see by tracing the
function with edebug and 'e'valing:
(substitute-command-keys "\\[scroll-up], \\[electric-help-exit]")
(substitute-command-keys "\\[electric-help-exit]")
(substitute-command-keys "\\[scroll-up]")
etc. The results depend on what is being asked to translate and in which
order.
/L/e/k/t/u
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-04 0:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-04 0:52 cua-mode / substitute-command-keys interaction Juanma Barranquero
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).