unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* [patch] 21.3 terminal.el -- Show help key at prompt
@ 2004-08-27 22:03 Jari Aalto+mail.emacs
  0 siblings, 0 replies; 2+ messages in thread
From: Jari Aalto+mail.emacs @ 2004-08-27 22:03 UTC (permalink / raw)




I think it would be good if the prompt indicated which key to press to
get help. Here is the patch.


2004-08-28 Sat  Jari Aalto  <jari dot aalto A T poboxes dot com>

        * terminal.el (te-escape): Show `?' in prompt for help key.


Index: terminal.el
===================================================================
RCS file: /cygdrive/l/data/vc/cvsroot/lisp/emacs/21.3/lisp/terminal.el,v
retrieving revision 1.1.1.1
diff -u -IId: -b -w -u -r1.1.1.1 terminal.el
--- terminal.el	26 Jun 2003 18:06:16 -0000	1.1.1.1
+++ terminal.el	27 Aug 2004 22:01:38 -0000
@@ -206,9 +206,9 @@
           (use-local-map terminal-escape-map)
           (setq s (read-key-sequence
                     (if current-prefix-arg
-                        (format "Emacs Terminal escape> %d "
+                        (format "Emacs Terminal escape[? for help]> %d "
                                 (prefix-numeric-value current-prefix-arg))
-                        "Emacs Terminal escape> "))))
+                        "Emacs Terminal escape[? for help]> "))))
       (use-global-map global)
       (use-local-map local))

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [patch] 21.3 terminal.el -- Show help key at prompt
       [not found] <mailman.434.1093644517.1998.bug-gnu-emacs@gnu.org>
@ 2004-08-27 22:45 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2004-08-27 22:45 UTC (permalink / raw)


Jari Aalto+mail.emacs wrote:
 > I think it would be good if the prompt indicated which key to press to
 > get help. Here is the patch.
 >
 >
 > 2004-08-28 Sat  Jari Aalto  <jari dot aalto A T poboxes dot com>
 >
 >         * terminal.el (te-escape): Show `?' in prompt for help key.

If `?' does something useful, it must be bound to some command
(te-escape-help) in some map (terminal-escape-map).  So instead of a
literal `?' in the prompt, you should look it up:

(format "...%s..."
	...
         (substitute-command-keys "\\<terminal-escape-map>\\[te-escape-help]")
	...)

-- 
Kevin Rodgers

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-08-27 22:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-27 22:03 [patch] 21.3 terminal.el -- Show help key at prompt Jari Aalto+mail.emacs
     [not found] <mailman.434.1093644517.1998.bug-gnu-emacs@gnu.org>
2004-08-27 22:45 ` Kevin Rodgers

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).