emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Aitor <aitors2005@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: org-table-recalculate-buffer-tables
Date: Fri, 16 Mar 2012 14:17:41 -0400	[thread overview]
Message-ID: <5311.1331921861@alphaville> (raw)
In-Reply-To: Message from Aitor <aitors2005@gmail.com> of "Fri, 16 Mar 2012 16:45:47 -0000." <loom.20120316T173820-464@post.gmane.org>

Aitor <aitors2005@gmail.com> 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	other threads:[~2012-03-16 18:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-16 16:45 org-table-recalculate-buffer-tables Aitor
2012-03-16 18:17 ` Nick Dokos [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5311.1331921861@alphaville \
    --to=nicholas.dokos@hp.com \
    --cc=aitors2005@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).