From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: wgreenhouse-sGOZH3hwPm2sTnJN9+BGXg@public.gmane.org (W. Greenhouse) Newsgroups: gmane.emacs.help Subject: Re: log full path of magically loaded files? Date: Tue, 26 Mar 2013 14:48:27 +0000 Message-ID: <87fvzib4jo.fsf@riseup.net> References: <06d6bc48-a54e-4e08-a2e5-9a2d6a840eef@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1364309381 31016 80.91.229.3 (26 Mar 2013 14:49:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Mar 2013 14:49:41 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Tue Mar 26 15:50:08 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1UKVCL-0002Km-NJ for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Mar 2013 15:50:01 +0100 Original-Received: from localhost ([::1]:36370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKVBx-0001I3-R6 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Mar 2013 10:49:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKVBk-0001Ev-1t for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 26 Mar 2013 10:49:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKVBd-0008V1-Dz for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 26 Mar 2013 10:49:23 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:44255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKVBd-0008Ul-72 for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 26 Mar 2013 10:49:17 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UKVBy-00016i-R3 for help-gnu-emacs-mXXj517/zsQ@public.gmane.org; Tue, 26 Mar 2013 15:49:38 +0100 Original-Received: from torsrva.snydernet.net ([93.184.66.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Mar 2013 15:49:38 +0100 Original-Received: from wgreenhouse by torsrva.snydernet.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Mar 2013 15:49:38 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet-dbVV3NMTNubNLxjTenLetw@public.gmane.org X-Gmane-NNTP-Posting-Host: torsrva.snydernet.net X-Archive: encrypt User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:V5IsWH4hIRNtrzFlpIS4Av/G8mY= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:89765 Archived-At: Dan, danmbox-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org writes: > I suspect emacs is loading the wrong version of some file (an > autoloaded major mode). However, I see no relevant trace in *Messages* > when opening a file that triggers the autoload. > > If I (require 'some-mode) (from the *scratch* buffer), still nothing > appears in *Messages*. If I (load "some-mode"), I finally get the > useless > > Loading some-mode... done. > > (useless because I want the full path). Is there a way to enable more > extensive logging of implicit emacs actions? The `load-history' variable documents every `load' and `require' event (and a lot else besides), with full paths, back to the initialization of Emacs. Since that's probably *too much* information, a quicker path to the problem you're actually trying to tackle with relation to major modes is M-x list-load-path-shadows, which shows you when the same library was eligible to be loaded from more than one directory and some versions are now being ignored due to the load-path setting (i.e. "shadowed"). Best, Will -- BOFH excuse #378: Operators killed by year 2000 bug bite.