unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juanma Barranquero <lektu@mi.madritel.es>
Subject: cua-mode / substitute-command-keys interaction
Date: Tue, 04 May 2004 02:52:18 +0200	[thread overview]
Message-ID: <20040504023539.2C2F.LEKTU@mi.madritel.es> (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

                 reply	other threads:[~2004-05-04  0:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040504023539.2C2F.LEKTU@mi.madritel.es \
    --to=lektu@mi.madritel.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).