emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/embark e0ee1c7862: Use org-element only in org-mode buf


From: ELPA Syncer
Subject: [elpa] externals/embark e0ee1c7862: Use org-element only in org-mode buffers (fixes #698)
Date: Sun, 28 Jan 2024 21:58:01 -0500 (EST)

branch: externals/embark
commit e0ee1c78620c7cdc81bd786fb44bf0e2ee918e31
Author: Omar Antolin Camarena <omar.antolin@gmail.com>
Commit: Omar Antolin Camarena <omar.antolin@gmail.com>

    Use org-element only in org-mode buffers (fixes #698)
    
    The org-element parser will start raising errors in non-org-mode
    buffers in future org releases. We were using it in org-agenda buffers
    too, but the benefit is almost non-existent: by far the most
    important org targets in agenda buffers are headings and links and
    those target finders do not use org-element.
---
 embark-org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/embark-org.el b/embark-org.el
index 1bd53423bb..8ba3530b33 100644
--- a/embark-org.el
+++ b/embark-org.el
@@ -100,7 +100,7 @@
 
 (defun embark-org-target-element-context ()
   "Target all Org elements or objects around point."
-  (when (derived-mode-p 'org-mode 'org-agenda-mode)
+  (when (derived-mode-p 'org-mode)
     (cl-loop
      for elt = (org-element-lineage (org-element-context) embark-org--types t)
      then (org-element-lineage elt embark-org--types)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]