From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Need to load el-get/.loaddefs.el twice Date: Wed, 23 Jan 2013 09:48:42 +0100 Message-ID: <87obgg2sk5.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1358930941 10580 80.91.229.3 (23 Jan 2013 08:49:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jan 2013 08:49:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 23 09:49:20 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 1Txw1H-0007mp-IA for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 09:49:19 +0100 Original-Received: from localhost ([::1]:47905 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txw10-0007Wm-B3 for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Jan 2013 03:49:02 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:37847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txw0u-0007WT-Bv for help-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:48:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Txw0s-0001nJ-SP for help-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:48:56 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Txw0s-0001nE-Lr for help-gnu-emacs@gnu.org; Wed, 23 Jan 2013 03:48:54 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Txw17-0007hs-F2 for help-gnu-emacs@gnu.org; Wed, 23 Jan 2013 09:49:09 +0100 Original-Received: from e178189114.adsl.alicedsl.de ([85.178.189.114]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jan 2013 09:49:09 +0100 Original-Received: from tjolitz by e178189114.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 23 Jan 2013 09:49:09 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 75 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: e178189114.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux) Cancel-Lock: sha1:Fsl7XcHQFDP8XWaMhjzNST2gAfc= 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@gnu.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@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88778 Archived-At: Hi List, I have a strange behaviour at Emacs start-up with regards to loading "~/.emacs.d/el-get/.loaddefs.el" and starting emacs-w3m with M-x w3m afterwards: from my /.emacs.d/init.el: ,---------------------------------------------------------------------------- | ;; *** Autoloads | | (try-require (expand-file-name "el-get/.loaddefs.el" user-emacs-directory)) `---------------------------------------------------------------------------- from the *Messages* buffer: ,---------------------------------------------------------------------- | Checking for library `/home/tj/.emacs.d/el-get/.loaddefs.el'... | Loading /home/tj/.emacs.d/el-get/.loaddefs.el... | Loading /home/tj/.emacs.d/el-get/.loaddefs.el (source)...done | Checking for library `/home/tj/.emacs.d/el-get/.loaddefs.el'... Found `---------------------------------------------------------------------- But when I try M-x w3m I get: ,----------------------------------------------------------------------------- | w3m-setup-menu: Autoloading failed to define function w3m-setup-session-menu `----------------------------------------------------------------------------- Loading el-get/.loaddefs.el again with M-x load-library fails: ,----------------------------------------------------------------------------- | Library is file ~/.emacs.d/el-get/.loaddefs.el | w3m-setup-menu: Autoloading failed to define function w3m-setup-session-menu `----------------------------------------------------------------------------- But M-x load-file succeeds ,-------------------------------------------------------------- | Loading /home/tj/.emacs.d/el-get/.loaddefs.el... | Loading /home/tj/.emacs.d/el-get/.loaddefs.el (source)...done `-------------------------------------------------------------- and M-x w3m works again. Any idea why I have to load it twice, and why only emacs-w3m seems to be affected by this (everything else seems to work fine)? Here is the relevant part from el-get/.loaddefs.el: ,-------------------------------------------------------------------------------------- | ;;;*** | | ;;;### (autoloads (w3m-session-last-crashed-session w3m-session-last-autosave-session | ;;;;;; w3m-setup-session-menu w3m-session-select w3m-session-crash-recovery-remove | ;;;;;; w3m-session-save) "emacs-w3m/w3m-session" "emacs-w3m/w3m-session.el" | ;;;;;; (19989 33699)) | ;;; Generated autoloads from emacs-w3m/w3m-session.el | | ... | | (autoload 'w3m-setup-session-menu "emacs-w3m/w3m-session" "\ | Setup w3m session items in menubar. | | \(fn)" nil nil) | | ... | `-------------------------------------------------------------------------------------- -- cheers, Thorsten