all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#6027: 23.1.96; negative arg to pcomplete-arg broken
@ 2010-04-24 11:37 Leo
  2011-07-11 21:46 ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: Leo @ 2010-04-24 11:37 UTC (permalink / raw)
  To: 6027

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







^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#6027: 23.1.96; negative arg to pcomplete-arg broken
  2010-04-24 11:37 bug#6027: 23.1.96; negative arg to pcomplete-arg broken Leo
@ 2011-07-11 21:46 ` Glenn Morris
  2011-07-12  4:33   ` Leo
  0 siblings, 1 reply; 3+ messages in thread
From: Glenn Morris @ 2011-07-11 21:46 UTC (permalink / raw)
  To: Leo; +Cc: 6027

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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#6027: 23.1.96; negative arg to pcomplete-arg broken
  2011-07-11 21:46 ` Glenn Morris
@ 2011-07-12  4:33   ` Leo
  0 siblings, 0 replies; 3+ messages in thread
From: Leo @ 2011-07-12  4:33 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 6027

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-12  4:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-24 11:37 bug#6027: 23.1.96; negative arg to pcomplete-arg broken Leo
2011-07-11 21:46 ` Glenn Morris
2011-07-12  4:33   ` Leo

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.