From mboxrd@z Thu Jan 1 00:00:00 1970 From: Frederic Gilbert Subject: Re: Bug: Column width ignored ? [9.1.14 (release_9.1.14-987-g823d90 @ /usr/share/emacs/site-lisp/org/)] Date: Tue, 16 Oct 2018 09:52:29 +0200 Message-ID: <2dd3085e-d2d3-ff71-a33d-a7a4f9f9e551@laposte.net> References: <8d9b637e-1ac4-14d2-3f51-e2815d1c18a0@laposte.net> <87tvlnt3tf.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34143) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gCK9d-0000it-7Z for emacs-orgmode@gnu.org; Tue, 16 Oct 2018 03:52:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gCK9Z-0004Si-5J for emacs-orgmode@gnu.org; Tue, 16 Oct 2018 03:52:36 -0400 Received: from smtpoutz23.laposte.net ([194.117.213.98]:43452 helo=smtp.laposte.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gCK9Y-0004On-Ef for emacs-orgmode@gnu.org; Tue, 16 Oct 2018 03:52:32 -0400 Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout011 (Postfix) with ESMTP id 4C9D452EA60 for ; Tue, 16 Oct 2018 09:52:30 +0200 (CEST) Received: from smtp.laposte.net (localhost [127.0.0.1]) by lpn-prd-vrout011 (Postfix) with ESMTP id 3DC3952E745 for ; Tue, 16 Oct 2018 09:52:30 +0200 (CEST) Received: from lpn-prd-vrin003 (lpn-prd-vrin003.laposte [10.128.63.4]) by lpn-prd-vrout011 (Postfix) with ESMTP id 374DA52EA60 for ; Tue, 16 Oct 2018 09:52:30 +0200 (CEST) Received: from lpn-prd-vrin003 (localhost [127.0.0.1]) by lpn-prd-vrin003 (Postfix) with ESMTP id 2887B4A6ED7 for ; Tue, 16 Oct 2018 09:52:30 +0200 (CEST) In-Reply-To: <87tvlnt3tf.fsf@nicolasgoaziou.fr> Content-Language: en-US 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-orgmode@gnu.org Cc: fredericgilbert@laposte.net On 15/10/18 21:20, Nicolas Goaziou wrote: > Hello, > > Frederic Gilbert writes: > >> Following an upgrade from 8.2.10 to 9.1.14 from GIT repository, >> it looks like tables column width specifications (e.g. <10> on a row) >> don't work anymore. > > Could you explain what doesn't work? > > Regards, > Sorry for not being specific enough. I have several tables looking more or less like this: | Title | + | - | |-----------------------------------------+------+-----| | Money in | 400 | | | Money out 1 bla bla bla bla bla bla bla | | 200 | | Money out 2 | | 50 | |-----------------------------------------+------+-----| | *Total* | | 150 | #+TBLFM: @>$3=vsum(@5$2..@-1$2)-vsum(@5$3..@-1$3) To limit the width of the first column (which can be much longer than the example, and push the 2 other columns beyond the frame's width), I am used to use the width specification, as in: | Title | + | - | |-----------------------------------------+------+-----| | <20> | | | | Money in | 4000 | | | Money out 1 bla bla bla bla bla bla bla | | 200 | | Money out 2 | | 50 | |-----------------------------------------+------+-----| | *Total* | | 150 | #+TBLFM: @>$3=vsum(@5$2..@-1$2)-vsum(@5$3..@-1$3) I ask for a 20 characters width in this example, but the problem I encounter is not related to the specified number of characters. In Org 8.2.10, this worked, and, in the example above, the long line would be truncated to 20 characters with the "=>" sign indicating that there is some text beyond the column right border. In 8.2.10, drawers did not fold, and there was a problem with babel interpreting sh source blocks. So I upgraded from the git repository, and I am now in 9.1.14. This corrected the drawers and sh problems, but I realized that now, specifying column width in tables does not work anymore. This means that: - if I insert <20> and do C-c C-c, the columns width remain computed from the longest cell, and the text displayed in full length - if I open an org file where the table was previously formatted in truncated form with the "=>" sign, it is displayed with columns expanded to longest cell length. I tried to changed the position of the line where I put the <20> etc., to no avail. I am using emacs 25.2.2 (current package from Ubuntu 18.04), with Viper 3.14.12. Regards, Frederic.