1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-21 06:55:35 +00:00

org-get-export-keywords: Fix completing export attributes

* lisp/org.el (org-get-export-keywords): Complete export attributes
like #+attr_<backend>:.

Reported-by: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
Link: https://orgmode.org/list/CAO48Bk-NB9HyavB7tCbq3hQZW=CboHx5qC_-s=kF_v2uihC2Rg@mail.gmail.com
This commit is contained in:
Ihor Radchenko 2024-10-12 12:51:26 +02:00
parent 19d462e7a7
commit 96f695034c
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B

View File

@ -9102,6 +9102,8 @@ keywords relative to each registered export backend."
(delq nil keywords))
;; Backend name (for keywords, like #+LATEX:)
(push (upcase (symbol-name (org-export-backend-name backend))) keywords)
;; Backend attributes, like #+ATTR_LATEX:
(push (format "ATTR_%s" (upcase (symbol-name (org-export-backend-name backend)))) keywords)
(dolist (option-entry (org-export-backend-options backend))
;; Backend options.
(push (nth 1 option-entry) keywords)))))