[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Add NO-STATS switch to org-get-heading
From: |
Nicolas Goaziou |
Subject: |
Re: [PATCH] Add NO-STATS switch to org-get-heading |
Date: |
Fri, 13 Mar 2020 18:22:26 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
Brice Waegeneire <address@hidden> writes:
> * lisp/org-element.el (org-element-context): Handle headlines only
> containing a statistics cookie.
> * lisp/org.el (test-org/get-heading): Add regex capture group 6 for
> statistics cookie.
> (org-get-heading): Add NO-STATS argument, if
> non-nil, will not return the statistics cookie.
> * testing/lisp/test-org.el (test-org/get-heading): Add 3 tests using the
> NO-STATS argument.
This assumes statistics cookie is always located at the end of the
title, before the tags. This is not required by the syntax.
Syntax can evolve, but it could introduce many backward
incompatibilities, so it must be discussed first.
Regards,
--
Nicolas Goaziou