all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Need to load el-get/.loaddefs.el twice
Date: Wed, 23 Jan 2013 09:48:42 +0100	[thread overview]
Message-ID: <87obgg2sk5.fsf@googlemail.com> (raw)


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





                 reply	other threads:[~2013-01-23  8:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obgg2sk5.fsf@googlemail.com \
    --to=tjolitz@googlemail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.