[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern c5a50f302d 053/105: guard against deleted bu
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern c5a50f302d 053/105: guard against deleted buffer when org-indent-agent finalizes |
Date: |
Tue, 15 Apr 2025 13:01:00 -0400 (EDT) |
branch: externals/org-modern
commit c5a50f302dc1053d5b498e0ea2bc0ee233e8e1b8
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
guard against deleted buffer when org-indent-agent finalizes
---
org-modern-indent.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/org-modern-indent.el b/org-modern-indent.el
index 663736f766..530ca0aa39 100644
--- a/org-modern-indent.el
+++ b/org-modern-indent.el
@@ -4,7 +4,7 @@
;; Author: J.D. Smith
;; Homepage: https://github.com/jdtsmith/org-modern-indent
;; Package-Requires: ((emacs "27.1") (org "9.5.2") (compat "29.1.4.0"))
-;; Version: 0.1.2
+;; Version: 0.1.3
;; Keywords: convenience
;; Prefix: org-modern-indent
;; Separator: -
@@ -160,9 +160,10 @@ of the returned vector. If PREFIX is nil or empty, nil is
returned."
(if (or (not (bound-and-true-p org-indent-agentized-buffers))
(not (memq buf org-indent-agentized-buffers)))
(progn
- (with-current-buffer buf
- (font-lock-add-keywords nil org-modern-indent--font-lock-keywords t)
- (font-lock-flush)))
+ (when (buffer-live-p buf) ; org-capture buffers vanish fast
+ (with-current-buffer buf
+ (font-lock-add-keywords nil org-modern-indent--font-lock-keywords t)
+ (font-lock-flush))))
(run-at-time 0.1 nil #'org-modern-indent--wait-and-refresh buf)))
(defun org-modern-indent--refresh ()
- [elpa] externals/org-modern 6445696af5 031/105: Separate begin-for use with headline watch, (continued)
- [elpa] externals/org-modern 6445696af5 031/105: Separate begin-for use with headline watch, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 7792c823d2 025/105: Merge pull request #4 from mclearc/main, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 947ac69cbd 039/105: Update README.md, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern e3ed5009e5 051/105: timer function: ensure correct directory, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 280d0094e0 005/105: Update README.md, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern bc5819f450 004/105: Add readme info, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern ed9157df69 010/105: Omit block decoration modifications from undo stack, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 5f6d39126e 042/105: Update README.md, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern cc12cf827b 048/105: README: better discussion of org-src-preserve-indentation, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern f2b6d6db92 029/105: Mention manual indent update after toggling off, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern c5a50f302d 053/105: guard against deleted buffer when org-indent-agent finalizes,
ELPA Syncer <=
- [elpa] externals/org-modern 25594c487e 057/105: return nil properly from block-bracket font-lock function, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 1e4a4d0f15 060/105: Use = not eq, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 5573817412 062/105: block-bracket-flush: docstring improvements, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 664cff0dd1 079/105: Fix name of bracket face, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern fa57160a7a 100/105: README.org: correct link, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern fa960e27f6 036/105: README: describe new v0.1 functionality, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern ff10d3dd2f 026/105: Update README.md, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern d65e773ee2 037/105: Update README.md, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern d78edc6be4 059/105: remove vestigial vars, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 3cba802e1c 058/105: give up after 5 init attempts, and reuse timer, ELPA Syncer, 2025/04/15