From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: master f995fbd: * lisp/server.el (server-name): Add autoload cookie. (Bug#23576) Date: Fri, 20 May 2016 14:29:42 -0400 Message-ID: References: <20160518194708.27363.47377@vcs.savannah.gnu.org> <20160518194708.86FE0220157@vcs.savannah.gnu.org> <834m9u9dis.fsf@gnu.org> <83r3cx8eg2.fsf@gnu.org> <83mvnl894y.fsf@gnu.org> <83lh3583tb.fsf@gnu.org> <83eg8w97kf.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1463770529 24389 80.91.229.3 (20 May 2016 18:55:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 May 2016 18:55:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 20 20:55:20 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1b3pZu-0003ih-90 for ged-emacs-devel@m.gmane.org; Fri, 20 May 2016 20:55:18 +0200 Original-Received: from localhost ([::1]:56013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3pZq-0007iW-5T for ged-emacs-devel@m.gmane.org; Fri, 20 May 2016 14:55:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3pZk-0007gi-KI for emacs-devel@gnu.org; Fri, 20 May 2016 14:55:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b3pZh-0004ge-GJ for emacs-devel@gnu.org; Fri, 20 May 2016 14:55:08 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:51483) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b3pZh-0004fE-BV; Fri, 20 May 2016 14:55:05 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u4KIt3E1006055; Fri, 20 May 2016 14:55:03 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id A093D60023; Fri, 20 May 2016 14:29:42 -0400 (EDT) In-Reply-To: <83eg8w97kf.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 May 2016 16:34:40 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5678=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5678> : inlines <4839> : streams <1638563> : uri <2213619> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203913 Archived-At: > I'm all for it. But as long as no one is working on that, I see no > better way than autoloading the variables. All of them? Because if not "all" of them, then you only solve 1% of the problem. BTW, I have worked on that. I have code which adds statements of the form (register-definition-prefixes "find-dired" '("find-" "lookfor-dired" "kill-find")) in the loaddefs.el file (these are auto-generated by autoloads.el), and which indicate that if we need something that starts with "find-" we may find it in "find-dired". Then things like set-variable (and C-h f, C-h v ...) can use this data to load the relevant packages during completion. Note that for server.el, my code generates nothing at all, since we can instead rely on the principle that "foo-bar" definitions can usually be found in foo.el. The fact that it integrates with autoloads.el means that it could also work with packages installed via package.el, rather than only for core packages. Stefan