emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] how to replace 'org-drawers'


From: Jonathan Leech-Pepin
Subject: Re: [O] how to replace 'org-drawers'
Date: Mon, 6 Oct 2014 11:13:51 -0400

Hello Alan

On 6 October 2014 08:23, Alan Schmitt <address@hidden> wrote:
Hello,

I'm trying to use org-wc, but it fails because org-drawers no longer
exists. Is there a suggestion to change
https://github.com/dato/org-wc/blob/master/org-wc.el#L55 such that it
works with current org?


A quick search for variables reveals `org-drawer-regexp` [ "^[     ]*:\\(\\(?:\\w\\|[-_]\\)+\\):[     ]*$" ]

It matches both the name of the drawer and `:END:`.

So the function could be adapted to use `org-drawer-regexp` instead (untested but should match to the next :END:):

((looking-at org-drawer-regexp)
 (while (or (eobp)
            (not (looking-at ":END:")))
   (re-search-forward org-drawer-regexp nil t)))

Regards,
Jonathan
 
Thanks,

Alan

--
OpenPGP Key ID : 040D0A3B4ED2E5C7


reply via email to

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