all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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