From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: cua-mode / substitute-command-keys interaction Date: Tue, 04 May 2004 02:52:18 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040504023539.2C2F.LEKTU@mi.madritel.es> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1083632329 10227 80.91.224.253 (4 May 2004 00:58:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 May 2004 00:58:49 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 04 02:58:42 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKoGg-0003uV-00 for ; Tue, 04 May 2004 02:58:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BKoGg-0002dT-00 for ; Tue, 04 May 2004 02:58:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKoGB-00057A-Eo for emacs-devel@quimby.gnus.org; Mon, 03 May 2004 20:58:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BKoDx-0004Eq-3o for emacs-devel@gnu.org; Mon, 03 May 2004 20:55:53 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BKoBI-0003d4-EI for emacs-devel@gnu.org; Mon, 03 May 2004 20:53:39 -0400 Original-Received: from [62.81.186.16] (helo=smtp06.retemail.es) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BKoAT-0003V3-9d for emacs-devel@gnu.org; Mon, 03 May 2004 20:52:17 -0400 Original-Received: from [127.0.0.1] ([213.37.34.68]) by smtp06.retemail.es (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20040504005216.BVEE11460.smtp06.retemail.es@[127.0.0.1]> for ; Tue, 4 May 2004 02:52:16 +0200 Original-To: emacs-devel@gnu.org X-Mailer: Becky! ver. 2.09.01 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22670 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22670 (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