unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: bojohan+news@dd.chalmers.se (Johan Bockgård)
Subject: Re: change to try-completion behavior in 21.3?
Date: Sat, 17 Dec 2005 07:49:54 +0100	[thread overview]
Message-ID: <yoijfyos9q0d.fsf@linus003.dd.chalmers.se> (raw)
In-Reply-To: 87irtopi9u.fsf-monnier+gnu.emacs.help@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> Why should it ever return the capital letter W?
>
> Because in your completion table, you have "W".

"w" was also in the table.

This change

  revision 1.237
  date: 2002-04-09 19:28:42 +0000;  author: monnier;  state: Exp; lines: +89 -47 [...]
  (Ftry_completion): Allow lambda forms and lists of strings for
  `alist'.
  Short-circuit the search as soon as it "failed". [...]

added this piece of code (approximately)

  if (matchsize <= SCHARS (string)
      && matchcount > 1)
    /* No need to look any further.  */
    break;

When completion-ignore-case is t this doesn't necessarily find the
best match _including case_ (AFAICS).

-- 
Johan Bockgård

  reply	other threads:[~2005-12-17  6:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-16  2:32 change to try-completion behavior in 21.3? bigfaceworm
2005-12-16  8:22 ` Anselm Helbig
2005-12-16 18:21   ` bigfaceworm
2005-12-18 21:05     ` Anselm Helbig
2005-12-17  2:33 ` Stefan Monnier
2005-12-17  6:49   ` Johan Bockgård [this message]
2005-12-17  9:27     ` Stefan Monnier
2005-12-17 18:30       ` bigfaceworm
2005-12-18 15:32         ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=yoijfyos9q0d.fsf@linus003.dd.chalmers.se \
    --to=bojohan+news@dd.chalmers.se \
    /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.
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).