emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Cc: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>,
	Fraga <ucecesf@ucl.ac.uk>, "Jeff Horn" <jrhorn424@gmail.com>
Subject: org-indent, org-inlinetask: patches on github
Date: Sun, 07 Nov 2010 16:21:56 +0100	[thread overview]
Message-ID: <871v6x88h7.wl%n.goaziou@gmail.com> (raw)

Hello,
Hello,

Instead of flooding the mailing lists with patches to org-inlinetask,
I added them into my repository.

They should fix quite a few bugs:

- indentation with inline tasks (with or without org-indent mode
  turned on) should be fine ;
- cycling levels of headings in indent-mode should be fixed ;
- C-c @ now marks inline task if point is inside the task, or the
  subtree if point is outside ;
- exporting inline tasks to latex is repaired.


Furthermore, the last patch introduces a template concept in inline
tasks exporting, namely `org-inlinetask-export-templates. Here is its
doc-string:

| This variable is an alist of shape (BACKEND STRING OBJECTS).
|
| BACKEND is the name of the backend for the template (ascii, html...).
|
| STRING is a format control string.
|
| OBJECTS is a list of elements to be substituted into the format
| string.  They can be of any type, from a string to a form
| returning a value (thus allowing conditional insertion).  A nil
| object will be substituted as the empty string.  Obviously, there
| must be at least as many objects as %-sequences in the format
| string.
|
| Moreover, the following special keywords are defined: `todo',
| `priority', `heading', `content', `tags'.  If some of them are not
| defined in an inline task, their value is the empty string.
|
| As an example, valid associations are:
|
| (html "<ul><li>%s <p>%s</p></li></ul>" (heading content))
|
| or, in a conditional way,
|
| (latex "\\begin{flushright}%s%s%s\\end{flushright}"
|        ((unless (eq todo "") (format "\\textsc{%s%s: }" todo priority))
|         heading
|         (unless (eq content "") (format "\n%s" content))))

This should be enough to cover most needs with regards to inline
tasks. Please note that drawers and scheduled items are not exported,
and while it would be possible, they weren't exported before, anyway.

Default values are conservative, only ascii export is more exotic (but
will be changed if someone comes up with a better idea), as I wanted
to have some fun with that variable.

I didn't make it customizable for two reasons:
1. Using this is for real men. Real men don't use customize ! (in fact
   the second reason is the more problematic ;))
2. I don't know how to tell customize to understand such a beast.

Here is the repo:

  git://github.com/ngz/org-mode-lists.git  branch: inlinetask

To maintainers:
- to sum it up, if you don't like the idea of templates, or how it is
  implemented, all commits but the last one are only fixes.
- could you delete submissions from 11-04 and 11-06 (but _not_ from
  10-26) on the patchwork server, as they are now included in the
  repo?


I'm now waiting for comments from the 3-3.5 persons in the world using
inline tasks!

Regards,

-- 
Nicolas Goaziou

Regards,

-- Nicolas

             reply	other threads:[~2010-11-07 15:22 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-07 15:21 Nicolas Goaziou [this message]
2010-11-07 17:09 ` org-indent, org-inlinetask: patches on github Carsten Dominik
2010-11-08  4:00   ` Jeff Horn
2010-11-08  7:01     ` Nicolas Goaziou
2010-11-08 12:41       ` Jeff Horn
2010-11-08 13:25         ` Eric S Fraga
2010-11-08 14:41           ` Jeff Horn
2010-12-06 18:45   ` Nicolas Goaziou
2010-12-07 10:29     ` Sébastien Vauban
2010-11-07 18:25 ` Jeff Horn
2010-11-08  8:48 ` Eric S Fraga
2010-11-08 13:23 ` Eric S Fraga
2010-11-08 20:33 ` Sébastien Vauban
2010-11-18 22:22   ` Sébastien Vauban
2010-11-18 23:27     ` Nicolas Goaziou
2010-11-19 12:34       ` Sébastien Vauban
2010-11-20 20:50         ` Eric S Fraga
2010-11-28 12:17           ` Nicolas Goaziou
2010-11-28 17:16             ` Jeff Horn

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=871v6x88h7.wl%n.goaziou@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=jrhorn424@gmail.com \
    --cc=ucecesf@ucl.ac.uk \
    --cc=wxhgmqzgwmuf@spammotel.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).