Hello Alan

On 6 October 2014 08:23, Alan Schmitt <alan.schmitt@polytechnique.org> 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