unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Confusing completion for buffer names
@ 2010-06-17 19:26 Richard Stallman
  2010-06-18  5:52 ` Stefan Monnier
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Stallman @ 2010-06-17 19:26 UTC (permalink / raw)
  To: emacs-devel

I just found out that someone made * act as a wildcard in completion.
I cannot find this in etc/NEWS.  If it is there and I am overlooking it,
can someone show me the entry that pertains to it?

That feature can be useful, and does no harm when the
completion list does not include items that contain *s.  On buffer
names, however, it leads to frequent bizarre results.

Please turn off this feature when the completion list includes a
literal match for the *.  For instance, when reading a buffer name,
if you type * l TAB, the * should be treated as literal because
there are buffer names which start with *.

If there is no buffer name starting with `*l', I want it to say
`[No match]' -- not give me `*mail*'.



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

* Re: Confusing completion for buffer names
  2010-06-17 19:26 Confusing completion for buffer names Richard Stallman
@ 2010-06-18  5:52 ` Stefan Monnier
  2010-06-18 23:47   ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Stefan Monnier @ 2010-06-18  5:52 UTC (permalink / raw)
  To: rms; +Cc: emacs-devel

> If there is no buffer name starting with `*l', I want it to say
> `[No match]' -- not give me `*mail*'.

One way to do that would be to have read-buffer change
`completion-styles'.  E.g. it could replace partial-completion by
substring (which I think is also more useful for buffer completion).


        Stefan



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

* Re: Confusing completion for buffer names
  2010-06-18  5:52 ` Stefan Monnier
@ 2010-06-18 23:47   ` Richard Stallman
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2010-06-18 23:47 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-devel

    > If there is no buffer name starting with `*l', I want it to say
    > `[No match]' -- not give me `*mail*'.

    One way to do that would be to have read-buffer change
    `completion-styles'.  E.g. it could replace partial-completion by
    substring (which I think is also more useful for buffer completion).

That would do the job.  However, I think the general change I proposed
is better.  It is, "If a * can be interpreted as a literal match,
interpret it that way.  Otherwise it can be the special completion feature."



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

end of thread, other threads:[~2010-06-18 23:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-17 19:26 Confusing completion for buffer names Richard Stallman
2010-06-18  5:52 ` Stefan Monnier
2010-06-18 23:47   ` Richard Stallman

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