emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Alain.Cochard@unistra.fr
To: Ihor Radchenko <yantar92@posteo.net>
Cc: alain.cochard@unistra.fr, Org Mode Mailing List <emacs-orgmode@gnu.org>
Subject: Re: Table not expanded as I expect upon <TAB>
Date: Tue, 28 Mar 2023 13:40:37 +0200	[thread overview]
Message-ID: <25634.53813.135439.449454@gargle.gargle.HOWL> (raw)
In-Reply-To: <87sfdqtpa6.fsf@localhost>

Ihor Radchenko writes on Mon 27 Mar 2023 11:19:
 > Alain.Cochard@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 <TAB>, 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 <TAB> 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 '|<TAB>' at
the beginning of a line starting by '|-' would be interpreted just as
'|-<TAB>'.  (Not a dramatic improvement, I admit :-)

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.cochard@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 ]



  reply	other threads:[~2023-03-28 11:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-26  8:31 Table not expanded as I expect upon <TAB> Alain.Cochard
2023-03-27 11:19 ` Ihor Radchenko
2023-03-28 11:40   ` Alain.Cochard [this message]
2023-03-29  9:37     ` Ihor Radchenko

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=25634.53813.135439.449454@gargle.gargle.HOWL \
    --to=alain.cochard@unistra.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=yantar92@posteo.net \
    /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).