all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576)
Date: Fri, 17 Jun 2016 18:35:46 -0400	[thread overview]
Message-ID: <jwvr3bv78mj.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 57645F28.9040602@gmail.com

>> 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




  reply	other threads:[~2016-06-17 22:35 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20160518194708.27363.47377@vcs.savannah.gnu.org>
     [not found] ` <20160518194708.86FE0220157@vcs.savannah.gnu.org>
2016-05-19 16:44   ` master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576) Glenn Morris
2016-05-19 17:13     ` Eli Zaretskii
2016-05-20  4:07       ` Leo Liu
2016-05-20  5:51         ` Eli Zaretskii
2016-05-20  7:11           ` Leo Liu
2016-05-20  7:46             ` Eli Zaretskii
2016-05-20  8:48               ` Dmitry Gutov
2016-05-20  9:41                 ` Eli Zaretskii
2016-05-20 12:12                   ` Stefan Monnier
2016-05-20 13:34                     ` Eli Zaretskii
2016-05-20 18:29                       ` Stefan Monnier
2016-05-20 18:59                         ` Eli Zaretskii
2016-05-26  3:01                           ` Stefan Monnier
2016-05-26  3:36                             ` Stefan Monnier
2016-05-26 15:38                             ` Eli Zaretskii
2016-05-27 19:51                               ` Stefan Monnier
2016-05-28  7:11                                 ` Eli Zaretskii
2016-06-17 16:42                               ` Stefan Monnier
2016-06-17 20:35                                 ` Clément Pit--Claudel
2016-06-17 22:35                                   ` Stefan Monnier [this message]
2016-06-18  2:20                                     ` Clément Pit--Claudel
2016-06-18  2:38                                     ` Dmitry Gutov
2016-06-18 18:09                                       ` Stefan Monnier
2016-06-18 20:05                                         ` Dmitry Gutov
2016-06-23 13:45                                         ` Clément Pit--Claudel
2016-06-23 13:48                                           ` Clément Pit--Claudel
2016-06-23 14:27                                           ` Dmitry Gutov
2016-06-23 14:48                                             ` Clément Pit--Claudel
2016-06-23 14:30                                         ` Dmitry Gutov
2016-06-23 15:35                                           ` Stefan Monnier
2016-06-23 15:52                                             ` Dmitry Gutov
2016-06-24 14:01                                               ` Stefan Monnier
2016-07-01 13:33                                     ` Robert Weiner
2016-07-01 15:51                                       ` Stefan Monnier
2016-05-20 17:30       ` Glenn Morris
2016-05-20 17:47         ` Eli Zaretskii
2016-05-20 18:15           ` Dmitry Gutov
2016-05-20 18:55             ` Eli Zaretskii
2016-05-21  4:25               ` Leo Liu
2016-05-21  6:52                 ` Eli Zaretskii
2016-05-21  7:05                   ` Dmitry Gutov
2016-05-21  7:32                     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvr3bv78mj.fsf-monnier+gmane.emacs.devel@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.