GNU bug report logs - #15362
24.1; pcomplete unnecessarily restricts tab-completion entry points

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Vivek Dasmohapatra <vivek@HIDDEN>; dated Fri, 13 Sep 2013 02:17:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 15362 <at> debbugs.gnu.org:


Received: (at 15362) by debbugs.gnu.org; 14 Sep 2013 00:00:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 13 20:00:40 2013
Received: from localhost ([127.0.0.1]:35027 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VKdHz-0008BH-Co
	for submit <at> debbugs.gnu.org; Fri, 13 Sep 2013 20:00:39 -0400
Received: from flounder.pepperfish.net ([89.238.129.35]:60514
 ident=Ti0HCOJonse) by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <vivek@HIDDEN>) id 1VKdHt-0008B4-Ld
 for 15362 <at> debbugs.gnu.org; Fri, 13 Sep 2013 20:00:34 -0400
Received: from localhost ([127.0.0.1])
 by flounder.pepperfish.net with esmtps (Exim 4.71 #1 (Debian))
 id 1VKdHq-0008MK-OW; Sat, 14 Sep 2013 01:00:30 +0100
Date: Sat, 14 Sep 2013 01:00:28 +0100 (BST)
From: Vivek Dasmohapatra <vivek@HIDDEN>
X-X-Sender: vivek@HIDDEN
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#15362: 24.1; pcomplete unnecessarily restricts tab-completion
 entry points
In-Reply-To: <jwvk3ikpxa6.fsf-monnier+emacs@HIDDEN>
Message-ID: <alpine.DEB.2.00.1309140052250.7157@HIDDEN>
References: <8761u5v541.fsf@HIDDEN>
 <jwvmwnhs8jp.fsf-monnier+emacs@HIDDEN>
 <alpine.DEB.2.00.1309131319180.7157@HIDDEN>
 <jwvvc24q292.fsf-monnier+emacs@HIDDEN>
 <alpine.DEB.2.00.1309131448460.7157@HIDDEN>
 <jwvk3ikpxa6.fsf-monnier+emacs@HIDDEN>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 15362
Cc: 15362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

> Have you set completion-cycle-threshold?  If yes and it still doesn't
> cycle, please post a recipe.

With the recipe as before, but _without_ erc-pcomplete at the head
of erc-complete-functions so the value is:

   '(erc-pcompletions-at-point erc-button-next-function)

And with completion-cycle-threshold set to 5, I get the following from 
repeatedly tabbing:

ERC> jlf: jlf_``: jlindsay: jlf: jlf_``: jlindsay: jlf:

so instead of cycling it's just adding the next element from the 
matching candidates list each time.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15362; Package emacs. Full text available.

Message received at 15362 <at> debbugs.gnu.org:


Received: (at 15362) by debbugs.gnu.org; 13 Sep 2013 15:17:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 13 11:17:27 2013
Received: from localhost ([127.0.0.1]:33965 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VKV7f-00037T-1A
	for submit <at> debbugs.gnu.org; Fri, 13 Sep 2013 11:17:27 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:50734)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1VKV7e-00037F-4n
 for 15362 <at> debbugs.gnu.org; Fri, 13 Sep 2013 11:17:26 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av4EABK/CFG4rxBo/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA6R6gV6DEw
X-IPAS-Result: Av4EABK/CFG4rxBo/2dsb2JhbABEvw4Xc4IeAQEEAVYjEAs0EhQYDSSIHgbBLZEKA6R6gV6DEw
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="27634768"
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;
 13 Sep 2013 11:13:47 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 43E3162CD8; Fri, 13 Sep 2013 11:17:20 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Vivek Dasmohapatra <vivek@HIDDEN>
Subject: Re: bug#15362: 24.1;
 pcomplete unnecessarily restricts tab-completion entry points
Message-ID: <jwvk3ikpxa6.fsf-monnier+emacs@HIDDEN>
References: <8761u5v541.fsf@HIDDEN>
 <jwvmwnhs8jp.fsf-monnier+emacs@HIDDEN>
 <alpine.DEB.2.00.1309131319180.7157@HIDDEN>
 <jwvvc24q292.fsf-monnier+emacs@HIDDEN>
 <alpine.DEB.2.00.1309131448460.7157@HIDDEN>
Date: Fri, 13 Sep 2013 11:17:20 -0400
In-Reply-To: <alpine.DEB.2.00.1309131448460.7157@HIDDEN>
 (Vivek Dasmohapatra's message of "Fri, 13 Sep 2013 14:50:08 +0100
 (BST)")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 15362
Cc: 15362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

>>> customise the erc group, make sure erc-pcomplete is on (it
>>> should be)
>> Ah, that's the trick.  Any reason why you do that?  The default should
>> already give you almost the same behavior.
> It seems to always pop a buffer rather than cycling.
> Haven't figured out why yet.

Have you set completion-cycle-threshold?  If yes and it still doesn't
cycle, please post a recipe.


        Stefan




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15362; Package emacs. Full text available.

Message received at 15362 <at> debbugs.gnu.org:


Received: (at 15362) by debbugs.gnu.org; 13 Sep 2013 14:03:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 13 10:03:59 2013
Received: from localhost ([127.0.0.1]:33813 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VKTyY-0000EU-7d
	for submit <at> debbugs.gnu.org; Fri, 13 Sep 2013 10:03:58 -0400
Received: from flounder.pepperfish.net ([89.238.129.35]:42194
 ident=t391drcm486) by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <vivek@HIDDEN>) id 1VKTyV-0000EL-AM
 for 15362 <at> debbugs.gnu.org; Fri, 13 Sep 2013 10:03:55 -0400
Received: from localhost ([127.0.0.1])
 by flounder.pepperfish.net with esmtps (Exim 4.71 #1 (Debian))
 id 1VKTyU-0000DW-4f; Fri, 13 Sep 2013 15:03:54 +0100
Date: Fri, 13 Sep 2013 15:03:53 +0100 (BST)
From: Vivek Dasmohapatra <vivek@HIDDEN>
X-X-Sender: vivek@HIDDEN
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#15362: 24.1; pcomplete unnecessarily restricts tab-completion
 entry points
In-Reply-To: <jwvvc24q292.fsf-monnier+emacs@HIDDEN>
Message-ID: <alpine.DEB.2.00.1309131503200.7157@HIDDEN>
References: <8761u5v541.fsf@HIDDEN>
 <jwvmwnhs8jp.fsf-monnier+emacs@HIDDEN>
 <alpine.DEB.2.00.1309131319180.7157@HIDDEN>
 <jwvvc24q292.fsf-monnier+emacs@HIDDEN>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 15362
Cc: 15362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

> Also does the patch below fix your problem?

Confirmed, restores tab-completion-cycling via erc-pcomplete.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15362; Package emacs. Full text available.

Message received at 15362 <at> debbugs.gnu.org:


Received: (at 15362) by debbugs.gnu.org; 13 Sep 2013 13:50:15 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 13 09:50:15 2013
Received: from localhost ([127.0.0.1]:33144 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VKTlG-0008Da-Oq
	for submit <at> debbugs.gnu.org; Fri, 13 Sep 2013 09:50:14 -0400
Received: from flounder.pepperfish.net ([89.238.129.35]:43701
 ident=w93mOK93uvL) by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <vivek@HIDDEN>) id 1VKTlE-0008DM-6n
 for 15362 <at> debbugs.gnu.org; Fri, 13 Sep 2013 09:50:13 -0400
Received: from localhost ([127.0.0.1])
 by flounder.pepperfish.net with esmtps (Exim 4.71 #1 (Debian))
 id 1VKTlB-0005v6-EA; Fri, 13 Sep 2013 14:50:09 +0100
Date: Fri, 13 Sep 2013 14:50:08 +0100 (BST)
From: Vivek Dasmohapatra <vivek@HIDDEN>
X-X-Sender: vivek@HIDDEN
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#15362: 24.1; pcomplete unnecessarily restricts tab-completion
 entry points
In-Reply-To: <jwvvc24q292.fsf-monnier+emacs@HIDDEN>
Message-ID: <alpine.DEB.2.00.1309131448460.7157@HIDDEN>
References: <8761u5v541.fsf@HIDDEN>
 <jwvmwnhs8jp.fsf-monnier+emacs@HIDDEN>
 <alpine.DEB.2.00.1309131319180.7157@HIDDEN>
 <jwvvc24q292.fsf-monnier+emacs@HIDDEN>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 15362
Cc: 15362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

On Fri, 13 Sep 2013, Stefan Monnier wrote:

>>   customise the erc group, make sure erc-pcomplete is on (it
>>   should be)
>
> Ah, that's the trick.  Any reason why you do that?  The default should
> already give you almost the same behavior.

It seems to always pop a buffer rather than cycling. Haven't
figured out why yet.

> Also does the patch below fix your problem?

Not tested yet, but it looks like it should work, yes.
Will confirm shortly.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15362; Package emacs. Full text available.

Message received at 15362 <at> debbugs.gnu.org:


Received: (at 15362) by debbugs.gnu.org; 13 Sep 2013 13:32:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 13 09:32:34 2013
Received: from localhost ([127.0.0.1]:33047 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VKTU9-0007k8-KU
	for submit <at> debbugs.gnu.org; Fri, 13 Sep 2013 09:32:34 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:6445)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1VKTU7-0007js-GO
 for 15362 <at> debbugs.gnu.org; Fri, 13 Sep 2013 09:32:32 -0400
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Av8EABK/CFG4rxBo/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw
X-IPAS-Result: Av8EABK/CFG4rxBo/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0EhQYDSSIHgbBLZEKA6R6gV6DEw
X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="27624274"
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;
 13 Sep 2013 09:28:53 -0400
Received: by pastel.home (Postfix, from userid 20848)
 id 6FEE662E33; Fri, 13 Sep 2013 09:32:25 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Vivek Dasmohapatra <vivek@HIDDEN>
Subject: Re: bug#15362: 24.1;
 pcomplete unnecessarily restricts tab-completion entry points
Message-ID: <jwvvc24q292.fsf-monnier+emacs@HIDDEN>
References: <8761u5v541.fsf@HIDDEN>
 <jwvmwnhs8jp.fsf-monnier+emacs@HIDDEN>
 <alpine.DEB.2.00.1309131319180.7157@HIDDEN>
Date: Fri, 13 Sep 2013 09:32:25 -0400
In-Reply-To: <alpine.DEB.2.00.1309131319180.7157@HIDDEN>
 (Vivek Dasmohapatra's message of "Fri, 13 Sep 2013 13:29:13 +0100
 (BST)")
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 15362
Cc: 15362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

>   customise the erc group, make sure erc-pcomplete is on (it
>   should be)

Ah, that's the trick.  Any reason why you do that?  The default should
already give you almost the same behavior.

Also does the patch below fix your problem?


        Stefan


=== modified file 'lisp/erc/erc-pcomplete.el'
--- lisp/erc/erc-pcomplete.el	2013-01-02 16:13:04 +0000
+++ lisp/erc/erc-pcomplete.el	2013-09-13 13:30:27 +0000
@@ -82,10 +82,8 @@
   "Complete the nick before point."
   (interactive)
   (when (> (point) (erc-beg-of-input-line))
-    (let ((last-command (if (eq last-command 'erc-complete-word)
-                            'pcomplete
-                          last-command)))
-      (call-interactively 'pcomplete))
+    (setq this-command 'pcomplete)
+    (call-interactively 'pcomplete)
     t))
 
 ;;; Setup function





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15362; Package emacs. Full text available.

Message received at 15362 <at> debbugs.gnu.org:


Received: (at 15362) by debbugs.gnu.org; 13 Sep 2013 12:29:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Sep 13 08:29:25 2013
Received: from localhost ([127.0.0.1]:32884 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VKSV2-000663-Gx
	for submit <at> debbugs.gnu.org; Fri, 13 Sep 2013 08:29:24 -0400
Received: from flounder.pepperfish.net ([89.238.129.35]:44529
 ident=KMeR2erRtWr) by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <vivek@HIDDEN>) id 1VKSUv-00065n-3m
 for 15362 <at> debbugs.gnu.org; Fri, 13 Sep 2013 08:29:22 -0400
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
Date: Fri, 13 Sep 2013 13:29:13 +0100 (BST)
From: Vivek Dasmohapatra <vivek@HIDDEN>
X-X-Sender: vivek@HIDDEN
To: Stefan Monnier <monnier@HIDDEN>
Subject: Re: bug#15362: 24.1; pcomplete unnecessarily restricts tab-completion
 entry points
In-Reply-To: <jwvmwnhs8jp.fsf-monnier+emacs@HIDDEN>
Message-ID: <alpine.DEB.2.00.1309131319180.7157@HIDDEN>
References: <8761u5v541.fsf@HIDDEN>
 <jwvmwnhs8jp.fsf-monnier+emacs@HIDDEN>
User-Agent: Alpine 2.00 (DEB 1167 2008-08-23)
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="8323329-198099879-1379075353=:7157"
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 15362
Cc: 15362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

  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--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15362; Package emacs. Full text available.

Message received at 15362 <at> debbugs.gnu.org:


Received: (at 15362) by debbugs.gnu.org; 13 Sep 2013 03:35:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 12 23:35:47 2013
Received: from localhost ([127.0.0.1]:60336 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VKKAc-00067L-S8
	for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 23:35:47 -0400
Received: from ironport2-out.teksavvy.com ([206.248.154.182]:35092)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <monnier@HIDDEN>) id 1VKKAa-000676-Px
 for 15362 <at> 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"
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
Received: by pastel.home (Postfix, from userid 20848)
 id 80B1162E78; Thu, 12 Sep 2013 23:35:38 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Vivek Dasmohapatra <vivek@HIDDEN>
Subject: Re: bug#15362: 24.1;
 pcomplete unnecessarily restricts tab-completion entry points
Message-ID: <jwvmwnhs8jp.fsf-monnier+emacs@HIDDEN>
References: <8761u5v541.fsf@HIDDEN>
Date: Thu, 12 Sep 2013 23:35:38 -0400
In-Reply-To: <8761u5v541.fsf@HIDDEN> (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)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 15362
Cc: 15362 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.3 (/)

> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#15362; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Sep 2013 02:16:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 12 22:16:26 2013
Received: from localhost ([127.0.0.1]:60224 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VKIvp-00048I-48
	for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 22:16:26 -0400
Received: from eggs.gnu.org ([208.118.235.92]:42886)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <vivek@HIDDEN>) id 1VKIvn-000480-95
 for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 22:16:24 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <vivek@HIDDEN>) id 1VKIvb-0004Lm-Q3
 for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 22:16:17 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:45971)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <vivek@HIDDEN>) id 1VKIvb-0004Lh-N3
 for submit <at> debbugs.gnu.org; Thu, 12 Sep 2013 22:16:11 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:44593)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <vivek@HIDDEN>) id 1VKIvW-0002fM-Je
 for bug-gnu-emacs@HIDDEN; Thu, 12 Sep 2013 22:16:11 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <vivek@HIDDEN>) id 1VKIvR-0004Kb-AK
 for bug-gnu-emacs@HIDDEN; Thu, 12 Sep 2013 22:16:06 -0400
Received: from 87-127-114-209.static.enta.net ([87.127.114.209]:54237
 helo=noise.cbg.collabora.co.uk)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <vivek@HIDDEN>) id 1VKIvQ-0004KK-TI
 for bug-gnu-emacs@HIDDEN; Thu, 12 Sep 2013 22:16:01 -0400
Received: from localhost.elements ([127.0.0.1] helo=noise.cbg.collabora.co.uk)
 by noise.cbg.collabora.co.uk with esmtp (Exim 4.80)
 (envelope-from <vivek@HIDDEN>) id 1VKIvO-00005w-Uh
 for bug-gnu-emacs@HIDDEN; Fri, 13 Sep 2013 03:15:59 +0100
From: Vivek Dasmohapatra <vivek@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 24.1; pcomplete unnecessarily restricts tab-completion entry points
Date: Fri, 13 Sep 2013 03:15:58 +0100
Message-ID: <8761u5v541.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

--=-=-=
Content-Type: text/plain

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.

So modes that use pcomplete but define their own commands for tab completion
lose the ability to use pcomplete cycling unless they have
a way of adding themselves to the list of entry points that pcomplete
knows about.


In GNU Emacs 24.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10)
 of 2012-08-23 on noise, modified by Debian
Windowing system distributor `The X.Org Foundation', version 11.0.11204000
Configured using:
 `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu'
 '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib'
 '--localstatedir=/var/lib' '--infodir=/usr/share/info'
 '--mandir=/usr/share/man' '--with-pop=yes'
 '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1/site-lisp:/usr/share/emacs/site-lisp'
 '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes'
 '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector
 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall'
 'CPPFLAGS=-D_FORTIFY_SOURCE=2''

Important settings:
  value of $LC_ALL: en_GB.UTF-8
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_GB.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Diff

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  erc-truncate-mode: t
  erc-track-mode: t
  erc-track-minor-mode: t
  erc-services-mode: t
  erc-ring-mode: t
  erc-networks-mode: t
  erc-netsplit-mode: t
  erc-match-mode: t
  erc-log-mode: t
  erc-pcomplete-mode: t
  erc-button-mode: t
  erc-fill-mode: t
  erc-stamp-mode: t
  erc-autojoin-mode: t
  erc-move-to-prompt-mode: t
  auto-image-file-mode: t
  iswitchb-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<left> m a k e s SPC t h i n s g SPC <M-backspace> 
<M-backspace> <M-backspace> <M-backspace> <M-backspace> 
<down> <backspace> <up> <down> <backspace> <return> 
<up> <return> A t t a c h e d SPC p a t c h SPC h a 
s SPC b e e n SPC i n SPC u s e SPC h e r e SPC <M-backspace> 
<M-backspace> <M-backspace> <M-backspace> <M-backspace> 
f i x e s SPC t h e SPC p r o b l e m SPC f o r SPC 
m e SPC ( 0 <left> i n SPC e r c SPC <right> <backspace> 
) <left> <left> , SPC a n y w a y , SPC o t h e r SPC 
p c o m p l e t e <return> c a l l e r s <right> w 
o u l d SPC r e w q <backspace> <backspace> q u i r 
e SPC a SPC s i m i l a r SPC s m a l SPC f i x <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<left> <left> <left> <left> <left> <left> <left> <left> 
<backspace> : <down> <down> C-c C-c <up> <return> <tab> 
s m <tab> <return> <select-window> <select-window> 
<help-echo> <select-window> l o c <tab> <backspace> 
M-/ <M-backspace> <M-backspace> <M-backspace> <select-window> 
<down-mouse-1> <mouse-movement> <mouse-movement> <drag-mouse-1> 
<select-window> <help-echo> <help-echo> <select-window> 
l o c a l h o s t <return> <select-window> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <select-window> 
<help-echo> <down-mouse-1> <mouse-movement> <mouse-1> 
M-x r e p o r t <tab> <return>

Recent messages:
Sending...
Sending via mail...
Scanning for dabbrevs...done
Saving file /home/vivek/.emacs...
Wrote /home/vivek/.emacs [2 times]
Saving file /home/vivek/.emacs...
Wrote /home/vivek/.emacs [2 times]
Sending email 
Sending email done
Sending...done

Load-path shadows:
/usr/share/emacs/24.1/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup
/usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.1/lisp/textmodes/flyspell
/usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.1/lisp/textmodes/ispell
/home/vivek/.emacs.d/lib/erc-identd hides /usr/share/emacs/24.1/lisp/erc/erc-identd
/home/vivek/.emacs.d/lib/erc-list hides /usr/share/emacs/24.1/lisp/erc/erc-list
/home/vivek/.emacs.d/lib/erc-sound hides /usr/share/emacs/24.1/lisp/erc/erc-sound
/home/vivek/.emacs.d/lib/erc-ring hides /usr/share/emacs/24.1/lisp/erc/erc-ring
/home/vivek/.emacs.d/lib/erc-spelling hides /usr/share/emacs/24.1/lisp/erc/erc-spelling
/home/vivek/.emacs.d/lib/erc-speedbar hides /usr/share/emacs/24.1/lisp/erc/erc-speedbar
/home/vivek/.emacs.d/lib/erc-ibuffer hides /usr/share/emacs/24.1/lisp/erc/erc-ibuffer
/home/vivek/.emacs.d/lib/erc-capab hides /usr/share/emacs/24.1/lisp/erc/erc-capab
/home/vivek/.emacs.d/lib/erc-pcomplete hides /usr/share/emacs/24.1/lisp/erc/erc-pcomplete
/home/vivek/.emacs.d/lib/erc-networks hides /usr/share/emacs/24.1/lisp/erc/erc-networks
/home/vivek/.emacs.d/lib/erc-ezbounce hides /usr/share/emacs/24.1/lisp/erc/erc-ezbounce
/home/vivek/.emacs.d/lib/erc-page hides /usr/share/emacs/24.1/lisp/erc/erc-page
/home/vivek/.emacs.d/lib/erc-menu hides /usr/share/emacs/24.1/lisp/erc/erc-menu
/home/vivek/.emacs.d/lib/erc-replace hides /usr/share/emacs/24.1/lisp/erc/erc-replace
/home/vivek/.emacs.d/lib/erc-imenu hides /usr/share/emacs/24.1/lisp/erc/erc-imenu
/home/vivek/.emacs.d/lib/erc-dcc hides /usr/share/emacs/24.1/lisp/erc/erc-dcc
/home/vivek/.emacs.d/lib/erc-backend hides /usr/share/emacs/24.1/lisp/erc/erc-backend
/home/vivek/.emacs.d/lib/erc-stamp hides /usr/share/emacs/24.1/lisp/erc/erc-stamp
/home/vivek/.emacs.d/lib/erc-services hides /usr/share/emacs/24.1/lisp/erc/erc-services
/home/vivek/.emacs.d/lib/erc-compat hides /usr/share/emacs/24.1/lisp/erc/erc-compat
/home/vivek/.emacs.d/lib/erc-autoaway hides /usr/share/emacs/24.1/lisp/erc/erc-autoaway
/home/vivek/.emacs.d/lib/erc-goodies hides /usr/share/emacs/24.1/lisp/erc/erc-goodies
/home/vivek/.emacs.d/lib/erc-notify hides /usr/share/emacs/24.1/lisp/erc/erc-notify
/home/vivek/.emacs.d/lib/erc-truncate hides /usr/share/emacs/24.1/lisp/erc/erc-truncate
/home/vivek/.emacs.d/lib/erc hides /usr/share/emacs/24.1/lisp/erc/erc
/home/vivek/.emacs.d/lib/erc-button hides /usr/share/emacs/24.1/lisp/erc/erc-button
/home/vivek/.emacs.d/lib/erc-log hides /usr/share/emacs/24.1/lisp/erc/erc-log
/home/vivek/.emacs.d/lib/erc-xdcc hides /usr/share/emacs/24.1/lisp/erc/erc-xdcc
/home/vivek/.emacs.d/lib/erc-match hides /usr/share/emacs/24.1/lisp/erc/erc-match
/home/vivek/.emacs.d/lib/erc-lang hides /usr/share/emacs/24.1/lisp/erc/erc-lang
/home/vivek/.emacs.d/lib/erc-netsplit hides /usr/share/emacs/24.1/lisp/erc/erc-netsplit
/home/vivek/.emacs.d/lib/erc-fill hides /usr/share/emacs/24.1/lisp/erc/erc-fill
/home/vivek/.emacs.d/lib/erc-track hides /usr/share/emacs/24.1/lisp/erc/erc-track
/home/vivek/.emacs.d/lib/erc-join hides /usr/share/emacs/24.1/lisp/erc/erc-join

Features:
(mailalias smtpmail qp shadow sort mail-extr emacsbug message rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader
sendmail diff-mode conf-mode tramp-cache tramp-sh tramp tramp-compat
tramp-loaddefs mule-util info shell debug cus-edit js json imenu
newcomment jka-compr tabulated-list cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs vc-git texinfo
parse-time url-cache gtimelog hi-lock url-http url-gw mail-parse rfc2231
rfc2047 rfc2045 ietf-drums image-mode dired-aux dired edict
edict-japanese edict-english edict-morphology edict-edit dui-registry
dui multi-isearch etags apropos two-column iso-transl find-func dabbrev
gnutls network-stream starttls tls erc-truncate erc-track erc-services
erc-ring erc-networks erc-netsplit erc-match erc-log erc-pcomplete
pcomplete comint erc-button erc-fill erc-stamp erc-join erc-goodies erc
erc-backend erc-compat format-spec pp help-mode easymenu view regexp-opt
uniquify gnus gnus-ems nnheader mail-utils wid-edit image-file cus-start
cus-load cl ls-lisp iswitchb thingatpt browse-url wiki warnings advice
help-fns advice-preload url-auth url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-util url-parse auth-source eieio
byte-opt bytecomp byte-compile cconv macroexp assoc gnus-util
password-cache url-vars mm-util mail-prsvr mailcap ediff-merg ediff-diff
ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff diff wiki-+
derived ansi-color lui tracking edmacro kmacro flyspell ispell ring
incomplete debian-el debian-el-loaddefs magit-install emacs-goodies-el
emacs-goodies-custom emacs-goodies-loaddefs easy-mmode dpkg-dev-el
dpkg-dev-el-loaddefs devhelp time-date tooltip ediff-hook vc-hooks
lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe
lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core frame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev
minibuffer loaddefs button faces cus-face files text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty emacs)


--=-=-=
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename=pcomplete-entry-points.patch
Content-Transfer-Encoding: quoted-printable
Content-Description: possible fix + example of use in erc

diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el
index 01efd83..3917638 100644
--- a/lisp/erc/erc.el
+++ b/lisp/erc/erc.el
@@ -3964,7 +3964,9 @@ This places `point' just after the prompt, or at the =
beginning of the line."
     (kill-line)))
=20
 (defun erc-complete-word-at-point ()
-  (run-hook-with-args-until-success 'erc-complete-functions))
+  (let ((pcomplete-extra-entry-points
+	 (cons 'completion-at-point pcomplete-extra-entry-points)))
+  (run-hook-with-args-until-success 'erc-complete-functions)))
=20
 (define-obsolete-function-alias 'erc-complete-word 'completion-at-point "2=
4.1")
=20
diff --git a/lisp/pcomplete.el b/lisp/pcomplete.el
index 957505f..30a743b 100644
--- a/lisp/pcomplete.el
+++ b/lisp/pcomplete.el
@@ -471,6 +471,15 @@ Same as `pcomplete' but using the standard completion =
UI."
                           (plist-get :predicate (nthcdr 3 data)))))
=20
 ;;; Pcomplete's native UI.
+(defvar pcomplete-extra-entry-points nil
+  "When an non-native command is driving `pcomplete', that command's
+symbol must be placed in this variable while `pcomplete' is invoked
+in order to allow completion cycling to occur.\n
+For example:\n
+  When completing ab =E2=86=92 aba abc abd able via `completion-at-point',=
\n
+which [may] delegate to `pcomplete' via `completion-at-point-functions',
+the functions in that list should bind this variable to include the
+symbol 'completion-at-point.")
=20
 ;;;###autoload
 (defun pcomplete (&optional interactively)
@@ -481,9 +490,10 @@ completion functions list (it should occur fairly earl=
y in the list)."
   (if (and interactively
 	   pcomplete-cycle-completions
 	   pcomplete-current-completions
-	   (memq last-command '(pcomplete
-				pcomplete-expand-and-complete
-				pcomplete-reverse)))
+           (or (memq last-command '(pcomplete
+                                    pcomplete-expand-and-complete
+                                    pcomplete-reverse))
+               (memq last-command pcomplete-extra-entry-points)))
       (progn
 	(delete-char (- pcomplete-last-completion-length))
 	(if (eq this-command 'pcomplete-reverse)

--=-=-=--




Acknowledgement sent to Vivek Dasmohapatra <vivek@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#15362; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.