emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: Andrea Rossetti <andrea.rossetti@gmail.com>,
	emacs-orgmode@gnu.org,
	Andreas Leha <andreas.leha@med.uni-goettingen.de>,
	Eric Schulte <schulte.eric@gmail.com>
Subject: Re: Feature request: filling of long captions
Date: Fri, 07 Feb 2014 10:56:44 +0100	[thread overview]
Message-ID: <87ha8b1c0z.fsf@gmail.com> (raw)
In-Reply-To: <87a9e3cnse.fsf@bzg.ath.cx> (Bastien's message of "Fri, 07 Feb 2014 09:47:13 +0100")

Hello,

> Nicolas, what do you think of enhancing the auto-filling (and
> delete-indentation) capabilities for some affiliated keywords?
>
> #+CAPTION:
> #+HEADER:
> #+TBLFM:

Not that it matters much, but "TBLFM" is not an affiliated keyword per
se, it belongs to the table syntax. OTOH, you can have "CAPTION" and
"HEADER" keywords on top of almost any element type.

Anyway, the three keywords are very different.

To start with the one I know the most, CAPTION can have an optional
value, and multiple caption lines can have as many optional values.

  #+CAPTION[short caption]: long caption
  #+CAPTION[short caption, continued]: long caption, continued.

Therefore, filling it can be tricky since you have to pay attention to
both values.

Moreover, if the "short" caption is too long to fit on one line, that
line still needs to end with "]:" to be valid.

  #+CAPTION[very very ... long "short" caption]:
  #+CAPTION[continued even here]: long caption
  #+CAPTION: long caption continued.

The difficulty lies elsewhere for "HEADER" and "TBLFM". The question is:
can we split a HEADER or TBLFM line anywhere, e.g., in the between
a keyword and its value (or at a space in the middle of a value) for the
former, and in the middle of a formula in the latter? It depends on how
"org-table.el" and "ob.el" read these keywords. I didn't check.

Also, please bear in mind that filling functions have unit tests, so any
new feature ought to be also tested.


Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2014-02-07  9:56 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06  7:46 Feature request: filling of long captions Andreas Leha
2014-02-06  8:43 ` Bastien
2014-02-06 10:20   ` Andreas Leha
2014-02-06 10:40     ` Bastien
2014-02-06 11:14       ` Andreas Leha
2014-02-06 11:40         ` Thomas Holst
2014-02-06 17:26   ` Scott Randby
2014-02-06 22:08   ` Andrea Rossetti
2014-02-07  2:18     ` Eric Schulte
2014-02-07  7:36       ` Andreas Leha
2014-02-07  8:37       ` Nicolas Goaziou
2014-02-07  8:47         ` Bastien
2014-02-07  9:56           ` Nicolas Goaziou [this message]
2014-02-07 10:12             ` Andreas Leha
2014-02-07 10:28               ` Bastien
2014-02-07 10:30                 ` Nicolas Goaziou
2014-02-07 10:35                   ` Bastien
2014-02-07 16:49           ` Eric Schulte

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=87ha8b1c0z.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=andrea.rossetti@gmail.com \
    --cc=andreas.leha@med.uni-goettingen.de \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=schulte.eric@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).