unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* minibuffer-complete inserts extraneous '-' using CVS Emacs
@ 2008-09-05 16:06 Francis Litterio
  2008-09-05 21:47 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Francis Litterio @ 2008-09-05 16:06 UTC (permalink / raw)
  To: emacs-devel

In CVS Emacs built on Linux and Windows XP, I see the following behavior
from minibuffer-complete:

  1.  Run "emacs -Q" or "emacs -q".

  2.  Type "C-h f file-p SPC".

  3.  The minibuffer shows "file--p" even though no function's name starts
      with that sequence of characters.
--
Fran





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

* Re: minibuffer-complete inserts extraneous '-' using CVS Emacs
  2008-09-05 16:06 minibuffer-complete inserts extraneous '-' using CVS Emacs Francis Litterio
@ 2008-09-05 21:47 ` Stefan Monnier
  2008-09-05 22:32   ` Drew Adams
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2008-09-05 21:47 UTC (permalink / raw)
  To: Francis Litterio; +Cc: emacs-devel

> In CVS Emacs built on Linux and Windows XP, I see the following behavior
> from minibuffer-complete:

>   1.  Run "emacs -Q" or "emacs -q".

>   2.  Type "C-h f file-p SPC".

>   3.  The minibuffer shows "file--p" even though no function's name starts
>       with that sequence of characters.

But there's no function starting with "file-p" and all the functions
that match "file.*-p.*" have 2 dashes before the p so they also match
"file.*-.*-p.*", which is why a second - is added.


        Stefan




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

* RE: minibuffer-complete inserts extraneous '-' using CVS Emacs
  2008-09-05 21:47 ` Stefan Monnier
@ 2008-09-05 22:32   ` Drew Adams
  0 siblings, 0 replies; 3+ messages in thread
From: Drew Adams @ 2008-09-05 22:32 UTC (permalink / raw)
  To: 'Stefan Monnier', 'Francis Litterio'; +Cc: emacs-devel

> > In CVS Emacs built on Linux and Windows XP, I see the 
> > following behavior from minibuffer-complete:
> 
> >   1.  Run "emacs -Q" or "emacs -q".
> >   2.  Type "C-h f file-p SPC".
> >   3.  The minibuffer shows "file--p" even though no 
> >       function's name starts with that sequence of characters.
> 
> But there's no function starting with "file-p" and all the functions
> that match "file.*-p.*" have 2 dashes before the p so they also match
> "file.*-.*-p.*", which is why a second - is added.

IOW, a feature, not a bug (aka bug by design). ;-)

I, for one, would prefer that pcomplete not be mixed in automatically with
normal completion by default (but it's not a biggee).

What is important, though, is that users be informed how to inhibit such
automatic pcompletion and return to the normal behavior. 

I guess that user option `completion-styles' controls this: Customizing it to
just (basic), not (basic partial-completion), does the job at least. If so, then
please explain this in the doc string - not just "List of completion styles to
use". And please mention it in the Emacs manual.






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

end of thread, other threads:[~2008-09-05 22:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 16:06 minibuffer-complete inserts extraneous '-' using CVS Emacs Francis Litterio
2008-09-05 21:47 ` Stefan Monnier
2008-09-05 22:32   ` Drew Adams

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