[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 771074ba5e 047/101: org-in-archived-heading-p: Use
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 771074ba5e 047/101: org-in-archived-heading-p: Use org-element API |
Date: |
Sat, 1 Jul 2023 09:59:08 -0400 (EDT) |
branch: externals/org
commit 771074ba5e3e7eb6fcd7792a93fc7b312869af86
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
org-in-archived-heading-p: Use org-element API
---
lisp/org.el | 26 +++++++++-----------------
1 file changed, 9 insertions(+), 17 deletions(-)
diff --git a/lisp/org.el b/lisp/org.el
index 72ae318b9f..44a41f9f63 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -20530,23 +20530,15 @@ This function also checks ancestors of the current
headline,
unless optional argument NO-INHERITANCE is non-nil.
Optional argument ELEMENT contains element at point."
- (cond
- ((and (not element) (org-before-first-heading-p)) nil)
- ((if element
- (org-element-property :archivedp element)
- (let ((tags (org-get-tags element 'local)))
- (and tags
- (cl-some (apply-partially #'string= org-archive-tag) tags)))))
- (no-inheritance nil)
- (t
- (if (or element (org-element--cache-active-p))
- (catch :archived
- (unless element (setq element (org-element-at-point)))
- (while element
- (when (org-element-property :archivedp element)
- (throw :archived t))
- (setq element (org-element-parent element))))
- (save-excursion (and (org-up-heading-safe)
(org-in-archived-heading-p)))))))
+ (unless element
+ (setq
+ element
+ (org-element-lineage
+ (org-element-at-point)
+ '(headline inlinetask) 'with-self)))
+ (if no-inheritance
+ (org-element-property :archivedp element)
+ (org-element-property-inherited :archivedp element 'with-self)))
(defun org-at-comment-p nil
"Return t if cursor is in a commented line."
- [elpa] externals/org 96b754c105 083/101: org-get-category, org-get-tags: Clarify that match data is modified, (continued)
- [elpa] externals/org 96b754c105 083/101: org-get-category, org-get-tags: Clarify that match data is modified, ELPA Syncer, 2023/07/01
- [elpa] externals/org fcde1f779d 090/101: test-org-element/at-point: Add new test, ELPA Syncer, 2023/07/01
- [elpa] externals/org 383d5dacb7 096/101: org-fold-show-set-visibility: Fix lineage visibility, ELPA Syncer, 2023/07/01
- [elpa] externals/org 4a8849340d 005/101: org-element-ast: New functions to map and resolve property values, ELPA Syncer, 2023/07/01
- [elpa] externals/org ea9d5b45db 012/101: org-element-create: Allow single &rest argument as a list, ELPA Syncer, 2023/07/01
- [elpa] externals/org a8286a5a9e 015/101: org-element: Record origin buffer when parsing, ELPA Syncer, 2023/07/01
- [elpa] externals/org 5e94d5cef6 026/101: org-element-map: Allow FUN to be a lisp form, ELPA Syncer, 2023/07/01
- [elpa] externals/org 4fcdcb456d 021/101: org-element: Defer large buffer substrings when parsing, ELPA Syncer, 2023/07/01
- [elpa] externals/org 01351f3eab 067/101: Restructure file organization, ELPA Syncer, 2023/07/01
- [elpa] externals/org 69383dfc24 031/101: org-ascii--current-justification: Use `org-element-lineage-map', ELPA Syncer, 2023/07/01
- [elpa] externals/org 771074ba5e 047/101: org-in-archived-heading-p: Use org-element API,
ELPA Syncer <=
- [elpa] externals/org 5898fcf269 061/101: Remove unused declares, ELPA Syncer, 2023/07/01
- [elpa] externals/org 3ce57e17a0 071/101: org-item-re: Convert into defsubst, ELPA Syncer, 2023/07/01
- [elpa] externals/org 52c63f5cce 095/101: org-lint-export-option-keywords: Small refactoring, ELPA Syncer, 2023/07/01
- [elpa] externals/org 7f337a2b95 098/101: org-fold-core: Fix isearch with `org-fold-core-isearch-open-function', ELPA Syncer, 2023/07/01
- [elpa] externals/org afbbebff3f 097/101: org-fold-core-get-folding-spec: Respect `org-fold-core-style', ELPA Syncer, 2023/07/01
- [elpa] externals/org 80122a1204 008/101: org-element-ast: New function `org-element-property-2', ELPA Syncer, 2023/07/01
- [elpa] externals/org 5c05ac198a 069/101: testing: Test with and without cache in more cases, ELPA Syncer, 2023/07/01
- [elpa] externals/org f63000cca8 075/101: org-element--current-element: Use "nogroup" versions of regexps, ELPA Syncer, 2023/07/01
- [elpa] externals/org f93d855c51 077/101: Prefer `forward-line' over `beginning-of-line', ELPA Syncer, 2023/07/01
- [elpa] externals/org 924a64da39 013/101: org-element: Use the new org-element-ast library, ELPA Syncer, 2023/07/01