From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Regression in org-table-recalculate-buffer-tables and #+startup: shrink [devel branch] Date: Tue, 23 Apr 2019 10:37:21 +0200 Message-ID: <87wojlunge.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:48605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hIr7F-0007Le-Hg for emacs-orgmode@gnu.org; Tue, 23 Apr 2019 04:49:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hIqvf-0003jw-Ld for emacs-orgmode@gnu.org; Tue, 23 Apr 2019 04:37:28 -0400 Received: from relay8-d.mail.gandi.net ([217.70.183.201]:43849) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hIqvf-0003iI-Fo for emacs-orgmode@gnu.org; Tue, 23 Apr 2019 04:37:27 -0400 In-Reply-To: (Kaushal Modi's message of "Mon, 22 Apr 2019 16:40:39 -0400") 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: Kaushal Modi Cc: emacs-org list Hello, Kaushal Modi 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