From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: eval-after-load not harmful after all Date: Mon, 17 Aug 2009 02:34:02 +0200 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=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1250469267 8038 80.91.229.12 (17 Aug 2009 00:34:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 17 Aug 2009 00:34:27 +0000 (UTC) Cc: Daniel Colascione , Carsten Dominik , emacs-devel@gnu.org, Stefan Monnier , CHENG Gao , "Stephen J. Turnbull" , Drew Adams To: Leo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 17 02:34:19 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 1McqAz-0006aW-8u for ged-emacs-devel@m.gmane.org; Mon, 17 Aug 2009 02:34:17 +0200 Original-Received: from localhost ([127.0.0.1]:49408 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McqAy-0003Lf-Fy for ged-emacs-devel@m.gmane.org; Sun, 16 Aug 2009 20:34:16 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1McqAr-0003Gh-GA for emacs-devel@gnu.org; Sun, 16 Aug 2009 20:34:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1McqAm-00037z-5V for emacs-devel@gnu.org; Sun, 16 Aug 2009 20:34:08 -0400 Original-Received: from [199.232.76.173] (port=50149 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1McqAl-00037Y-Tu for emacs-devel@gnu.org; Sun, 16 Aug 2009 20:34:03 -0400 Original-Received: from an-out-0708.google.com ([209.85.132.250]:44020) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1McqAl-0007Rq-LX for emacs-devel@gnu.org; Sun, 16 Aug 2009 20:34:03 -0400 Original-Received: by an-out-0708.google.com with SMTP id b6so1205899ana.21 for ; Sun, 16 Aug 2009 17:34:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=0yBxk3o/AvaEkxgDmlXr5qfrXGxIbsVElHrb2sukeFY=; b=YflSUU9TtdBY0mRxMC1AM8C0VbSTZkkrbHzpWDfLXKwi6a7eLUoG0bXj2RvLSxiS0T uWxtQ65VxUVmuqESeg7TuW5ajv09DldTO8xmNGrWxoxjXJZ6ysc+IwIMeRYwm6M8KLtU 1BUpdO8jCuey/jvIEdlrqKdaw9TTS3OfkW1TE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jEpwFDNY3QuAPqSIwHAScGNZPKRJLd/VOyhERdUsYAig1dXQFkKdzEzkiua2I8D2ej 990741AMQiIUngaT3GYvfFB/NVrzDppAYVLfCpi3WCTxZaocZ8zZKfoBN/WcO4XlIDRO DR2+tfVkPcvljsupw+irBGu3GfY0vzFb9V+9M= Original-Received: by 10.100.121.12 with SMTP id t12mr588090anc.187.1250469242111; Sun, 16 Aug 2009 17:34:02 -0700 (PDT) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:114329 Archived-At: 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. > 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.