From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff Horn Subject: Re: org-indent, org-inlinetask: patches on github Date: Sun, 7 Nov 2010 13:25:55 -0500 Message-ID: References: <871v6x88h7.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=58293 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PF9we-0002A7-Pq for emacs-orgmode@gnu.org; Sun, 07 Nov 2010 13:26:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PF9wY-00062U-Td for emacs-orgmode@gnu.org; Sun, 07 Nov 2010 13:26:24 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:61107) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PF9wY-00061R-K0 for emacs-orgmode@gnu.org; Sun, 07 Nov 2010 13:26:18 -0500 Received: by fxm2 with SMTP id 2so3477970fxm.0 for ; Sun, 07 Nov 2010 10:26:17 -0800 (PST) In-Reply-To: <871v6x88h7.wl%n.goaziou@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: =?ISO-8859-1?Q?S=E9bastien_Vauban?= , Eric S Fraga , Org Mode List Yes, thanks a ton Nicholas! I will test these patches this afternoon. Jeff On Sun, Nov 7, 2010 at 10:21 AM, Nicolas Goaziou wrot= e: > 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 > =A0turned 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 > =A0subtree 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. =A0They can be of any type, from a string to a form > | returning a value (thus allowing conditional insertion). =A0A nil > | object will be substituted as the empty string. =A0Obviously, 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'. =A0If some of them are not > | defined in an inline task, their value is the empty string. > | > | As an example, valid associations are: > | > | (html "
  • %s

    %s

" (heading content)) > | > | or, in a conditional way, > | > | (latex "\\begin{flushright}%s%s%s\\end{flushright}" > | =A0 =A0 =A0 =A0((unless (eq todo "") (format "\\textsc{%s%s: }" todo pr= iority)) > | =A0 =A0 =A0 =A0 heading > | =A0 =A0 =A0 =A0 (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 > =A0 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: > > =A0git://github.com/ngz/org-mode-lists.git =A0branch: inlinetask > > To maintainers: > - to sum it up, if you don't like the idea of templates, or how it is > =A0implemented, all commits but the last one are only fixes. > - could you delete submissions from 11-04 and 11-06 (but _not_ from > =A010-26) on the patchwork server, as they are now included in the > =A0repo? > > > I'm now waiting for comments from the 3-3.5 persons in the world using > inline tasks! > > Regards, > > -- > Nicolas Goaziou > > Regards, > > -- Nicolas > --=20 Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jhorn@gmu.edu jrhorn424@gmail.com http://www.failuretorefrain.com/jeff/