[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
- Re: Towards a cleaner build: eieio, (continued)
- Re: Towards a cleaner build: eieio, Lars Ingebrigtsen, 2019/06/17
- Re: Towards a cleaner build: ieieo, Lars Ingebrigtsen, 2019/06/13
- Re: Towards a cleaner build: ieieo, Stefan Monnier, 2019/06/13
- Re: Towards a cleaner build: ieieo, Lars Ingebrigtsen, 2019/06/14
- Re: Towards a cleaner build: ieieo, Stefan Monnier, 2019/06/14
- Re: Towards a cleaner build: ieieo, Lars Ingebrigtsen, 2019/06/15
- string-to-multibyte and string-make-*byte (was: Towards a cleaner build), Stefan Monnier, 2019/06/13
- Re: string-to-multibyte and string-make-*byte, Lars Ingebrigtsen, 2019/06/14
- Re: Towards a cleaner build: pcomplete, Lars Ingebrigtsen, 2019/06/17
- Re: Towards a cleaner build: pcomplete, Stefan Monnier, 2019/06/17
- Re: Towards a cleaner build: pcomplete,
Lars Ingebrigtsen <=
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/17
- Re: Towards a cleaner build: other output, Richard Stallman, 2019/06/17
- Re: Towards a cleaner build: other output, Eli Zaretskii, 2019/06/17
- Re: Towards a cleaner build: other output, Richard Stallman, 2019/06/17
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/18
- Re: Towards a cleaner build: other output, Stefan Monnier, 2019/06/18
- Re: Towards a cleaner build: other output, Richard Stallman, 2019/06/18
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/17
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/17
- Re: Towards a cleaner build: other output, Lars Ingebrigtsen, 2019/06/17