all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* command-completion for C- commands?
@ 2008-06-16  8:22 knubee
  2008-06-16  9:40 ` danamlund
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: knubee @ 2008-06-16  8:22 UTC (permalink / raw)
  To: help-gnu-emacs

Tabbing works to show possible completions of Meta commands. Example:

M-x list-f<TAB> shows

  Possible completions are:
  list-faces-display		   list-fontsets

Is there an equivalent way to see possible completions for Control
commands -- given the mode of the current buffer? Example:

C-x<WHAT?>

thanks.


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

* Re: command-completion for C- commands?
  2008-06-16  8:22 command-completion for C- commands? knubee
@ 2008-06-16  9:40 ` danamlund
  2008-06-16 13:02   ` Nicholas Sandow
  2008-06-16  9:44 ` Phil Carmody
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 7+ messages in thread
From: danamlund @ 2008-06-16  9:40 UTC (permalink / raw)
  To: help-gnu-emacs

On 16 Jun., 10:22, knubee <knu...@gmail.com> wrote:
> Tabbing works to show possible completions of Meta commands. Example:
>
> M-x list-f<TAB> shows
>
>   Possible completions are:
>   list-faces-display               list-fontsets
>
> Is there an equivalent way to see possible completions for Control
> commands -- given the mode of the current buffer? Example:
>
> C-x<WHAT?>
>
> thanks.

M-x is a binding to a command, C-x ... is half a binding, so the same
trick won't work.
You can however, use the binding C-h b to view a list of all bindings
and then look for ones starting with C-x.


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

* Re: command-completion for C- commands?
  2008-06-16  8:22 command-completion for C- commands? knubee
  2008-06-16  9:40 ` danamlund
@ 2008-06-16  9:44 ` Phil Carmody
  2008-06-16 10:13   ` knubee
  2008-06-16 14:41 ` Drew Adams
       [not found] ` <mailman.13397.1213627301.18990.help-gnu-emacs@gnu.org>
  3 siblings, 1 reply; 7+ messages in thread
From: Phil Carmody @ 2008-06-16  9:44 UTC (permalink / raw)
  To: help-gnu-emacs

knubee <knubee@gmail.com> writes:

> Tabbing works to show possible completions of Meta commands. Example:
>
> M-x list-f<TAB> shows
>
>   Possible completions are:
>   list-faces-display		   list-fontsets
>
> Is there an equivalent way to see possible completions for Control
> commands -- given the mode of the current buffer? Example:
>
> C-x<WHAT?>

Does C-x C-h tell you what you want.

Phil
-- 
Dear aunt, let's set so double the killer delete select all.
-- Microsoft voice recognition live demonstration


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

* Re: command-completion for C- commands?
  2008-06-16  9:44 ` Phil Carmody
@ 2008-06-16 10:13   ` knubee
  0 siblings, 0 replies; 7+ messages in thread
From: knubee @ 2008-06-16 10:13 UTC (permalink / raw)
  To: help-gnu-emacs

> Does C-x C-h tell you what you want.

ah, yes. that will help. thanks.


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

* Re: command-completion for C- commands?
  2008-06-16  9:40 ` danamlund
@ 2008-06-16 13:02   ` Nicholas Sandow
  0 siblings, 0 replies; 7+ messages in thread
From: Nicholas Sandow @ 2008-06-16 13:02 UTC (permalink / raw)
  To: danamlund; +Cc: help-gnu-emacs


On 16/06/2008, at 7:40 PM, danamlund@gmail.com wrote:

> On 16 Jun., 10:22, knubee <knu...@gmail.com> wrote:
>> Tabbing works to show possible completions of Meta commands. Example:
>>
>> M-x list-f<TAB> shows
>>
>>   Possible completions are:
>>   list-faces-display               list-fontsets
>>
>> Is there an equivalent way to see possible completions for Control
>> commands -- given the mode of the current buffer? Example:
>>
>> C-x<WHAT?>
>>
>> thanks.
>
> M-x is a binding to a command, C-x ... is half a binding, so the same
> trick won't work.
> You can however, use the binding C-h b to view a list of all bindings
> and then look for ones starting with C-x.

You can also type C-h at any point mid-chord to see what keys are  
possible to complete the chord.

For example, if you type C-x C-h, you'll get a listing of what  
commands are bound to a key chord starting with C-x.




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

* RE: command-completion for C- commands?
  2008-06-16  8:22 command-completion for C- commands? knubee
  2008-06-16  9:40 ` danamlund
  2008-06-16  9:44 ` Phil Carmody
@ 2008-06-16 14:41 ` Drew Adams
       [not found] ` <mailman.13397.1213627301.18990.help-gnu-emacs@gnu.org>
  3 siblings, 0 replies; 7+ messages in thread
From: Drew Adams @ 2008-06-16 14:41 UTC (permalink / raw)
  To: 'knubee', help-gnu-emacs

> Tabbing works to show possible completions of Meta commands. Example:
> 
> M-x list-f<TAB> shows
> 
>   Possible completions are:
>   list-faces-display		   list-fontsets
> 
> Is there an equivalent way to see possible completions for Control
> commands -- given the mode of the current buffer? Example:
> 
> C-x<WHAT?>

If you use Icicles (with Emacs 22 or later), then you can complete any key
sequence, including Control-<whatever>. Each completion candidate shows you the
rest of the key sequence and the associated command.

Unlike C-h (after, e.g., C-x):

1. It works for all key prefixes (all key sequences) - including menus. C-h does
not work for many prefixes (e.g. C-s).

2. Finishing completion runs the command - it doesn't just show you help.

3. You can filter against both the key sequence and the command, using
substrings and other regexps.

http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Key_Completion

http://www.emacswiki.org/cgi-bin/wiki/EmacsNewbieWithIcicles#toc4





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

* Re: command-completion for C- commands?
       [not found] ` <mailman.13397.1213627301.18990.help-gnu-emacs@gnu.org>
@ 2008-06-21  4:07   ` knubee
  0 siblings, 0 replies; 7+ messages in thread
From: knubee @ 2008-06-21  4:07 UTC (permalink / raw)
  To: help-gnu-emacs

> If you use Icicles (with Emacs 22 or later), then you can complete any key
> sequence, including Control-<whatever>. Each completion candidate shows you the
> rest of the key sequence and the associated command.
>
> Unlike C-h (after, e.g., C-x):
>
> 1. It works for all key prefixes (all key sequences) - including menus. C-h does
> not work for many prefixes (e.g. C-s).
>
> 2. Finishing completion runs the command - it doesn't just show you help.

sounds exactly like what i am looking for. thanks!



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

end of thread, other threads:[~2008-06-21  4:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-16  8:22 command-completion for C- commands? knubee
2008-06-16  9:40 ` danamlund
2008-06-16 13:02   ` Nicholas Sandow
2008-06-16  9:44 ` Phil Carmody
2008-06-16 10:13   ` knubee
2008-06-16 14:41 ` Drew Adams
     [not found] ` <mailman.13397.1213627301.18990.help-gnu-emacs@gnu.org>
2008-06-21  4:07   ` knubee

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.