From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vivek Dasmohapatra Newsgroups: gmane.emacs.bugs Subject: bug#15362: 24.1; pcomplete unnecessarily restricts tab-completion entry points Date: Fri, 13 Sep 2013 13:29:13 +0100 (BST) Message-ID: References: <8761u5v541.fsf@noise.cbg.collabora.co.uk> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-198099879-1379075353=:7157" X-Trace: ger.gmane.org 1379075442 30799 80.91.229.3 (13 Sep 2013 12:30:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Sep 2013 12:30:42 +0000 (UTC) Cc: 15362@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Sep 13 14:30:45 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 1VKSWI-0007Qf-L1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 14:30:42 +0200 Original-Received: from localhost ([::1]:46810 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKSWI-0002I3-7k for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 08:30:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKSVn-0001VR-EV for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 08:30:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKSVg-0005zp-5E for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 08:30:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52827) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKSVg-0005ys-2o for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 08:30:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VKSVe-00067Q-D6 for bug-gnu-emacs@gnu.org; Fri, 13 Sep 2013 08:30:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vivek Dasmohapatra Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 13 Sep 2013 12:30:02 +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.137907536523443 (code B ref 15362); Fri, 13 Sep 2013 12:30:02 +0000 Original-Received: (at 15362) by debbugs.gnu.org; 13 Sep 2013 12:29:25 +0000 Original-Received: from localhost ([127.0.0.1]:32884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKSV2-000663-Gx for submit@debbugs.gnu.org; Fri, 13 Sep 2013 08:29:24 -0400 Original-Received: from flounder.pepperfish.net ([89.238.129.35]:44529 ident=KMeR2erRtWr) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VKSUv-00065n-3m for 15362@debbugs.gnu.org; Fri, 13 Sep 2013 08:29:22 -0400 Original-Received: from localhost ([127.0.0.1]) by flounder.pepperfish.net with esmtps (Exim 4.71 #1 (Debian)) id 1VKSUr-0007iL-Ue; Fri, 13 Sep 2013 13:29:14 +0100 X-X-Sender: vivek@octopus.pepperfish.net In-Reply-To: User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) 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:78335 Archived-At: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-198099879-1379075353=:7157 Content-Type: TEXT/PLAIN; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE > 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"? emacs -Q customise the erc group, make sure erc-pcomplete is on (it should be) customise erc-complete-functions, add erc-pcomplete to the head of that list M-x erc RET =E2=80=A6 ; connect to freenode, enter #emacs j TAB ; big list of nicks beginning with jpops up l TAB ; unconditionally completes to whichever jl=E2=80=A6 nick ; was at the head of the list. Analaysis: TAB =E2=86=92 completion-at-point completion-at-point =E2=86=92 completion-at-point-functions completion-at-point-functions =E2=86=92 erc-complete-word-at-point erc-complete-word-at-point =E2=86=92 (run-hook-with-args-until-success 'erc-complete-functions) erc-complete-functions =E2=86=92 erc-pcomplete erc-pcomplete =E2=86=92 (call-interactively 'pcomplete) pcomplete =E2=86=92 (memq last-command '(pcomplete pcomplete-expand-and-complete pcomplete-reverse) The above test controls entry into the cycling code. --8323329-198099879-1379075353=:7157--