From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/72509 Path: news.gmane.org!not-for-mail From: Dave Goldberg Newsgroups: gmane.emacs.gnus.general Subject: Re: gnus-completing-read vs XEmacs 21.4 Date: Mon, 04 Oct 2010 12:31:32 -0400 Message-ID: <84d3rply1n.fsf@davestoy.home> References: <84bp7aujik.fsf@davestoy.home> <8462xiugqp.fsf@davestoy.home> <84zkuut1bj.fsf@davestoy.home> <84iq1ikkpp.fsf@davestoy.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1286209957 4882 80.91.229.12 (4 Oct 2010 16:32:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 4 Oct 2010 16:32:37 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M20881@lists.math.uh.edu Mon Oct 04 18:32:36 2010 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P2nxq-0007M5-KK for ding-account@gmane.org; Mon, 04 Oct 2010 18:32:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1P2nxe-0006y7-E5; Mon, 04 Oct 2010 11:32:22 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1P2nxc-0006xj-Tu for ding@lists.math.uh.edu; Mon, 04 Oct 2010 11:32:20 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1P2nxb-0003Dq-Qg for ding@lists.math.uh.edu; Mon, 04 Oct 2010 11:32:20 -0500 Original-Received: from vms173003pub.verizon.net ([206.46.173.3]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1P2nxa-0006wz-00 for ; Mon, 04 Oct 2010 18:32:19 +0200 Original-Received: from davestoy.home.verizon.net ([unknown] [173.48.216.252]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L9R003LWXWF2P61@vms173003.mailsrvcs.net> for ding@gnus.org; Mon, 04 Oct 2010 11:31:29 -0500 (CDT) X-Face: W!bie|rYVd43O:2CkHTb*~s5}Yzx30X<@6Tq_bnP56Hp!xX4sVl4tgYRirjRcke\wfY!JJ9 i?]VIUJicJzq2\!3%7$5R%wi!R[.]Va97q In-reply-to: (Lawrence Mitchell's message of "Mon, 04 Oct 2010 17:25:09 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.4.22 (linux) X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:72509 Archived-At: > This is almost certainly because old (for some value of old) > versions of Emacs and XEmacs expect the second value of > try-completion to be an alist and the car of each element is > checked for matching. [...] I'm running 21.4 (patch 22) "Instant Classic" XEmacs Lucid which I understand is current stable. The doc string for try-completion says `try-completion' is a built-in function (try-completion STRING COLLECTION &optional PREDICATE) Documentation: Return common substring of all completions of STRING in COLLECTION. COLLECTION must be an alist, an obarray, or a function. Each string in COLLECTION is tested to see if it begins with STRING. All that match are compared together; the longest initial sequence common to all matches is returned as a string. If there is no match at all, nil is returned. For an exact match, t is returned. If COLLECTION is an alist, the cars of the elements of the alist (which must be strings) form the set of possible completions. If COLLECTION is an obarray, the names of all symbols in the obarray are the possible completions. If COLLECTION is a function, it is called with three arguments: the values STRING, PREDICATE and nil. Whatever it returns becomes the value of `try-completion'. If optional third argument PREDICATE is non-nil, it is used to test each possible match. The match is a candidate only if PREDICATE returns non-nil. The argument given to PREDICATE is the alist element or the symbol from the obarray. -- Dave Goldberg david.goldberg6@verizon.net