From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-15?Q?Hibou57_=28Yannick_Duch=EAne=29?= Newsgroups: gmane.emacs.help Subject: Re: How does M-x completion works Date: Tue, 23 Feb 2010 08:06:06 +0100 Organization: At Home Message-ID: References: <4b82ff9b$0$279$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Trace: dough.gmane.org 1266910882 20489 80.91.229.12 (23 Feb 2010 07:41:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 23 Feb 2010 07:41:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Feb 23 08:41:18 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NjpOO-0002qR-RY for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2010 08:41:17 +0100 Original-Received: from localhost ([127.0.0.1]:43020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NjpON-0002BV-Tz for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2010 02:41:15 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!goblin2!goblin.stu.neva.ru!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 81 Original-NNTP-Posting-Host: vR4lXRIWNdu7bgSfQddQoQ.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.10 (Win32) Original-Xref: news.stanford.edu gnu.emacs.help:177012 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72050 Archived-At: Le Mon, 22 Feb 2010 23:06:45 +0100, Colin S. Miller = a =E9crit: Hi Colin, > allout is probably still registered as an autoload. > Most of emacs's non-core functionality is provided by autoloaded = > functions. And moreoever, it seems registered in an hard coded way, as the exe = contains the string "autoload-mode". > An emacs autoload is where a function can be registered with emacs, bu= t > not actually loaded. > When the function is first used in this instance of emacs, the definin= g > library is automatically loaded, and then the function is called as pe= r = > usual. > This allows emacs to provide a lot of functionality without the memory= = > and start-up > over head of actually loading the function at start up. Yes, I've seen about section 15.1 and 15.5 in the Emacs Lisp reference. Something else also takes part here : a file named loaddefs.el, which = contains a list of autoload definitions (which seems to confirm Emacs is= = not scanning modules at start up). I've also tried to remove this file, = = this does not change anything. > What does C-h f allout-mode say? Well, it gives the help about the allout moode :) > If it is "allout-mode is an interactive autoloaded Lisp function in = > `allout'." Yes, it is. > then it's an unloaded autoload, Yes, I was to remove it (as an example). > if its "allout-mode is an interactive compiled Lisp function in = > `allout.el'." > then allout-mode has actually been loaded. Actually, it is not. Well, as it seems to be a hard coded reference (I looked at strings = contained in the exe, there seems to be a lot like this), I may try to a= dd = a script, which, at startup, will iterate on autoload definitions, check= = for each if the corresponding file exist, and if the file if not there, = = then remove the definition (if possible). Or perhaps, as an other = alternative, recompile an Emacs without the unneeded hard coded = definitions. Happy writing -- = No-no, this isn't an oops ...or I hope (TM) - Don't blame me... I'm just= = not lucky