emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Towards a cleaner build: pcomplete


From: Lars Ingebrigtsen
Subject: Re: Towards a cleaner build: pcomplete
Date: Mon, 17 Jun 2019 15:30:44 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Lars Ingebrigtsen <address@hidden> writes:

> Am I misreading the code?

Nope.  A change in 2011 changed

-    (setq pcomplete-suffix-list (cons ?= pcomplete-suffix-list))

to

+    (let ((pcomplete-suffix-list (cons ?= pcomplete-suffix-list)))

But the pcomplete function binds that variable, so the call to
pcomplete/tar alters the value, and then when the pcomplete function
later calls pcomplete-insert-entry, it does the right thing.

So this has been buggy since 2011.  :-)

The bug is that when you call M-x pcomplete now, 

tar --rsh-command= <point ends here>

but with the setq it's:

tar --rsh-command=<point ends here>

It's the same with the standard completion function -- there's a space
after the = sign after hitting TAB, which is a bug...

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]