unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Nick Roberts <nickrob@snap.net.nz>
To: martin rudalics <rudalics@gmx.at>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: [bojohan+mail@dd.chalmers.se: Partial completion]
Date: Sun, 25 Feb 2007 17:24:20 +1300	[thread overview]
Message-ID: <17889.3956.99614.392821@kahikatea.snap.net.nz> (raw)
In-Reply-To: <45E0979B.2020006@gmx.at>

 > Please try the attached patch instead.  It's simpler and should take
 > care of the remaining problems.
 > *** complete.el	Tue Jan 23 07:40:00 2007
 > --- complete.el	Sat Feb 24 20:46:14 2007
 > ***************
 > *** 383,388 ****
 > --- 383,393 ----
 >       (let ((completion-ignore-case nil))
 >         (test-completion str table pred))))
 > 
 > + (defun try-completion-old (string alist &optional predicate)
 > +   "Like `try-completion' but return empty string instead of t."
 > +   (let ((result (try-completion string alist predicate)))
 > +     (if (eq result t) "" result)))
 >...

I don't use partial completion (complete.el) so the OP will have to test it.
However the above function is not equivalent to the old try-completion e.g

old (try-completion "" '((""))) returns t

(try-completion-old "" '((""))) returns ""

-- 
Nick                                           http://www.inet.net.nz/~nickrob

  reply	other threads:[~2007-02-25  4:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-24  8:28 [bojohan+mail@dd.chalmers.se: Partial completion] Richard Stallman
2007-02-24 11:57 ` Nick Roberts
2007-02-24 13:46   ` martin rudalics
2007-02-24 19:52   ` martin rudalics
2007-02-25  4:24     ` Nick Roberts [this message]
2007-02-25  9:31       ` martin rudalics
2007-02-25 19:30       ` Richard Stallman
2007-02-26 20:28         ` Nick Roberts
2007-03-02  1:24     ` Johan Bockgård
2007-03-08 20:44     ` Chong Yidong
2007-03-08 22:34       ` martin rudalics
2007-03-08 23:01         ` Chong Yidong
2007-03-09 16:20       ` Richard Stallman

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=17889.3956.99614.392821@kahikatea.snap.net.nz \
    --to=nickrob@snap.net.nz \
    --cc=emacs-devel@gnu.org \
    --cc=rms@gnu.org \
    --cc=rudalics@gmx.at \
    /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 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).