branch: externals/org-remark commit d2135790a772a8ae9cebf98e46ca630704e7489d Author: Noboru Ota <m...@nobiot.com> Commit: Noboru Ota <m...@nobiot.com>
intrnl: refactor empty-buffer-p --- org-remark.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/org-remark.el b/org-remark.el index aba3ddbec8..26454b4f85 100644 --- a/org-remark.el +++ b/org-remark.el @@ -5,7 +5,7 @@ ;; Author: Noboru Ota <m...@nobiot.com> ;; URL: https://github.com/nobiot/org-remark ;; Version: 0.0.7 -;; Last modified: 12 January 2022 +;; Last modified: 13 January 2022 ;; Package-Requires: ((emacs "27.1") (org "9.4")) ;; Keywords: org-mode, annotation, writing, note-taking, marginal-notes @@ -804,9 +804,7 @@ Case 2. The overlay points to no buffer (defun org-remark-empty-buffer-p () "Return non-nil when the current buffer is empty." - (save-excursion - (goto-char (point-max)) - (= 1 (point)))) + (when (= 0 (buffer-size)))) ;;;; Legacy data conversion from Org-marginalia