emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Kaushal Modi <kaushal.modi@gmail.com>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: Regression in org-table-recalculate-buffer-tables and #+startup: shrink [devel branch]
Date: Tue, 23 Apr 2019 10:37:21 +0200	[thread overview]
Message-ID: <87wojlunge.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAFyQvY1-UEWjb2kTQRnC7Ex9VpvKMXSDp0Q4HV6pLX5k1Z6JHg@mail.gmail.com> (Kaushal Modi's message of "Mon, 22 Apr 2019 16:40:39 -0400")

Hello,

Kaushal Modi <kaushal.modi@gmail.com> writes:

> Lately (past week), I have noticed a failure for all functions to run from
> my org-mode-hook, because I got an error like:
>
>     File mode specification error: (user-error Not at a table)
>
> This error happens if:
>
> 1. I call M-x org-table-recalculate-buffer-tables (I have that function in
> my org-mode-hook).
> 2. The Org buffer has #+startup: shrink, and
> 3. An Org table with column width cookies has #+caption.
>
> Here's a minimal reproducible example:
>
> =====
>
> #+title: User-error when trying to recalculate tables in buffer with shrink
> enabled
>
> #+startup: shrink
>
> #+caption: Foo
> | <25> |
>
> | Foo  |
> =====
>
> 1. Save above to an Org file, close and reopen that file so that #+startup
> gets evaluated.
> 2. M-x org-table-recalculate-buffer-tables and you will get the
> "user-error: Not at a table" error.

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2019-04-23  8:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-22 20:40 Regression in org-table-recalculate-buffer-tables and #+startup: shrink [devel branch] Kaushal Modi
2019-04-23  8:37 ` Nicolas Goaziou [this message]
2019-04-23 11:52   ` Kaushal Modi

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=87wojlunge.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /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).