all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Frederic Gilbert <fredericgilbert@laposte.net>
To: emacs-orgmode@gnu.org
Cc: fredericgilbert@laposte.net
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	[thread overview]
Message-ID: <2dd3085e-d2d3-ff71-a33d-a7a4f9f9e551@laposte.net> (raw)
In-Reply-To: <87tvlnt3tf.fsf@nicolasgoaziou.fr>

On 15/10/18 21:20, Nicolas Goaziou wrote:
> Hello,
> 
> Frederic Gilbert <fredericgilbert@laposte.net> 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.

  reply	other threads:[~2018-10-16  7:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-15 11:27 Bug: Column width ignored ? [9.1.14 (release_9.1.14-987-g823d90 @ /usr/share/emacs/site-lisp/org/)] Frederic Gilbert
2018-10-15 19:20 ` Nicolas Goaziou
2018-10-16  7:52   ` Frederic Gilbert [this message]
2018-10-16 11:43     ` Nicolas Goaziou
2018-10-16 12:34       ` Frederic Gilbert

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=2dd3085e-d2d3-ff71-a33d-a7a4f9f9e551@laposte.net \
    --to=fredericgilbert@laposte.net \
    --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.