Re: [O] Restrict include to some backend

2016-09-12 Thread Clément Pit--Claudel
Sure thing :) Here it is: (defun ~/filter-begin-only (type) "Remove BEGIN_ONLY %s blocks whose %s doesn't equal TYPE. For those that match, only remove the delimiters." (goto-char (point-min)) (while (re-search-forward " *#\\+BEGIN_ONLY \\([a-z]+\\)\n" nil t) (let ((begin-block-type

Re: [O] Restrict include to some backend

2016-09-12 Thread Kaushal Modi
I am looking forward to the BEGIN_ONLY/END_ONLY kind of solution too. @Clément Would you please share your draft solution? Thanks. On Tue, Sep 6, 2016 at 5:39 PM Nicolas Goaziou wrote: > Hello, > > Clément Pit--Claudel writes: > > > Do you think

Re: [O] [PATCH] org-mime supports emacs24

2016-09-12 Thread chen bin
On Tue, Sep 6, 2016 at 1:57 AM, Nicolas Goaziou wrote: > project, tho. It could be useful to add yours to any ELPA and have the Sure, I will contact marmelade and melpa maintainer asap, for now, There are also some pull request and bugs I need handle. So it could take a

Re: [O] Trouble with capture template and prompt

2016-09-12 Thread Adam Porter
Bart Bunting writes: > The error that is shown in the messages buffer is: > > Template key: > Capture abort: (error Key sequence C-c ! starts with non-prefix key C-c) I think this means that you have tried to specify the capture template key incorrectly. It would be

Re: [O] capture with iceweasel/firefox -- nothing works

2016-09-12 Thread Adam Porter
Samuel, in case you missed it, you might find this message helpful: Message-ID:

Re: [O] using rgrep, ag, etc in folded org files?

2016-09-12 Thread Adam Porter
You might find this package useful (it's mine ;): https://github.com/alphapapa/helm-org-rifle Or you can install it from MELPA. I have plans to look into using external tools to find matches someday. git grep seems like the most promising, but maybe ag or agrep could work too. In the meantime,

Re: [O] Programmatically handling org files

2016-09-12 Thread Nick Dokos
Thorsten Jolitz writes: > ... > > If you feel you don't need the whole parse tree, but rather want to act > locally on the Org element at point, you might want to look at > org-dp.el > ... Just a note for the benefit of newcomers to the list: Thorsten's org-dp.el (and many

Re: [O] Programmatically handling org files

2016-09-12 Thread Joost Kremers
On Mon, Sep 12 2016, John Kitchin wrote: >> I was wondering if there is some sort of (semi)official API for handling >> org files programmatically. That's to say, is there a documented way for >> non-org Emacs packages to manipulate (the contents of) org files? > > None that I know of. A

Re: [O] Programmatically handling org files

2016-09-12 Thread Joost Kremers
On Mon, Sep 12 2016, John Kitchin wrote: > indeed! Maybe I misunderstood the OP. > > You can find more on the API here: > > http://orgmode.org/worg/dev/org-element-api.html > > There are also a bunch of functions to do other things, e.g. > > (org-todo) (org-cut-subtree) (org-entry-put) and many

Re: [O] Programmatically handling org files

2016-09-12 Thread Joost Kremers
On Mon, Sep 12 2016, Thorsten Jolitz wrote: > by "non-org Emacs packages" you mean Emacs packages written in Elisp, > but not part of Org-mode? Yes, exactly. My wording wasn't entirely clear, I admit. > The org-mode parser converts an Org document into a nested list and > provides many

Re: [O] Programmatically handling org files

2016-09-12 Thread John Kitchin
indeed! Maybe I misunderstood the OP. You can find more on the API here: http://orgmode.org/worg/dev/org-element-api.html There are also a bunch of functions to do other things, e.g. (org-todo) (org-cut-subtree) (org-entry-put) and many others that let you change properties of headings, cut

Re: [O] Programmatically handling org files

2016-09-12 Thread Thorsten Jolitz
Joost Kremers writes: Hi, > I was wondering if there is some sort of (semi)official API for handling > org files programmatically. That's to say, is there a documented way for > non-org Emacs packages to manipulate (the contents of) org files? > > Specifically, I'm

Re: [O] using rgrep, ag, etc in folded org files?

2016-09-12 Thread Clément Pit--Claudel
On 2016-09-12 11:36, Aaron Ecay wrote: > (Arguably this hook function should be added to org-mode, if enough > people find it useful). That would be brilliant. signature.asc Description: OpenPGP digital signature

Re: [O] using rgrep, ag, etc in folded org files?

2016-09-12 Thread Aaron Ecay
Hi Joakim, The function org-reveal needs to be run after the search is executed. If you are using the built-in emacs rgrep (for example), I think you need to add a function to next-error-hook. Grep for “add-hook 'occur-mode-find-occurrence-hook” in org.el for inspiration. (Arguably this hook

Re: [O] Programmatically handling org files

2016-09-12 Thread John Kitchin
Joost Kremers writes: > Hi all, > > I was wondering if there is some sort of (semi)official API for handling > org files programmatically. That's to say, is there a documented way for > non-org Emacs packages to manipulate (the contents of) org files? None that I know of. A non-elisp lib would

[O] Trouble with capture template and prompt

2016-09-12 Thread Bart Bunting
Hi, Tried to send this to the list a few days back but don't think it made it. Sorry if it is duplicated. - Hi, I have the following capture template defined in the customize interface. It used to work ok but now gives a cryptic (well at least to me) error: I think I've narrowed down

[O] Programmatically handling org files

2016-09-12 Thread Joost Kremers
Hi all, I was wondering if there is some sort of (semi)official API for handling org files programmatically. That's to say, is there a documented way for non-org Emacs packages to manipulate (the contents of) org files? Specifically, I'm wondering about creating and deleting entries (by entries

Re: [O] org-review is on melpa

2016-09-12 Thread Alan Schmitt
On 2016-09-10 22:12, Karl Voit writes: > * Alan Schmitt wrote: >> --=-=-= >> Content-Type: text/plain; charset=utf-8 >> Content-Transfer-Encoding: quoted-printable > > Btw, is there a reason that those two lines are not part of the > header?