From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#9591: 24.0.50; buffer name completion Date: Mon, 26 Sep 2011 01:35:50 -0400 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1317015392 20846 80.91.229.12 (26 Sep 2011 05:36:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 26 Sep 2011 05:36:32 +0000 (UTC) Cc: rms@gnu.org, 9591@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 26 07:36:28 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R83rc-0004eF-T1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Sep 2011 07:36:25 +0200 Original-Received: from localhost ([::1]:33482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R83rc-00075V-AL for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Sep 2011 01:36:24 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:54788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R83rZ-00074t-Td for bug-gnu-emacs@gnu.org; Mon, 26 Sep 2011 01:36:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R83rY-0008FB-OA for bug-gnu-emacs@gnu.org; Mon, 26 Sep 2011 01:36:21 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R83rY-0008F7-MY for bug-gnu-emacs@gnu.org; Mon, 26 Sep 2011 01:36:20 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1R83sD-000703-QU for bug-gnu-emacs@gnu.org; Mon, 26 Sep 2011 01:37:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 Sep 2011 05:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9591 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9591-submit@debbugs.gnu.org id=B9591.131701540326880 (code B ref 9591); Mon, 26 Sep 2011 05:37:01 +0000 Original-Received: (at 9591) by debbugs.gnu.org; 26 Sep 2011 05:36:43 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R83ru-0006zU-9w for submit@debbugs.gnu.org; Mon, 26 Sep 2011 01:36:43 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R83rq-0006zK-P1 for 9591@debbugs.gnu.org; Mon, 26 Sep 2011 01:36:40 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1R83r4-0004ox-BF; Mon, 26 Sep 2011 01:35:50 -0400 In-reply-to: (message from Stefan Monnier on Sun, 25 Sep 2011 21:18:30 -0400) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 26 Sep 2011 01:37:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:51861 Archived-At: > From: Stefan Monnier > 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.