* Re: partial-completion-mode
2008-11-28 22:27 ` partial-completion-mode (was: C-x C-b and C-x C-f bugging about confirmation) Romain Francoise
@ 2008-11-29 2:48 ` Stefan Monnier
2008-11-29 19:44 ` partial-completion-mode Romain Francoise
0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2008-11-29 2:48 UTC (permalink / raw)
To: Romain Francoise; +Cc: Chong Yidong, emacs-devel
>> BTW, while partial-completion-mode is not explicitly marked as
>> obsolete yet, I do consider it as obsolete. If there's some
>> particular reason why you use it, I'd like to hear about it.
> The reason is that I've always used it, and I'm not aware of
> built-in replacements for its features. :)
> For example, it binds SPC in the minibuffer to a command which makes
> completion *go forward* instead of just completing the current word,
> which enables e.g. M-x f SPC lib RET to run find-library, M-x isp
> SPC c SPC d for ispell-change-dictionary, etc. I never use TAB for
> completion in the minibuffer, SPC is much more convenient to type
> (I use ido for buffer/file completion).
I just fixed a bug in minibuffer.el.
Now if you (setq completion-styles '(partial-completion)), your
M-x f SPC lib RET works just fine. M-x isp SPC c SPC d won't quite
work: you need an extra SPC before the `c'. Funnily enough, this
example only works with partial-completion-mode thanks to a bug
introduced in Emacs-21 (which causes some internal test to use the
whole minibuffer, including the prompt, to decide whether completion is
done).
BTW, using `-' (that's what I use) instead of SPC should work as well if
not better, with less magic. But it's a bit more difficult to
type, admittedly.
> I also use the partial completion itself (I often use M-x kg RET for
> kill-grep), but admittedly I think I could live without it.
How do you get M-x kg RET to complete to kill-grep? Doesn't work
for me.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: partial-completion-mode
2008-11-29 2:48 ` partial-completion-mode Stefan Monnier
@ 2008-11-29 19:44 ` Romain Francoise
2008-11-29 20:42 ` partial-completion-mode Stefan Monnier
0 siblings, 1 reply; 5+ messages in thread
From: Romain Francoise @ 2008-11-29 19:44 UTC (permalink / raw)
To: Stefan Monnier; +Cc: Chong Yidong, emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Now if you (setq completion-styles '(partial-completion)), your
> M-x f SPC lib RET works just fine. M-x isp SPC c SPC d won't quite
> work: you need an extra SPC before the `c'.
Thanks, I'll give it a try.
> How do you get M-x kg RET to complete to kill-grep? Doesn't work
> for me.
If you're starting from emacs -Q you need to load grep.el first, so
either use one of the autoloaded commands, or M-: (require 'grep).
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: partial-completion-mode
2008-11-29 19:44 ` partial-completion-mode Romain Francoise
@ 2008-11-29 20:42 ` Stefan Monnier
0 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2008-11-29 20:42 UTC (permalink / raw)
To: Romain Francoise; +Cc: Chong Yidong, emacs-devel
>> How do you get M-x kg RET to complete to kill-grep? Doesn't work
>> for me.
> If you're starting from emacs -Q you need to load grep.el first, so
> either use one of the autoloaded commands, or M-: (require 'grep).
Oh, yes, now I see it. Funny, I used partial-completion-mode but never
noticed this behavior.
Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
* partial-completion-mode
@ 2010-04-18 9:39 Romain Francoise
[not found] ` <jwvfx2sg3jq.fsf-monnier+emacs@gnu.org>
0 siblings, 1 reply; 5+ messages in thread
From: Romain Francoise @ 2010-04-18 9:39 UTC (permalink / raw)
To: emacs-devel
complete.el has been moved to lisp/obsolete. As far as I know the
built-in partial completion features are still far from being a
replacement for partial-completion-mode, so I think it is premature
to obsolete it.
See previous discussion starting at:
http://article.gmane.org/gmane.emacs.devel/106273
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: partial-completion-mode
[not found] ` <jwvfx2sg3jq.fsf-monnier+emacs@gnu.org>
@ 2010-04-19 19:16 ` Romain Francoise
0 siblings, 0 replies; 5+ messages in thread
From: Romain Francoise @ 2010-04-19 19:16 UTC (permalink / raw)
To: Stefan Monnier; +Cc: emacs-devel
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> The patch below lets you get the behavior you want by doing
> (setq completion-word-extra-chars '(" " "-"))
Yes, that works for me, and I didn't know about the `initials'
style, that covers the other cases I was missing from p-c-m. So if
that patch goes in, no objection from me for obsoleting complete.el.
Thanks!
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-04-19 19:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-18 9:39 partial-completion-mode Romain Francoise
[not found] ` <jwvfx2sg3jq.fsf-monnier+emacs@gnu.org>
2010-04-19 19:16 ` partial-completion-mode Romain Francoise
-- strict thread matches above, loose matches on Subject: below --
2008-11-21 13:33 C-x C-b and C-x C-f bugging about confirmation Alfred M. Szmidt
2008-11-21 14:35 ` Stefan Monnier
2008-11-22 11:26 ` Alfred M. Szmidt
2008-11-23 3:49 ` Stefan Monnier
2008-11-24 11:24 ` Alfred M. Szmidt
2008-11-24 15:56 ` Stefan Monnier
2008-11-24 17:52 ` Alfred M. Szmidt
2008-11-28 18:52 ` Romain Francoise
2008-11-28 21:06 ` Stefan Monnier
2008-11-28 22:27 ` partial-completion-mode (was: C-x C-b and C-x C-f bugging about confirmation) Romain Francoise
2008-11-29 2:48 ` partial-completion-mode Stefan Monnier
2008-11-29 19:44 ` partial-completion-mode Romain Francoise
2008-11-29 20:42 ` partial-completion-mode Stefan Monnier
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.