yonglehou / ergoemacs

Automatically exported from code.google.com/p/ergoemacs
0 stars 0 forks source link

show "M-a " instead of "M-x " in modeline for execute-extended-command #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start ErgoEmacs     ;-)
2. Hit M-a

What is the expected output? What do you see instead?

I expect to see "M-a " and the cursor for me to type. Instead the prompt
shows "M-x ", the classic-emacs binding.

What version of the product are you using? On what operating system?

David Capello's 1.5 build, GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of
2009-07-30 on SOFT-MJASON; running on WinXP SP3.

Please provide any additional information below.

Perhaps a lookup is required to find which key is bound to
execute-extended-command? Or (heresy!) can it just say "invoke: " ?

Original issue reported on code.google.com by nicho...@gmail.com on 8 Sep 2009 at 1:46

GoogleCodeExporter commented 9 years ago
this is hardcoded in C in emacs.

http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=1525

am not sure GNU Emacs developers would fix this.

Kevin Rodgers gave detail on how to fix:

«
seber...@spawar.navy.mil wrote:
> When you type a command in Emacs you are greeted with the prompt "M-
> x".  How change that prompt string?

Change this code in src/keyboard.c and recompile emacs:
   /* This isn't strictly correct if execute-extended-command
      is bound to anything else.  Perhaps it should use
      this_command_keys?  */
   strcat (buf, "M-x ");

Original comment by xah...@gmail.com on 8 Sep 2009 at 2:17

GoogleCodeExporter commented 9 years ago
This is fixed when using smex

Original comment by matthew....@gmail.com on 25 Jan 2013 at 2:48

GoogleCodeExporter commented 9 years ago
Won't fix c source code...

Original comment by matthew....@gmail.com on 25 Jan 2013 at 2:49