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.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Leo <sdl.web <at> gmail.com>
Cc: 6027 <at> debbugs.gnu.org
Subject: 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.




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.