From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: completion-all-completions-with-base-size Date: Sat, 18 Oct 2008 21:59:37 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224381594 22904 80.91.229.12 (19 Oct 2008 01:59:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Oct 2008 01:59:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 19 04:00:59 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KrNbG-000764-VB for ged-emacs-devel@m.gmane.org; Sun, 19 Oct 2008 04:00:59 +0200 Original-Received: from localhost ([127.0.0.1]:39489 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrNaB-0006zk-Qm for ged-emacs-devel@m.gmane.org; Sat, 18 Oct 2008 21:59:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrNa5-0006zf-6r for emacs-devel@gnu.org; Sat, 18 Oct 2008 21:59:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrNa2-0006zT-O8 for emacs-devel@gnu.org; Sat, 18 Oct 2008 21:59:43 -0400 Original-Received: from [199.232.76.173] (port=57226 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrNa2-0006zQ-Kj for emacs-devel@gnu.org; Sat, 18 Oct 2008 21:59:42 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:28814 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KrNa0-0003RX-O9; Sat, 18 Oct 2008 21:59:40 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiUFALsx+khMCpQ6/2dsb2JhbACBcr8Zg2yBCg X-IronPort-AV: E=Sophos;i="4.33,441,1220241600"; d="scan'208";a="28565046" Original-Received: from 76-10-148-58.dsl.teksavvy.com (HELO pastel.home) ([76.10.148.58]) by ironport2-out.teksavvy.com with ESMTP; 18 Oct 2008 21:59:37 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 462EF7F20; Sat, 18 Oct 2008 21:59:37 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Sun, 19 Oct 2008 00:07:34 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104617 Archived-At: >> >> > so it sounds like the above NEWS entry does not warrant any >> >> > documentation in the manuals? Why then it was added to NEWS? >> >> >> >> Because some functions may call all-completions in a context where >> >> someone has set completion-all-completions-with-base-size >> >> (e.g. when all-completions is used internally by a functional >> >> completion table), in which case it may be surprised by the extra `cdr' >> >> (which could cause `length' or `mapcar' to signal an error). >> >> > Well, I'm probably missing something, because I couldn't see how what >> > all-completions returns could depend on >> > completion-all-completions-with-base-size. Please help me >> > understand that. >> >> Again, it's only in the case where the completion table is a function, >> and only if that function depends on >> completion-all-completions-with-base-size. > If these are the only situations, then I don't think > completion-all-completions-with-base-size warrants to be documented in > the ELisp manual. Whoever uses functions from minibuffer.el for > completion tables ought to know about this variable and its role. As mentioned, I hope it'll actually disappear. But in the mean time, the effect of completion-all-completions-with-base-size can sometimes be exposed to code which knows nothing about the new minibuffer.el code. Stefan