From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: org-table-recalculate-buffer-tables Date: Fri, 16 Mar 2012 14:17:41 -0400 Message-ID: <5311.1331921861@alphaville> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:47347) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8bim-0000SE-Lp for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 14:17:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S8bih-0006M4-St for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 14:17:48 -0400 Received: from g5t0006.atlanta.hp.com ([15.192.0.43]:19206) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S8bih-0006Li-JK for emacs-orgmode@gnu.org; Fri, 16 Mar 2012 14:17:43 -0400 In-Reply-To: Message from Aitor of "Fri, 16 Mar 2012 16:45:47 -0000." 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: Aitor Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Aitor wrote: > > Hi, > > I don't manage to use the 'org-table-recalculate-buffer-tables' function within > org-mode (version 7.8.03). It just doesn't show up when I do M-x > > In fact, if I want to use it I have to apply the following patch: > > Modified lisp/org.el > diff --git a/lisp/org.el b/lisp/org.el > index 3b06347..0bbb119 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -3839,7 +3839,7 @@ This works for both table types.") > org-table-move-column-right org-table-move-row > org-table-move-row-down org-table-move-row-up > org-table-next-field org-table-next-row org-table-paste-rectangle > - org-table-previous-field org-table-recalculate > + org-table-previous-field org-table-recalculate > org-table-recalculate-buffer-tables > org-table-rotate-recalc-marks org-table-sort-lines org-table-sum > org-table-toggle-coordinate-overlays > org-table-toggle-formula-debugger org-table-wrap-region > > > Is there something I am doing wrong ? > This is a general problem with autoloads in emacs and there will be differing opinions on how far org (or whatever other package you are trying to use) should go in order to solve it. In my opinion, org just has to provide enough autoloads/requires/etc to satisfy whatever dependencies *it* has, in order to initialize itself fully. From that point on, any requirements *you* have are best addressed by you in your environment. You can do that by adding something like this to your .emacs: (autoload "org-table" 'org-table-recalculate-buffer-tables) or (require 'org-table) The first one is quicker during initialization and pays the penalty to load the file the first time that you use the function. The second pays the penalty up front, but if you know you are going to use a bunch of table function in every emacs instance you start, it might make more sense since you don't have to provide individual autoloads. Take your pick. Either way, the function will be there when *you* need it. Nick