From 96f695034c750e5989492cc69b5d0ecd375c1a51 Mon Sep 17 00:00:00 2001 From: Ihor Radchenko Date: Sat, 12 Oct 2024 12:51:26 +0200 Subject: [PATCH] org-get-export-keywords: Fix completing export attributes * lisp/org.el (org-get-export-keywords): Complete export attributes like #+attr_:. Reported-by: Pedro Andres Aranda Gutierrez Link: https://orgmode.org/list/CAO48Bk-NB9HyavB7tCbq3hQZW=CboHx5qC_-s=kF_v2uihC2Rg@mail.gmail.com --- lisp/org.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lisp/org.el b/lisp/org.el index f27a341c6..3c8e3164d 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -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)))))