emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Neil Jerram <neiljerram@gmail.com>
To: Nick Dokos <ndokos@gmail.com>
Cc: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Column width cookies stopped working in 9.2.3?
Date: Sun, 12 May 2019 13:15:55 +0100	[thread overview]
Message-ID: <CAKuG=vtYGjo45U2_3R-CdFeQs_gZfyQQVOuPAXUR2o5jVv0ZCg@mail.gmail.com> (raw)
In-Reply-To: <87tve04llx.fsf@alphaville.usersys.redhat.com>

[-- Attachment #1: Type: text/plain, Size: 3563 bytes --]

On Sun, 12 May 2019 at 00:29, Nick Dokos <ndokos@gmail.com> wrote:
>
> Neil Jerram <neiljerram@gmail.com> writes:
>
> > Hi,
> >
> > I have tables with width cookies like this:
> >
> > | <16>             | <6>   | <64>                              |
> >
> > I just added new information to one of those tables, and the table
> > shrank down to match the size of the content, i.e. as though Org is
> > now ignoring the width cookies.
> >
> > I believe I've also upgraded in the last few days, and now have:
> > Org mode version 9.2.3 (9.2.3-13-g727c3f-elpa @
> > /home/neil/.emacs.d/elpa/org-20190506/)
> >
> > Is this a known thing?  Do I need something else now to make those
> > width cookies work?
> >
>
> As Eric says, things have changed in this area. It's always a good
> idea to check the /etc/ORG-NEWS file for such things.  In this
> particular case, read the section entitled "Dynamically narrow table
> columns" in the Version 9.2 "New features" section of etc/ORG-NEWS.

Thanks Nick.  I did check the manual before writing, and noticed that it
still says:

     To set the width of a column, one field anywhere in the column may
  contain just the string ‘<N>’ where N specifies the width as a number of
  characters.

I think the crux of the matter is that my use case is apparently different
from everyone else's.  Now that I've reread the whole section, it seems
that the main target use case is _shrinking_ a column to be narrower than
what is needed for its content.  My use case is the opposite: I want a
column to be a fixed width that is always _larger_ than its content.
 (FWIW, this is in order to avoid spurious Git diffs for column width
changes, as I change the content in those tables.)

For example, after deploying 'C-u C-c TAB', one of my tables now looks like
this:

| Programme        ...| Sang? ...| Notes                             ...|
|------------------...+-------...+-----------------------------------...|
| Audition         ...|       ...| January 2019                      ...|
|------------------...+-------...+-----------------------------------...|
| <16>             ...| <6>   ...| <64>                              ...|
| 2019             ...|       ...|                                   ...|
| B minor mass     ...| Yes   ...| 1 planned absence (6 Mar)         ...|
|                  ...|       ...| 6 Mar Present when not expected   ...|
| Songs Summer Eve ...| No    ...|                                   ...|
| French Choral    ...| Yes   ...| "I'm intending to sing in [this]" ...|

which is IMO uglier than what it used to be, and what I'd like, like this:

| Programme        | Sang?  | Notes
                   |
|------------------+--------+------------------------------------------------------------------|
| Audition         |        | January 2019
                   |
|------------------+--------+------------------------------------------------------------------|
| <16>             | <6>    | <64>
                   |
| 2019             |        |
                   |
| B minor mass     | Yes    | 1 planned absence (6 Mar)
                   |
|                  |        | 6 Mar Present when not expected
                   |
| Songs Summer Eve | No     |
                   |
| French Choral    | Yes    | "I'm intending to sing in [this]"
                   |

Am I right about my use case being different, and therefore perhaps having
been caught up unintentionally in this change?

Best wishes,
    Neil

[-- Attachment #2: Type: text/html, Size: 6146 bytes --]

  reply	other threads:[~2019-05-12 12:16 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-11  9:42 Column width cookies stopped working in 9.2.3? Neil Jerram
2019-05-11 14:30 ` Fraga, Eric
2019-05-11 23:28 ` Nick Dokos
2019-05-12 12:15   ` Neil Jerram [this message]
2019-05-12 21:37     ` Nick Dokos
2019-05-13 10:32       ` Neil Jerram
2019-05-14  6:21         ` Michael Brand

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKuG=vtYGjo45U2_3R-CdFeQs_gZfyQQVOuPAXUR2o5jVv0ZCg@mail.gmail.com' \
    --to=neiljerram@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=ndokos@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).