From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: Recent changes to dired.el and info.el
Date: Sun, 14 Aug 2005 18:35:18 -0500 (CDT) [thread overview]
Message-ID: <200508142335.j7ENZIV15732@raven.dms.auburn.edu> (raw)
In-Reply-To: <jk64u8dsvt.fsf@glug.org> (message from Thien-Thi Nguyen on 14 Aug 2005 19:02:30 -0400)
Thien-Thi Nguyen wrote:
dired.el, info.el, (and i just noticed) mail/rmail.el fail to load
because the variable `desktop-buffer-mode-handlers' is not defined.
the scenario occurs when one doesn't load desktop.el ever.
`desktop-buffer-mode-handlers' is defined, even if desktop is never loaded.
That is what autoload cookies are for. It is defined by loaddefs.el:
(defvar desktop-buffer-mode-handlers nil "\
...
If your loaddefs.el does not contain this line, it is out of date.
> In general, use of eval-after-load should be avoided.
what is a better way to avoid the error thrown by `add-to-list' (in
this specific case), then?
`make bootstrap' (maybe with `make maintainer-clean' first, but I do not
believe that is necessary) or else:
$ cd lisp
$ make autoloads EMACS=../src/emacs
I do not get these errors, because my loaddefs.el is up to date.
the desired behavior is ability to load/use info, dired, rmail, without
having to load desktop.el. if i don't use desktop.el, i don't want it
loaded (or autoloaded), *ever*.
`desktop-buffer-mode-handlers' is a variable. Autoloading a variable
does not load its file. The definition in loaddefs.el suffices:
*** Welcome to IELM *** Type (describe-mode) for help.
ELISP> desktop-buffer-mode-handlers
nil
ELISP> (featurep 'desktop)
nil
I believe that you should revert your changes.
Sincerely,
Luc.
next prev parent reply other threads:[~2005-08-14 23:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-14 18:30 Recent changes to dired.el and info.el Luc Teirlinck
2005-08-14 23:02 ` Thien-Thi Nguyen
2005-08-14 23:35 ` Luc Teirlinck [this message]
2005-08-15 1:14 ` Thien-Thi Nguyen
-- strict thread matches above, loose matches on Subject: below --
2005-08-14 19:01 Luc Teirlinck
2005-08-14 23:19 ` Thien-Thi Nguyen
2005-08-14 23:39 ` Luc Teirlinck
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200508142335.j7ENZIV15732@raven.dms.auburn.edu \
--to=teirllm@dms.auburn.edu \
--cc=emacs-devel@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).