From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#15362: 24.1; pcomplete unnecessarily restricts tab-completion entry points Date: Thu, 12 Sep 2013 23:35:38 -0400 Message-ID: References: <8761u5v541.fsf@noise.cbg.collabora.co.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379043384 3853 80.91.229.3 (13 Sep 2013 03:36:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Sep 2013 03:36:24 +0000 (UTC) Cc: 15362@debbugs.gnu.org To: Vivek Dasmohapatra Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 13 05:36:25 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VKKB9-0005Rq-N5 for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 05:36:19 +0200 Original-Received: from localhost ([::1]:44611 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKKB9-0003QE-9Y for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Sep 2013 23:36:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKKAz-0003Pk-TY for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2013 23:36:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKKAs-000898-Js for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2013 23:36:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52043) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKKAs-000891-Gc for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2013 23:36:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VKKAs-00067w-1r for bug-gnu-emacs@gnu.org; Thu, 12 Sep 2013 23:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2013 03:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15362 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15362-submit@debbugs.gnu.org id=B15362.137904334723524 (code B ref 15362); Fri, 13 Sep 2013 03:36:01 +0000 Original-Received: (at 15362) by debbugs.gnu.org; 13 Sep 2013 03:35:47 +0000 Original-Received: from localhost ([127.0.0.1]:60336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKKAc-00067L-S8 for submit@debbugs.gnu.org; Thu, 12 Sep 2013 23:35:47 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:35092) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKKAa-000676-Px for 15362@debbugs.gnu.org; Thu, 12 Sep 2013 23:35:45 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av4EABK/CFG4rxBo/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2NGYNxA6R6gV6DE4FK X-IPAS-Result: Av4EABK/CFG4rxBo/2dsb2JhbABEvw4Xc4IeAQEEAVYjBQsLNBIUGA0kiB4GwS2NGYNxA6R6gV6DE4FK X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="27588199" Original-Received: from 184-175-16-104.dsl.teksavvy.com (HELO pastel.home) ([184.175.16.104]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 12 Sep 2013 23:32:07 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 80B1162E78; Thu, 12 Sep 2013 23:35:38 -0400 (EDT) In-Reply-To: <8761u5v541.fsf@noise.cbg.collabora.co.uk> (Vivek Dasmohapatra's message of "Fri, 13 Sep 2013 03:15:58 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:78310 Archived-At: > In an erc buffer, I tried to tab-complete a nick: The initial tab completion > showed many possibilities - I typed an extra character, which should have > limited it to a small enough number for tab-completion-cycling to kick in... > but instead TAB just unconditionally completed to the first of the remaining > candidates, and never offered me the chance to pick any of the others. > It turns out that pcomplete assumes that the interactive entry point > (activating command) can only ever be one of a handful of commands, > and specifically checks for those when deciding whether to enter the > code path that starts cycling through the remaining completions. Hmm... but in Emacs-24.1, ERC does not use the `pcomplete' command to do the completion but completion-at-point (which ends up calling pcomplete-completions-at-point to get pcomplete to return the set of completions). So if cycling is to take place, it should presumably not be done by pcomplete but by completion-at-point (e.g. obeying completion-cycle-threshold). IOW, I don't understand how your patch can fix your problem. Can you provide a reproducible recipe starting from "emacs -Q"? Stefan