emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org-remark 52bc575bb9 28/67: docs: comments and docstri


From: ELPA Syncer
Subject: [elpa] externals/org-remark 52bc575bb9 28/67: docs: comments and docstring
Date: Sat, 22 Jul 2023 06:59:02 -0400 (EDT)

branch: externals/org-remark
commit 52bc575bb93f5590a97a1a55904b8e0202c1653b
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>

    docs: comments and docstring
---
 org-remark.el | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/org-remark.el b/org-remark.el
index e58d700e41..deea47e2dc 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -861,11 +861,17 @@ buffer for automatic sync."
                   (assoc 'default org-remark-notes-headline-functions)))))
     (with-current-buffer notes-buf
       (org-with-wide-buffer
+       ;; Different major-mode extension may have different structure of notes 
file
+       ;; e.g. nov.el file: 1. source file; 2. book; 3 highlight
+       ;;      text file:   1. source file; 2. highlight
+       ;; Note the lowest level is always the highlight (common). And
+       ;; the top level is the "source" -- the file or URL, etc.
         (dolist (pair notes-headline-functions)
           (let ((level (car pair))
                 (fn (cdr pair)))
             (goto-char (funcall fn level source-buf notes-buf))
             (org-narrow-to-subtree)))
+        ;; Highlight Headline is common to all major-mode extensions
         (setq notes-props
               (org-remark-highlight-add-or-update-highlight-headline
                overlay source-buf notes-buf))))
@@ -959,7 +965,7 @@ beginning of source-headline, which should be one level up."
           ;; Add a properties
           (insert (concat (insert-char (string-to-char "*") level)
                           " " text "\n"))
-          ;; org-remark-original-text should be added onlyy when this
+          ;; org-remark-original-text should be added only when this
           ;; headline is created. No update afterwards
           (plist-put props "org-remark-original-text" text)
           (org-remark-notes-set-properties beg end props)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]