From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-reload (Re: some kind of bisect tool) Date: Thu, 26 May 2011 08:30:36 +0200 Message-ID: <10549E46-1657-4F72-A484-4B98787A2357@gmail.com> References: <87boyqb4jb.fsf@norang.ca> Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPUqu-0007Ko-UN for emacs-orgmode@gnu.org; Thu, 26 May 2011 03:19:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPUqt-0001Y8-Gc for emacs-orgmode@gnu.org; Thu, 26 May 2011 03:19:28 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:45800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPUqt-0001Y4-At for emacs-orgmode@gnu.org; Thu, 26 May 2011 03:19:27 -0400 Received: by ewy9 with SMTP id 9so190309ewy.0 for ; Thu, 26 May 2011 00:19:26 -0700 (PDT) In-Reply-To: <87boyqb4jb.fsf@norang.ca> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bernt Hansen Cc: emacs-orgmode@gnu.org On 26.5.2011, at 04:04, Bernt Hansen wrote: > Samuel Wales writes: > >> On 2011-05-25, Bernt Hansen wrote: >>> Trying to reuse the current session with an org-reload probably won't >>> work well for the general case. >> >> Perhaps it will work for the cases for which org-reload was designed. >> >>>> By the way, I am having trouble loading source with c-u c-c c-x ! . I >>>> notice that some commands, such as m-s-right, are still compiled. >>> >>> I have no idea what is going on here. >> >> Org-reload is broken for me and so is loading of *.el. I think >> org-reload should error when it cannot load a file, and ideally all >> files would be loadable in any order. Don't know if this is possible. >> If org-reload has no use, perhaps org-reload should be deleted? But >> a restart of Emacs is very slow for every git checkout. > > I use M-x org-reload regularly when upgrading org-mode (instead of > restarting Emacs). > > org-reload is great for moving forwards in the org-mode git history (to > newer commits) without restarting Emacs. It's when you go backwards > (removing new functionality and definitions) that things get a bit > hairy since your current emacs lisp environment will have a mixture of > new and old definitions. > > org-reload now just gets a list of files and loads them sequentially. > > The function could probably be enhanced to check the status of the load > function call and doing something useful when it fails -- but that needs > to be thought out. Carsten originally wrote this function and he may > have more thoughts about this. org-reload only reloads files that already have been loaded. So if you have not loaded org-crypt yet, it will not be loaded again. I am not sure I remember why I did it like this, probably to solve problems with the sequence of loading. Org-reload is certainly not perfect. Using a minimal Emacs setup and just restart Emacs for the bisecting is probably best. - Carsten Does anyone know if there is a way to > > Regards, > Bernt >