unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Need to load el-get/.loaddefs.el twice
@ 2013-01-23  8:48 Thorsten Jolitz
  0 siblings, 0 replies; only message in thread
From: Thorsten Jolitz @ 2013-01-23  8:48 UTC (permalink / raw)
  To: help-gnu-emacs


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:

,--------------------------------------------------------------------------------------
| ;;;***
| \f
| ;;;### (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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-23  8:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-23  8:48 Need to load el-get/.loaddefs.el twice Thorsten Jolitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).