[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inner workings of `pcomplete'
From: |
Stefan Monnier |
Subject: |
Re: Inner workings of `pcomplete' |
Date: |
Tue, 07 Feb 2012 22:33:51 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) |
> 1. emacs -Q
> 2. M-: (boundp 'pcomplete-stub) RET ==> nil
> 3. M-x shell
> 4. M-: (boundp 'pcomplete-stub) RET ==> t
> 5. M-: (special-variable-p 'pcomplete-stub) RET ==> nil
> 6. Open the file `pcomplete.el' (for example, by looking up the variable
> `pcomplete-stub') and M-x eval-buffer. Now (special-variable-p
> 'pcomplete-stub) evaluates to t.
> What is going on here?
Duh! Thanks for catching this. Please M-x report-emacs-bug!
> prompt and M-: (pcomplete-completions)). However, it is also passed as
> a table argument to the function `complete-with-action', whose
> documentation says that this argument should not be a function.
The docstring is wrong, as the first line of the code indicates ;-)
Stefan