[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org 092e921 2/2: org-element-cache-map: Fix when start
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org 092e921 2/2: org-element-cache-map: Fix when start is nil after buffer modification |
Date: |
Thu, 16 Dec 2021 10:57:29 -0500 (EST) |
branch: externals/org
commit 092e921423f02d48778a0c5d298a211388af8090
Author: Ihor Radchenko <yantar92@gmail.com>
Commit: Ihor Radchenko <yantar92@gmail.com>
org-element-cache-map: Fix when start is nil after buffer modification
---
lisp/org-element.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/org-element.el b/lisp/org-element.el
index 1c37f79..2106f56 100644
--- a/lisp/org-element.el
+++ b/lisp/org-element.el
@@ -7507,7 +7507,7 @@ the cache."
(eq cache-size (cache-size)))
;; START may no longer be valid, update
;; it to beginning of real element.
- (goto-char start)
+ (when start (goto-char start))
;; Upon modification, START may lay
;; inside an element. We want to move
;; it to real beginning then despite