[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 607c230d74 041/101: org-with-point-at: Accept synta
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 607c230d74 041/101: org-with-point-at: Accept syntax node as POM |
Date: |
Sat, 1 Jul 2023 09:59:04 -0400 (EDT) |
branch: externals/org
commit 607c230d740f07c8f7ec9ce2b9fbae93e6dab242
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>
org-with-point-at: Accept syntax node as POM
---
lisp/org-macs.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/lisp/org-macs.el b/lisp/org-macs.el
index 51dbfe118a..9a9a939388 100644
--- a/lisp/org-macs.el
+++ b/lisp/org-macs.el
@@ -156,12 +156,18 @@ If BUFFER is nil, use base buffer for `current-buffer'."
,@body))
(defmacro org-with-point-at (pom &rest body)
- "Move to buffer and point of point-or-marker POM for the duration of BODY."
+ "Move to buffer and point of POM for the duration of BODY.
+POM is a point or marker or Org syntax node."
(declare (debug (form body)) (indent 1))
+ (require 'org-element-ast)
(org-with-gensyms (mpom)
`(let ((,mpom ,pom))
(save-excursion
(when (markerp ,mpom) (set-buffer (marker-buffer ,mpom)))
+ (when (org-element-property :buffer ,mpom)
+ (set-buffer (org-element-property :buffer ,mpom)))
+ (when (org-element-property :begin ,mpom)
+ (setq ,mpom (org-element-property :begin ,mpom)))
(org-with-wide-buffer
(goto-char (or ,mpom (point)))
,@body)))))
- [elpa] externals/org 3ce57e17a0 071/101: org-item-re: Convert into defsubst, (continued)
- [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
- [elpa] externals/org a7d1dfa171 027/101: Use `org-element-type-p', ELPA Syncer, 2023/07/01
- [elpa] externals/org 607c230d74 041/101: org-with-point-at: Accept syntax node as POM,
ELPA Syncer <=
- [elpa] externals/org ec8f359bd6 046/101: org-in-commented-heading-p: Use org-element API, ELPA Syncer, 2023/07/01
- [elpa] externals/org 06aba04f75 057/101: org-agenda-get-deadlines: Switch to org-element API, ELPA Syncer, 2023/07/01
- [elpa] externals/org 2b96501070 066/101: org-element: Simplify drawer and property drawer regexps, ELPA Syncer, 2023/07/01
- [elpa] externals/org a80efaf460 072/101: org-element-node-property-parser: Remove unnecessary regexp search, ELPA Syncer, 2023/07/01
- [elpa] externals/org 1c7c67b3c6 076/101: org-indent-drawer, org-indent-block: Remove unnecessary checks, ELPA Syncer, 2023/07/01
- [elpa] externals/org 21d3b888c6 087/101: org-element-create: Fix Emacs 28 compatibility, ELPA Syncer, 2023/07/01
- [elpa] externals/org 5a1dd94309 078/101: org-element: Avoid slow `end-of-line', ELPA Syncer, 2023/07/01
- [elpa] externals/org ea401fb1f4 084/101: org-agenda-ignore-properties: Bump :package-version, ELPA Syncer, 2023/07/01
- [elpa] externals/org 5ed3e1dfc3 081/101: org-refresh-category-properties: Do not check element cache, ELPA Syncer, 2023/07/01
- [elpa] externals/org 81e85bda2b 088/101: Fix Emacs 27 compatibility, ELPA Syncer, 2023/07/01