emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-table-recalculate-buffer-tables


From: Nick Dokos
Subject: Re: [O] org-table-recalculate-buffer-tables
Date: Fri, 16 Mar 2012 14:17:41 -0400

Aitor <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]