|
From: | Nicolas Goaziou |
Subject: | Re: [PATCH] Have C-c C-c recognise #+plot lines |
Date: | Mon, 26 Apr 2021 19:01:30 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hello, Timothy <tecosaur@gmail.com> writes: > + (cond > + ((string-match-p "#\\+plot" (thing-at-point 'line t)) The whole `org-ctrl-c-ctrl-c' function relies on the parser. It would be nice to use it for this case too. Here a more accurate check would be: (and (< (point) (org-element-property :post-affiliated context)) (org-match-line (rx (zero-or-more (any " " "\t")) "#+plot:"))) Regards, -- Nicolas Goaziou
[Prev in Thread] | Current Thread | [Next in Thread] |