[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie.
From: |
Stefan Monnier |
Subject: |
Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576) |
Date: |
Fri, 17 Jun 2016 18:35:46 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
>> emacs -Q
>> C-h v server- TAB
>> will load server.el and show all the variables defined there in.
> Sounds neat. I wonder, though: how does this interact with ido?
It "just works" with icomplete-mode and I guess it should work just as
well with ido-everywhere: i.e., as soon as you type the "-" after
"server", server.el will be loaded and extra entries will appear.
> What about M-x completion (and smex)?
Currently only C-h f and C-h v have been changed to make use of
the functionality. Every place where we want this auto-loading to
happen needs to be modified so as to use #'help--symbol-completion-table
instead of `obarray' as completion table. See below the two hunks that
do that for C-h f and C-h v.
Stefan
@@ -58,8 +114,9 @@ describe-function
(setq val (completing-read (if fn
(format "Describe function (default %s): "
fn)
"Describe function: ")
- obarray 'fboundp t nil nil
- (and fn (symbol-name fn))))
+ #'help--symbol-completion-table
+ #'fboundp
+ t nil nil (and fn (symbol-name fn))))
(list (if (equal val "")
fn (intern val)))))
(or (and function (symbolp function))
@@ -706,7 +763,7 @@ describe-variable
(format
"Describe variable (default %s): " v)
"Describe variable: ")
- obarray
+ #'help--symbol-completion-table
(lambda (vv)
;; In case the variable only exists in the buffer
;; the command we switch back to that buffer before
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Stefan Monnier, 2016/06/17
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Clément Pit--Claudel, 2016/06/17
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576),
Stefan Monnier <=
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Clément Pit--Claudel, 2016/06/17
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Dmitry Gutov, 2016/06/17
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Stefan Monnier, 2016/06/18
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Dmitry Gutov, 2016/06/18
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Clément Pit--Claudel, 2016/06/23
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Clément Pit--Claudel, 2016/06/23
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Dmitry Gutov, 2016/06/23
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Clément Pit--Claudel, 2016/06/23
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Dmitry Gutov, 2016/06/23
- Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576), Stefan Monnier, 2016/06/23