* Searching for commands by any part of command name
@ 2010-04-08 5:01 Philip Ganchev
2010-04-08 5:08 ` Philip Ganchev
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Philip Ganchev @ 2010-04-08 5:01 UTC (permalink / raw)
To: help-gnu-emacs
Hi
Emacs command names can be confusing to newcomers and casual users,
partly because of the word order in command names, and partly because
users don't know how to specify the action (which begins the command
name). For example, to close a window, you delete it. I think it
would be easier if it was possible to search commands
case-insensitively and by text anywhere in the name, rather than only
the beginning. For example, if a user types
M-x window <tab>
then Emacs would list commands including:
balance-windows
buffer-menu-other-window
clone-indirect-buffer-other-window
compare-windows
delete-other-windows
delete-window
Can Emacs be customized or modified to do that?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Searching for commands by any part of command name
2010-04-08 5:01 Searching for commands by any part of command name Philip Ganchev
@ 2010-04-08 5:08 ` Philip Ganchev
2010-04-08 8:50 ` Andrea Crotti
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Philip Ganchev @ 2010-04-08 5:08 UTC (permalink / raw)
To: help-gnu-emacs
Please include my email address explicitly in your replies; I am not
subscribed to the list.
On Thu, Apr 8, 2010 at 1:01 AM, Philip Ganchev <phil.ganchev@gmail.com> wrote:
> Hi
>
> Emacs command names can be confusing to newcomers and casual users,
> partly because of the word order in command names, and partly because
> users don't know how to specify the action (which begins the command
> name). For example, to close a window, you delete it. I think it
> would be easier if it was possible to search commands
> case-insensitively and by text anywhere in the name, rather than only
> the beginning. For example, if a user types
>
> M-x window <tab>
>
> then Emacs would list commands including:
>
> balance-windows
> buffer-menu-other-window
> clone-indirect-buffer-other-window
> compare-windows
> delete-other-windows
> delete-window
>
> Can Emacs be customized or modified to do that?
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Searching for commands by any part of command name
2010-04-08 5:01 Searching for commands by any part of command name Philip Ganchev
2010-04-08 5:08 ` Philip Ganchev
@ 2010-04-08 8:50 ` Andrea Crotti
2010-04-08 13:25 ` William Xu
2010-04-08 13:42 ` Drew Adams
2010-04-08 12:34 ` Gary .
2010-04-08 13:38 ` Drew Adams
3 siblings, 2 replies; 8+ messages in thread
From: Andrea Crotti @ 2010-04-08 8:50 UTC (permalink / raw)
To: help-gnu-emacs
Philip Ganchev <phil.ganchev@gmail.com> writes:
> Hi
>
> M-x window <tab>
>
> then Emacs would list commands including:
>
> balance-windows
> buffer-menu-other-window
> clone-indirect-buffer-other-window
> compare-windows
> delete-other-windows
> delete-window
>
> Can Emacs be customized or modified to do that?
If I don't remember wrong ido-mode should do something like this.
It does for files and some time ago it was also working for commands for
me, or maybe it was another packaged that I disabled in the meanwhile.
Often here http://emacswiki.org/ there are a lot of infos
Attaching another question, why (I think) C-h a doesn't display all the
possible commands/variable/functions with a particular string inside,
but just some of them?
Thanks
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Searching for commands by any part of command name
2010-04-08 5:01 Searching for commands by any part of command name Philip Ganchev
2010-04-08 5:08 ` Philip Ganchev
2010-04-08 8:50 ` Andrea Crotti
@ 2010-04-08 12:34 ` Gary .
2010-04-08 14:13 ` Drew Adams
2010-04-08 13:38 ` Drew Adams
3 siblings, 1 reply; 8+ messages in thread
From: Gary . @ 2010-04-08 12:34 UTC (permalink / raw)
To: help-gnu-emacs; +Cc: philip
On Thu, Apr 8, 2010 at 7:01 AM, Philip Ganchev wrote:
> Emacs command names can be confusing to newcomers and casual users,
> partly because of the word order in command names, and partly because
> users don't know how to specify the action (which begins the command
> name).
...
> For example, if a user types
>
> M-x window <tab>
Maybe I'm not understanding, but what's wrong with
M-x *window <tab>
?
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Searching for commands by any part of command name
2010-04-08 8:50 ` Andrea Crotti
@ 2010-04-08 13:25 ` William Xu
2010-04-08 13:42 ` Drew Adams
1 sibling, 0 replies; 8+ messages in thread
From: William Xu @ 2010-04-08 13:25 UTC (permalink / raw)
To: help-gnu-emacs
Andrea Crotti <andrea.crotti.0@gmail.com> writes:
If I don't remember wrong ido-mode should do something like this.
That's right. There's a ido-hacks.el, that enables ido-mode almost
everywhere, like when you do `M-x'. I'm very fond of it.
--
William
http://xwl.appspot.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Searching for commands by any part of command name
2010-04-08 5:01 Searching for commands by any part of command name Philip Ganchev
` (2 preceding siblings ...)
2010-04-08 12:34 ` Gary .
@ 2010-04-08 13:38 ` Drew Adams
3 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2010-04-08 13:38 UTC (permalink / raw)
To: philip, help-gnu-emacs
> Emacs command names can be confusing to newcomers and casual users,
> partly because of the word order in command names, and partly because
> users don't know how to specify the action (which begins the command
> name). For example, to close a window, you delete it. I think it
> would be easier if it was possible to search commands
> case-insensitively and by text anywhere in the name, rather than only
> the beginning. For example, if a user types
>
> M-x window <tab>
>
> then Emacs would list commands including:
>
> balance-windows
> buffer-menu-other-window
> clone-indirect-buffer-other-window
> compare-windows
> delete-other-windows
> delete-window
>
> Can Emacs be customized or modified to do that?
Several 3rd-party packages allow this, and the latest Emacs vanilla version
allows it out of the box to some extent.
Here is one such package (which I maintain):
http://www.emacswiki.org/emacs/EmacsNewbieWithIcicles
To match against a substring (which is what you describe), use `S-TAB' for
completion instead of `TAB'. By default, `S-TAB' matching is actually regexp
(regular expression) matching, but if you want just substring matching (i.e. you
want to match regexp special chars literally), then just use `C-`' (once) in the
minibuffer - or just customize option `icicle-regexp-quote-flag' to non-nil.
Icicles completion works this way not just for command names but everything else
as well. And you can match multiple substrings without regard to order, so you
can match not only `window' but also `buffer', and thus pick up candidates like
`window-buffer' and `get-buffer-window' for `C-h f'. You do that by separating
the different match patterns with `S-SPC', so: `C-h f window S-SPC buffer
S-TAB'.
Other packages that also match substrings, and more info about completion in
general, are available here:
http://www.emacswiki.org/emacs/CategoryCompletion
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Searching for commands by any part of command name
2010-04-08 8:50 ` Andrea Crotti
2010-04-08 13:25 ` William Xu
@ 2010-04-08 13:42 ` Drew Adams
1 sibling, 0 replies; 8+ messages in thread
From: Drew Adams @ 2010-04-08 13:42 UTC (permalink / raw)
To: 'Andrea Crotti', help-gnu-emacs
> Attaching another question, why (I think) C-h a doesn't
> display all the
> possible commands/variable/functions with a particular string inside,
> but just some of them?
C-h a is `apropos-command', which deals only with commands or, with `C-u', with
all functions (but not variables).
What you want is the command `apropos', which is not bound to a key by default:
`M-x apropos'. It is bound by default to menu item `Help > Search Documentation
> Find Any Object by Name'.
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Searching for commands by any part of command name
2010-04-08 12:34 ` Gary .
@ 2010-04-08 14:13 ` Drew Adams
0 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2010-04-08 14:13 UTC (permalink / raw)
To: 'Gary .', help-gnu-emacs; +Cc: philip
> Maybe I'm not understanding, but what's wrong with
> M-x *window <tab> ?
If he has Emacs 22 or earlier, it doesn't match substrings.
In Emacs 23, there is some support for substring matching, as you indicate.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2010-04-08 14:13 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-08 5:01 Searching for commands by any part of command name Philip Ganchev
2010-04-08 5:08 ` Philip Ganchev
2010-04-08 8:50 ` Andrea Crotti
2010-04-08 13:25 ` William Xu
2010-04-08 13:42 ` Drew Adams
2010-04-08 12:34 ` Gary .
2010-04-08 14:13 ` Drew Adams
2010-04-08 13:38 ` Drew Adams
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.