From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oleh Krehel Subject: Re: Is it possible to keep /all/ the heading properties in one place? Date: Fri, 26 Feb 2016 09:18:34 +0100 Message-ID: <87h9gvrijp.fsf@gmail.com> References: <87fuwht5s3.fsf@gmail.com> <87lh683o7c.fsf@nicolasgoaziou.fr> <878u28ucl8.fsf@gmail.com> <878u283n15.fsf@nicolasgoaziou.fr> <87oab4sw70.fsf@gmail.com> <87h9gw20mi.fsf@nicolasgoaziou.fr> <87a8mooazg.fsf@gmail.com> <87a8mo1r69.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZDbk-0007kj-2h for emacs-orgmode@gnu.org; Fri, 26 Feb 2016 03:18:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aZDbg-0002DV-NA for emacs-orgmode@gnu.org; Fri, 26 Feb 2016 03:18:40 -0500 Received: from mail-wm0-x22d.google.com ([2a00:1450:400c:c09::22d]:38114) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aZDbg-0002DJ-Br for emacs-orgmode@gnu.org; Fri, 26 Feb 2016 03:18:36 -0500 Received: by mail-wm0-x22d.google.com with SMTP id a4so59542941wme.1 for ; Fri, 26 Feb 2016 00:18:36 -0800 (PST) Received: from firefly ([91.219.111.102]) by smtp.gmail.com with ESMTPSA id ka7sm11349019wjb.8.2016.02.26.00.18.34 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 26 Feb 2016 00:18:34 -0800 (PST) In-Reply-To: <87a8mo1r69.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Thu, 25 Feb 2016 21:16:46 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nicolas Goaziou writes: > So is Lisp. I like Lisp. > It boils down to ask users to write Lisp by hand at some point. Not > everyone wants to use interactive tools. I claim that a user can get by without having to write a single line of Lisp manually. M-x `customize' has been doing it successfully for years. > Unfortunately, writing Lisp is not fun in a basic text editing > environment. Right, not in a basic one. But it's great in Emacs. And for others, they could use `read' followed by a graphical tool like a TreeView widget, followed by `prin1'. This Lisp is supposed to be so simple that a `read'->`delete-sexp'->`prin1' is an `identity' operation. > Here is the full Org property syntax: > > 3.7 Property Drawers > =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80= =E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2=94=80=E2= =94=80=E2=94=80=E2=94=80=E2=94=80 > > Property drawers are a special type of drawer containing properties > attached to a headline. They are located right after a [headline] and > its [planning] information. > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 HEADLINE > =E2=94=82 PROPERTYDRAWER > =E2=94=82=20 > =E2=94=82 HEADLINE > =E2=94=82 PLANNING > =E2=94=82 PROPERTYDRAWER > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > > PROPERTYDRAWER follows the pattern > > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 > =E2=94=82 :PROPERTIES: > =E2=94=82 CONTENTS > =E2=94=82 :END: > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 Missed out the logging drawer and the tags. That's two things more out of a single place than I'd like. > I don't think this is very impressive nor particularly difficult to > implement. I get a headache just trying to imagine how I could hide the properties /and/ the logging /and/ the tags into a single fold-able thing. > You may want to have a look at "outline.el", which is Org without all > the extra "stuff". Already have been using it for years. I actually prefer outline.el to org-babel for most things now. But not for GTD - for that I need Org. > Alas, the Devil is in the detail: > > (example > ... > (properties ...)) Not really. You see, the `beginning-of-defun' trick is: a defun is a thing that starts in the first column (that's why we escape all parens in the first column in Elisp). This trick has been working successfully for decades. It's both fast and simple. Since all Lisp properties are written to programmatically by Org, they are always perfectly indented. And if a person wants to edit it manually, he'll have to simply remember to `indent-sexp'. > Anyway, at this point I don't know what to add. Suggestion, and I've said it before, Org needs a standard simple inline kbd markup. Just like Markdown's and Texinfo's @kbd{}. Since Org is tied into Emacs having an easy (and unambiguous) way to denote keyboard shortcuts would be very convenient. Adding that would also progress the direction of having Org be the language for Emacs manuals. Right now, Org's own manual is in Texinfo, which is a shame since no one likes Texinfo and few people understand enough of it to get by. > You want to improve Org and this is fine. However simplistic examples > do not help understanding the full picture, at least for me. So, > implement your idea, test the syntax, ask for feedback here. In the > end, if it happens to be superior, users will naturally switch to it, > for the benefit of everyone. Thanks, I'll be trying that out. In the last week I've been archiving most of my gtd.org. So the switch should be easier now. Do we have a way in Org to archive a heading form anywhere into a memoir format like this: * 2014 ** 2014-01 January *** 2014-01-03 Thursday **** CANCELLED Foobar CLOSED: [2014-01-03 Fri 09:42] SCHEDULED: <2013-12-25 Wed> Added: [2013-08-08 Thu 17:38] **** DONE Baz CLOSED: [2014-01-03 Fri 17:12] Each heading is archived into level 4, on the day it was closed. I had it working a few years ago, relying on org-archive.el. But when I tried this week, it stopped working, so I had to rewrite it. > You may also want to have a look at Skribilo > (http://www.nongnu.org/skribilo/), if you don't know it already. Thanks, I didn't know about it. It looks very similar to Racket's Scribble, and my own ElTeX.