GNU bug report logs - #6027
23.1.96; negative arg to pcomplete-arg broken

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Sat, 24 Apr 2010 11:38:02 UTC

Severity: normal

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6027 in the body.
You can then email your comments to 6027 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6027; Package emacs. (Sat, 24 Apr 2010 11:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Leo <sdl.web <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 24 Apr 2010 11:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1.96; negative arg to pcomplete-arg broken
Date: Sat, 24 Apr 2010 12:37:31 +0100
Is pcomplete-arg broken? If the INDEX is negative, it always return nil
(I examine this in a edebug process during which (pcomplete-arg 1)
returns correct value). The body of the function does not seem to
contain any code handling negative INDEX though the doc string however
describes exact behaviour of negative INDEX.

Thanks.

Leo





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6027; Package emacs. (Mon, 11 Jul 2011 21:47:02 GMT) Full text and rfc822 format available.

Message #8 received at 6027 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 6027 <at> debbugs.gnu.org
Subject: Re: bug#6027: 23.1.96; negative arg to pcomplete-arg broken
Date: Mon, 11 Jul 2011 17:46:30 -0400
Leo wrote:

> Is pcomplete-arg broken? If the INDEX is negative, it always return nil
> (I examine this in a edebug process during which (pcomplete-arg 1)
> returns correct value). The body of the function does not seem to
> contain any code handling negative INDEX though the doc string however
> describes exact behaviour of negative INDEX.

Do you have an example of an actual problem? It basically does

(nth (- pcomplete-index index) pcomplete-args)

which looks fine to me. positive/negative indices are intepreted as
offsets to pcomplete-index, which is what the doc says.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6027; Package emacs. (Tue, 12 Jul 2011 04:34:02 GMT) Full text and rfc822 format available.

Message #11 received at 6027 <at> debbugs.gnu.org (full text, mbox):

From: Leo <sdl.web <at> gmail.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 6027 <at> debbugs.gnu.org
Subject: Re: bug#6027: 23.1.96; negative arg to pcomplete-arg broken
Date: Tue, 12 Jul 2011 12:33:35 +0800
On 2011-07-12 05:46 +0800, Glenn Morris wrote:
> Do you have an example of an actual problem? It basically does
>
> (nth (- pcomplete-index index) pcomplete-args)
>
> which looks fine to me. positive/negative indices are intepreted as
> offsets to pcomplete-index, which is what the doc says.

I have re-read the code and the doc-string and come to the same
conclusion as yours. I guess this bug can be closed.

Leo




bug closed, send any further explanations to 6027 <at> debbugs.gnu.org and Leo <sdl.web <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 12 Jul 2011 07:04:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 09 Aug 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 14 years and 4 days ago.

Previous Next


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