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

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

[elpa] externals/org 494c203: org-element-at-point: Fix breakage when ca


From: ELPA Syncer
Subject: [elpa] externals/org 494c203: org-element-at-point: Fix breakage when called at the end of section
Date: Wed, 10 Nov 2021 08:57:25 -0500 (EST)

branch: externals/org
commit 494c20363968899f80bd42306730f568c25331f3
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>

    org-element-at-point: Fix breakage when called at the end of section
    
    * lisp/org-element.el (org-element-at-point): Do no unconditionally
    return first matching cached element when point is within blank lines
    after section element and CACHED-ONLY is non-nil.
    
    Fixes https://list.orgmode.org/smbl59$qjm$1@ciao.gmane.io/T/#u
---
 lisp/org-element.el | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lisp/org-element.el b/lisp/org-element.el
index 54e1b4d..c98e95b 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -7511,9 +7511,6 @@ element ending there."
                                  (and (org-element-property :contents-begin 
element)
                                       (>= pom (org-element-property :begin 
element))
                                       (< pom (org-element-property 
:contents-begin element)))
-                                 (and (org-element-property :contents-end 
element)
-                                      (< pom (org-element-property :end 
element))
-                                      (>= pom (org-element-property 
:contents-end element)))
                                  (and (not (org-element-property :contents-end 
element))
                                       (>= pom (org-element-property :begin 
element))
                                       (< pom (org-element-property :end 
element)))))))



reply via email to

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