From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: eval-after-load not harmful after all Date: Mon, 17 Aug 2009 12:44:05 +0100 Organization: University of Cambridge Message-ID: References: <7b501d5c0908091634ndfba631vd9db6502db301097@mail.gmail.com> <998B83F771474211A37D1E2B6A497B61@us.oracle.com> <878whr9o4c.fsf@uwakimon.sk.tsukuba.ac.jp> <0AE832B5AEFE4453BB3E46F20DA29DE8@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1250509476 17344 80.91.229.12 (17 Aug 2009 11:44:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2009 11:44:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 17 13:44:29 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Md0dZ-0005nv-I9 for ged-emacs-devel@m.gmane.org; Mon, 17 Aug 2009 13:44:29 +0200 Original-Received: from localhost ([127.0.0.1]:32835 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md0dY-000421-B6 for ged-emacs-devel@m.gmane.org; Mon, 17 Aug 2009 07:44:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Md0dT-00041w-O8 for emacs-devel@gnu.org; Mon, 17 Aug 2009 07:44:23 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Md0dP-000413-T7 for emacs-devel@gnu.org; Mon, 17 Aug 2009 07:44:23 -0400 Original-Received: from [199.232.76.173] (port=50309 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Md0dP-000410-OV for emacs-devel@gnu.org; Mon, 17 Aug 2009 07:44:19 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:60638) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Md0dP-000160-5z for emacs-devel@gnu.org; Mon, 17 Aug 2009 07:44:19 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.50) id 1Md0dN-0005hJ-II for emacs-devel@gnu.org; Mon, 17 Aug 2009 13:44:17 +0200 Original-Received: from smaug.linux.pwf.cam.ac.uk ([193.60.95.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Aug 2009 13:44:17 +0200 Original-Received: from sdl.web by smaug.linux.pwf.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Aug 2009 13:44:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 32 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: smaug.linux.pwf.cam.ac.uk User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:EKD0WCTfCt2UdBoaiKKK246ff0A= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:114335 Archived-At: On 2009-08-17 01:34 +0100, Lennart Borgman wrote: > On Sun, Aug 16, 2009 at 11:43 PM, Leo wrote: > >> Emacs -Q already has a non-nil after-load-alist value. I think this is a >> really bad example. > > > I think at least for CUA-mode and semantic-mode they instead good > examples on that eval-after-load can be useful even within Emacs. If I > understand it right these checks if an old version of the modes have > been loaded before the one that is now bundled with Emacs. Can you see > a better way to do this? I can't. I just found out those are added from within simple.el. But they look to me more like a last minute hack before release although I am not sure. What those e-v-l's do is pretty little and they don't belong there. If there's a bug in, say, bbdb 2.29, should a new entry be added? After all if a package is installed by a user, it is the user's responsibility. >> Is there any way to cleanly unload an eval-after-load form? For example, >> if a package eval-after-load something that interferes with a user's >> personal setting, what to do? > > Can't you just delete the entry in after-load-alist? Or do you want to > do it afterwards? I can see no way to do that in the general case. Each entry could involve multiple e-v-l's. There's extra care that needs to be taken. -- Leo's Emacs uptime: 13 days, 11 hours, 21 minutes, 36 seconds