From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Regression in org-table-recalculate-buffer-tables and #+startup: shrink [devel branch]
Date: Mon, 22 Apr 2019 16:40:39 -0400 [thread overview]
Message-ID: <CAFyQvY1-UEWjb2kTQRnC7Ex9VpvKMXSDp0Q4HV6pLX5k1Z6JHg@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1171 bytes --]
Hello,
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.
Interestingly, this error does not show up if simply that #+caption line is
removed.
I believe that this commit caused this regression:
https://code.orgmode.org/bzg/org-mode/commit/222408d70a3674f06ddd6b77e4e1126c602e7361
.
Org mode version 9.2.3 (release_9.2.3-336-g09a1a2 @
/home/kmodi/usr_local/apps/6/emacs/master/share/emacs/site-lisp/org/)
Thanks!
--
Kaushal Modi
[-- Attachment #2: Type: text/html, Size: 2031 bytes --]
next reply other threads:[~2019-04-22 20:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-22 20:40 Kaushal Modi [this message]
2019-04-23 8:37 ` Regression in org-table-recalculate-buffer-tables and #+startup: shrink [devel branch] Nicolas Goaziou
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAFyQvY1-UEWjb2kTQRnC7Ex9VpvKMXSDp0Q4HV6pLX5k1Z6JHg@mail.gmail.com \
--to=kaushal.modi@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.