From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Fwd: loading org changes faces in other modes Date: Tue, 8 Sep 2009 08:49:37 +0200 Message-ID: <2EDE2811-9C3F-4FAF-A582-9204153BF8C2@gmail.com> References: <20524da70909070736x1484b2e7r84d8f64dc398d405@mail.gmail.com> <33919E72-45AB-4F50-8D5E-46807AC4BFA9@gmail.com> <87hbveeh78.fsf@thinkpad.tsdh.de> <87ocpm9aqx.fsf@bzg.ath.cx> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MkvRB-00066R-QB for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 03:48:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MkvR7-00064S-3A for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 03:48:24 -0400 Received: from [199.232.76.173] (port=54185 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MkvR6-00064N-Q9 for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 03:48:20 -0400 Received: from mx20.gnu.org ([199.232.41.8]:3967) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MkvR6-000075-Ad for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 03:48:20 -0400 Received: from mail-fx0-f226.google.com ([209.85.220.226]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MkvR5-0007pW-Iy for emacs-orgmode@gnu.org; Tue, 08 Sep 2009 03:48:19 -0400 Received: by fxm26 with SMTP id 26so2538505fxm.42 for ; Tue, 08 Sep 2009 00:48:17 -0700 (PDT) In-Reply-To: <87ocpm9aqx.fsf@bzg.ath.cx> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: Tassilo Horn , emacs-orgmode@gnu.org On Sep 7, 2009, at 2:53 PM, Bastien wrote: > Hi Tassilo, > > Tassilo Horn writes: > >> with all those troubles, what's the point in `org-modules' anyway? >> Are >> there any benefits over plain requires in users' .emacs files >> except the >> nice and explanatory customize interface? > > One advantage I see is that org.el can define a default set of loaded > modules, while suggesting the user that there are many others to load. Exactly. I did not like the planner setup, where you have to go in and put a significant number of require statements before the thing will actually work. So while I wanted a modular package, also wanted to ship a fully activated package. Secondly, just as Bastien says, I want to make it easy to find modules you might want to use. But it is not easy to get the loading of the modules right, the timing is important. It has worked pretty well so far though, I would say. For the problem with gnus, I have now found a solution, I think. I do now (in org-gnus.el): (require 'org) (eval-when-compile (require 'gnus-sum)) ;; The following line suppresses a compier warning stemming from gnus- sum.el ;; because this function is used before being defined (declare-function gnus-summary-last-subject "gnus-sum" nil) That does compile without errors, and it delays loading gnus until it is actually used. I'd like to hear if anyone still has problems with the latest git release. Thanks! - Carsten