all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, 9591@debbugs.gnu.org
Subject: bug#9591: 24.0.50; buffer name completion
Date: Mon, 26 Sep 2011 01:35:50 -0400	[thread overview]
Message-ID: <E1R83r4-0004ox-BF@fencepost.gnu.org> (raw)
In-Reply-To: <jwvoby8cdey.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Sun, 25 Sep 2011 21:18:30 -0400)

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Sun, 25 Sep 2011 21:18:30 -0400
> Cc: 9591@debbugs.gnu.org
> 
> > If I type C-x k mes TAB, it completes to ` *message-viewer RMAIL'.
> 
> Hmm... that's probably a bug of the `substring' completion-style

But `substring' is not in the default value of completion-styles.  So
how does it come into play here?

By the way, this documentation of the `emacs22' style:

  Prefix completion that only operates on the text before point.
  I.e. when completing "foo_bar" (where _ is the position of point),
  it will consider all completions candidates matching the glob
  pattern "foo*" and will add back "bar" to the end of it.

and a similar doc string of `basic', are either inaccurate/wrong (it
never tells explicitly whether the "glob pattern" is interpreted as
starting at the beginning of each candidate, but if it doesn't, why
talk about "prefix"?), or there's a bug in the implementation of these
styles, because I just customized completion-styles to include only
one style, either `emacs22' or `basic', and I still see that "C-x b
Mes TAB" completes to "*Messages*".  Did I do something wrong?

If these completion styles are _supposed_ to match the "glob pattern"
not only at the beginning, then we should have an additional style
that does.

I think that fixing this will go a long way towards resolving
Richard's problem, because he will then be able to customize
completion-styles and have what he wants: the traditional, less
"imaginative", but much more predictable style of completion.

P.S. FWIW, I have no problems with the default completion operation,
but that's me.





  reply	other threads:[~2011-09-26  5:35 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-24 12:28 bug#9591: 24.0.50; buffer name completion Richard Stallman
2011-09-24 18:44 ` Chong Yidong
2011-09-24 23:52   ` Richard Stallman
2011-09-25  0:19     ` Lars Magne Ingebrigtsen
2011-09-25  8:35       ` Andreas Schwab
2011-09-25 17:34       ` Richard Stallman
2011-09-25 17:52         ` Lars Magne Ingebrigtsen
2011-09-26  1:00           ` Richard Stallman
2011-09-25 18:45         ` Drew Adams
2011-09-25  1:04     ` Chong Yidong
2011-09-25 17:34       ` Richard Stallman
2011-09-29 22:02   ` Stefan Monnier
2011-09-29 22:39     ` Lars Ingebrigtsen
2011-09-30 21:03       ` Richard Stallman
2011-09-30  6:42     ` Eli Zaretskii
2011-09-30 19:39       ` Stefan Monnier
2011-10-01 14:05         ` Richard Stallman
2011-10-01 14:15           ` Eli Zaretskii
2011-10-01 20:54             ` Richard Stallman
2011-10-02  0:27               ` Stefan Monnier
2011-09-26  1:18 ` Stefan Monnier
2011-09-26  5:35   ` Eli Zaretskii [this message]
2011-09-26  7:56     ` Stephen Berman
2011-09-26  8:42       ` Eli Zaretskii
2011-09-27 17:45         ` Drew Adams
2011-09-27 18:52         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1R83r4-0004ox-BF@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=9591@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rms@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.