From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Regression in org-table-recalculate-buffer-tables and #+startup: shrink [devel branch] Date: Mon, 22 Apr 2019 16:40:39 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000007fbc5e0587247d09" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:39788) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIfpK-0002oO-KU for emacs-orgmode@gnu.org; Mon, 22 Apr 2019 16:46:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIfkj-0000VF-Pf for emacs-orgmode@gnu.org; Mon, 22 Apr 2019 16:41:26 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:37103) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hIfkh-0000Su-Lx for emacs-orgmode@gnu.org; Mon, 22 Apr 2019 16:41:25 -0400 Received: by mail-lj1-x235.google.com with SMTP id v13so11454361ljk.4 for ; Mon, 22 Apr 2019 13:41:20 -0700 (PDT) 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" To: emacs-org list --0000000000007fbc5e0587247d09 Content-Type: text/plain; charset="UTF-8" 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 --0000000000007fbc5e0587247d09 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

Late= ly (past week), I have noticed a failure for all functions to run from my o= rg-mode-hook, because I got an error like:

=C2=A0=C2=A0=C2=A0 File mode specification error: (use= r-error Not at a table)

This error happ= ens if:

1. I call M-x org-table-recalc= ulate-buffer-tables (I have that function in my org-mode-hook).
2= . The Org buffer has=20 #+startup: shrink, and
3. An Org table with column width cook= ies has #+caption.

Here's a minimal reproducib= le example:

=3D=3D=3D=3D=3D
#+title: User-error when trying to recalculate tables in buffer = with shrink enabled
#+startup: s= hrink

#+caption: Foo
| <25> |
| Foo=C2=A0 |
=3D=3D=3D=3D=3D

1. Save above to an Org file, cl= ose and reopen that file so that #+startup gets evaluated.
2.=20 M-x org-table-recalculate-buffer-tables and you will get the "user-err= or: Not at a table" error.

Interestingly, thi= s error does not show up if simply that #+caption line is removed.


=
Org mode version 9.2.3 (release_9.2.3-336-g09a1a2 @ /home/kmodi/us= r_local/apps/6/emacs/master/share/emacs/site-lisp/org/)

Thanks!

--
= Kaushal Modi
--0000000000007fbc5e0587247d09--