emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Feature request: filling of long captions


From: Nicolas Goaziou
Subject: Re: [O] Feature request: filling of long captions
Date: Fri, 07 Feb 2014 10:56:44 +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 via email to

[Prev in Thread] Current Thread [Next in Thread]