From mboxrd@z Thu Jan 1 00:00:00 1970 From: Neil Jerram Subject: Re: Column width cookies stopped working in 9.2.3? Date: Sun, 12 May 2019 13:15:55 +0100 Message-ID: References: <87tve04llx.fsf@alphaville.usersys.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000ac4ee30588afc3ca" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:41257) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hPnOn-0000pH-8w for emacs-orgmode@gnu.org; Sun, 12 May 2019 08:16:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hPnOl-0007SJ-Mq for emacs-orgmode@gnu.org; Sun, 12 May 2019 08:16:13 -0400 Received: from mail-lf1-x132.google.com ([2a00:1450:4864:20::132]:38004) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hPnOk-0007Q9-V7 for emacs-orgmode@gnu.org; Sun, 12 May 2019 08:16:11 -0400 Received: by mail-lf1-x132.google.com with SMTP id y19so7066793lfy.5 for ; Sun, 12 May 2019 05:16:08 -0700 (PDT) In-Reply-To: <87tve04llx.fsf@alphaville.usersys.redhat.com> 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: Nick Dokos Cc: Org Mode List --000000000000ac4ee30588afc3ca Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, 12 May 2019 at 00:29, Nick Dokos wrote: > > Neil Jerram 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 =E2=80=98=E2=80=99 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 --000000000000ac4ee30588afc3ca Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 12 May 2019 at 00:29, Nick Dokos <ndokos@gmail.com> wrote:
>
> Neil= Jerram <neiljerram@gmail.com> writes:
>
> > Hi,
> >
> > I have tab= les with width cookies like this:
> >
> > | <16> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 | <6> =C2=A0 | <64> = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
> >
> > 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 i= gnoring the width cookies.
> >
> > I believe I've als= o upgraded in the last few days, and now have:
> > Org mode versio= n 9.2.3 (9.2.3-13-g727c3f-elpa @
> > /home/neil/.emacs.d/elpa/org-= 20190506/)
> >
> > Is this a known thing?=C2=A0 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 thin= gs.=C2=A0 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.=C2=A0 I did ch= eck the manual before writing, and noticed that it still says:

=C2= =A0 =C2=A0 =C2=A0To set the width of a column, one field anywhere in the co= lumn may
=C2=A0 contain just the string =E2=80=98<N>=E2=80=99 wher= e N specifies the width as a number of
=C2=A0 characters.

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

For example, after d= eploying 'C-u C-c TAB', one of my tables now looks like this:
| Programme=C2=A0 =C2=A0 =C2=A0 =C2= =A0 ...| Sang? ...| Notes=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0...|
|-----------= -------...+-------...+-----------------------------------...|
| Audition= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0...|=C2=A0 =C2=A0 =C2=A0 =C2=A0...| Janua= ry 2019=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 ...|
|------------------...+-------...+----------------------= -------------...|
| <16>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0...| <6>=C2=A0 =C2=A0...| <64>=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 ...|
| 2019=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0...|=C2= =A0 =C2=A0 =C2=A0 =C2=A0...|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0...|
| B minor mass=C2=A0 =C2=A0 =C2=A0...| Yes=C2=A0 =C2=A0...| 1= planned absence (6 Mar)=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0...|
|=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ...|=C2=A0 =C2=A0 = =C2=A0 =C2=A0...| 6 Mar Present when not expected=C2=A0 =C2=A0...|
| Son= gs Summer Eve ...| No=C2=A0 =C2=A0 ...|=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0...|
| French Choral=C2=A0 =C2=A0 ...| Yes=C2=A0 =C2=A0= ...| "I'm intending to sing in [this]" ...|

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

<= /font>
| Programme=C2=A0 =C2= =A0 =C2=A0 =C2=A0 | Sang?=C2=A0 | Notes=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0|
|------------------+-------= -+------------------------------------------------------------------|
| = Audition=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 | Ja= nuary 2019=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0=C2=A0
= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
|-= -----------------+--------+------------------------------------------------= ------------------|
| <16>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0| <6>=C2=A0 =C2=A0 | <64>=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0|
| 2019=C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0|=C2=A0 =C2=A0 =C2=A0 =C2=A0 |=C2=A0 =C2=A0 =C2= =A0 =C2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