You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(org-element-at-point) returns a nested list where sometimes a source block's headers are :headers and sometimes they're :parameters. What logic controls this? Is this intentional behavior or a bug?
To accommodate this behavior, I've defined header matching as:
(defunmh//header-match (elemmatch)
"Returns `t' if MATCH is explicitly a header of ELEM.Explicit in this context means that it's literally written in thefile rather than being provided as a default header argument."
(let* ((elem (org-element-at-point))
(elem-header (append (list (org-element-property :parameters elem))
(org-element-property :header elem)))
(matchp nil))
(dolist (elt elem-header)
(if (string-matchmatch elt)
(setq matchp t)))
matchp))
The text was updated successfully, but these errors were encountered:
(org-element-at-point)
returns a nested list where sometimes a source block's headers are:headers
and sometimes they're:parameters
. What logic controls this? Is this intentional behavior or a bug?To accommodate this behavior, I've defined header matching as:
The text was updated successfully, but these errors were encountered: