Re: Table not expanded as I expect upon

2023-03-29 Thread Ihor Radchenko
alain.coch...@unistra.fr writes:

> |   | ---+--- |
> | x | x   |
>
> At 1st sight, it does not seem so to me (in particular, LaTeX export
> does not turn '---+---' into an horizontal rule for the 2
> corresponding columns).  So then one could imagine that '|' at
> the beginning of a line starting by '|-' would be interpreted just as
> '|-'.  (Not a dramatic improvement, I admit :-)

Sorry, but I do not fully understand what you are referring to.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Table not expanded as I expect upon

2023-03-28 Thread Alain . Cochard
Ihor Radchenko writes on Mon 27 Mar 2023 11:19:
 > alain.coch...@unistra.fr writes:
 > 
 > > Maybe it is normal, but if I put the cursor anywhere in the 1st line
 > > (say) of this table
 > >
 > > ||---+---|
 > > || x | x |
 > >
 > > and press , it becomes
 > >
 > > |   | ---+--- |   |
 > > |   | x   | x |
 > >
 > > which is not what I would expect.
 > 
 > This is expected.
 > Only |- at the beginning of the line is seen by Org as horizontal rule.
 > ||-... is an empty cell || followed by a cell |-...|.

Yeah... I should have figured it out by myself.  Thanks a lot for your
time. 

But this got me thinking: I wonder if there is a reasonable/meaningful
use of  either in my above example (with one '|' on the left of
each row) or after inserting a single '|' on the top left position of
the following table

|---+---|
| x | x |

which gives

|   | ---+--- |
| x | x   |

At 1st sight, it does not seem so to me (in particular, LaTeX export
does not turn '---+---' into an horizontal rule for the 2
corresponding columns).  So then one could imagine that '|' at
the beginning of a line starting by '|-' would be interpreted just as
'|-'.  (Not a dramatic improvement, I admit :-)

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]




Re: Table not expanded as I expect upon

2023-03-27 Thread Ihor Radchenko
alain.coch...@unistra.fr writes:

> Maybe it is normal, but if I put the cursor anywhere in the 1st line
> (say) of this table
>
> ||---+---|
> || x | x |
>
> and press , it becomes
>
> |   | ---+--- |   |
> |   | x   | x |
>
> which is not what I would expect.

This is expected.
Only |- at the beginning of the line is seen by Org as horizontal rule.
||-... is an empty cell || followed by a cell |-...|.

See 3.1 Built-in Table Editor section of Org manual.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Table not expanded as I expect upon

2023-03-26 Thread Alain . Cochard


Maybe it is normal, but if I put the cursor anywhere in the 1st line
(say) of this table

||---+---|
|| x | x |

and press , it becomes

|   | ---+--- |   |
|   | x   | x |

which is not what I would expect.


By contrast, if  on this one

|---|+---|
| x || x |

it becomes 

|---+---+---|
| x |   | x |

Further, by doing M- on the 2nd column, it becomes

|---+---+---|
|   | x | x |

and using  then does not change the table, which is the result I
would have expected to start with.


Org mode version 9.7-pre release_9.6.1-321-g44e1cb

GNU Emacs 27.2 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
3.24.30, cairo version 1.17.4) of 2021-08-07

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France | [ slot available for rent ]