emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: address@hidden: Partial completion]


From: Nick Roberts
Subject: Re: address@hidden: Partial completion]
Date: Sun, 25 Feb 2007 17:24:20 +1300

 > 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 via email to

[Prev in Thread] Current Thread [Next in Thread]