From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Recent changes to dired.el and info.el Date: Sun, 14 Aug 2005 18:35:18 -0500 (CDT) Message-ID: <200508142335.j7ENZIV15732@raven.dms.auburn.edu> References: <200508141830.j7EIU4L13793@raven.dms.auburn.edu> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1124064523 15599 80.91.229.2 (15 Aug 2005 00:08:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 15 Aug 2005 00:08:43 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 15 02:08:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1E4SVl-00028D-Tu for ged-emacs-devel@m.gmane.org; Mon, 15 Aug 2005 02:07:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4SZ6-00011R-VK for ged-emacs-devel@m.gmane.org; Sun, 14 Aug 2005 20:10:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1E4SWD-0007K9-4v for emacs-devel@gnu.org; Sun, 14 Aug 2005 20:07:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1E4SWB-0007JK-IS for emacs-devel@gnu.org; Sun, 14 Aug 2005 20:07:56 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1E4SPb-0005R7-DG for emacs-devel@gnu.org; Sun, 14 Aug 2005 20:01:07 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1E4SFy-0003zS-2J; Sun, 14 Aug 2005 19:51:10 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id j7ENZUqt002203; Sun, 14 Aug 2005 18:35:30 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.7p1+Sun/8.11.7) id j7ENZIV15732; Sun, 14 Aug 2005 18:35:18 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: ttn@gnu.org In-reply-to: (message from Thien-Thi Nguyen on 14 Aug 2005 19:02:30 -0400) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:42055 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:42055 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.