[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 6cd69b44d2 08/37: docs: corrected based on f
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 6cd69b44d2 08/37: docs: corrected based on flymake and checkdoc |
Date: |
Sat, 14 Jan 2023 10:58:00 -0500 (EST) |
branch: externals/org-remark
commit 6cd69b44d25f6c899c36c1ac1d7d84e30c3a1697
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
docs: corrected based on flymake and checkdoc
---
org-remark.el | 30 +++++++++++++++++-------------
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/org-remark.el b/org-remark.el
index b9e6d56f8e..54f899fdbb 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -119,7 +119,7 @@ The current buffer is the note buffer."
;;;; Variables
(defvar-local org-remark-highlights '()
- "Keep track of all the highlights in current buffer.
+ "All the highlights in current source buffer.
It is a local variable and is a list of overlays. Each overlay
represents a highlighted text region.
@@ -127,19 +127,21 @@ On `save-buffer' each highlight will be saved in the
notes file
returned by `org-remark-notes-get-file-name'.")
(defvar-local org-remark-highlights-hidden nil
- "Keep hidden/shown state of the highlights in current buffer.")
+ "Hidden/shown state of the highlights in current source buffer.")
(defvar-local org-remark-notes-source-buffers '()
"List of source buffers that have loaded current notes buffer.
-Each notes' buffer locally keeps track of the source buffers that
-have loaded notes from itself. Buffers in this list may be
+Each notes buffer locally keeps track of the source buffers that
+have loaded notes from itself. This list is used when automatic
+sync is triggered in `after-save-buffer' of the notes buffer, as
+not all the sources may be open. Buffers in this list may be
killed so that this needs to be checked with `buffer-live-p'.")
(defvar-local org-remark-source-setup-done nil
"Local indicator that sync with notes buffer is set up.")
(defvar org-remark-last-notes-buffer nil
- "Stores the cloned indirect buffer visiting the notes file.
+ "The cloned indirect buffer visiting the notes file.
It is meant to exist only one of these in each Emacs session.")
(defvar org-remark-available-pens nil)
@@ -667,7 +669,7 @@ If there are more than one, return CAR of the list."
(defun org-remark-find-overlay-in (beg end &optional id)
"Return one org-remark overlay between BEG and END.
If there are more than one, return CAR of the list.
-Optioanlly ID can be passed to find the exacth ID match."
+Optionally ID can be passed to find the exact ID match."
(let* ((overlays (overlays-in beg end))
found)
(while overlays
@@ -703,7 +705,7 @@ nil, this function will use the default face
`org-remark-highlighter'
This function will add LABEL and PROPERTIES as overlay
properties. PROPERTIES is a plist of pairs of a symbol and value.
-Return the hightliht overlay.
+Return the highlight overlay.
When this function is used interactively, it will generate a new
ID, always assuming it is working on a new highlighted text
@@ -1116,14 +1118,16 @@ Assume the current buffer is the notes file (indrect or
base)."
(org-remark-highlight-load highlight))))))
(defun org-remark-notes-sync-with-source ()
- "
-It is meant to be used in `after-save-hook'.
-Look at the base buffer for org-remark-notes-source-buffers."
+ "Update sources from the current notes buffer.
+This function iterates through `org-remark-notes-source-buffers'
+in the base buffer of the notes.
+
+It is meant to be used in `after-save-hook'."
;;; Assume the current buffer is either the indirect or notes buffer
;;; in question. In order for the `after-save-hook' to correctly
;;; triggers notes sync, we need to get the base buffer if the note
- ;;; buffer is an indirect one.
- (let* ((notes-buffer (or (buffer-base-buffer) (current-buffer))))
+ ;;; buffer being saved is an indirect one.
+ (let ((notes-buffer (or (buffer-base-buffer) (current-buffer))))
(with-current-buffer notes-buffer
(org-remark-notes-housekeep)
(dolist (source-buf org-remark-notes-source-buffers)
@@ -1138,7 +1142,7 @@ Look at the base buffer for
org-remark-notes-source-buffers."
The file name is returned by `org-remark-notes-get-file-name'.
It is assumed that the current buffer is source buffer. Each
highlight is a property list in the following properties:
- (:id ID :location (BEG . END) :label LABEL :props '(PROPERTIES)"
+ (:id ID :location (BEG . END) :label LABEL :props (PROPERTIES)"
;; Set source-file-name first, as `find-file-noselect' will set the
;; current-buffer to source-file-name. Issue #39 FIXME: A way to make
;; this sequence agnostic is preferred, if there is a function that
- [elpa] externals/org-remark 7367b7d056 20/37: fix: Text cut off in notes if the highlight spans across two lines #56, (continued)
- [elpa] externals/org-remark 7367b7d056 20/37: fix: Text cut off in notes if the highlight spans across two lines #56, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark af1d4261f3 24/37: docs: update README, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 05e18aa08c 30/37: docs: README + user manual, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 3d4ff2e030 03/37: doc: update docstring, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 484d36ad89 06/37: docs(sync): doc string 'org-remark-highlight-save', ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark a9a3520a64 07/37: refactor(save) save notes buffer for each highlight, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 2f25bd97bc 15/37: refactor: change the default colors of yellow pen #52, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark f08df3f524 17/37: fix: prop name _org-remark-note-body -> *org-remark-note-body, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark f661e6c78e 21/37: docs: updated NEWS, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 59b01a827c 27/37: docs: README, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 6cd69b44d2 08/37: docs: corrected based on flymake and checkdoc,
ELPA Syncer <=
- [elpa] externals/org-remark ad0c5e39c2 09/37: refactor: org-remark-notes-setup, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark a89d5a9645 13/37: fix(save): save per highlight and regession for when source = notes, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 8004555a9b 16/37: fix: highlights housekeep to delete notes when you want to keep, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark f48992594d 26/37: docs: CHANGELOG, NEWS, README, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 4c4d729962 36/37: docs: fix formatting issue of known limitations in user manual, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 1ec641589f 12/37: fix: undo a9a3520., ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 048a39f3f9 14/37: fix(save): modifiedp when source = notes buffer, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark dcdc39e394 22/37: fix: missing defvar org-remark-source-find-file-name-functions, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark 4e7db78df3 25/37: docs: README, ELPA Syncer, 2023/01/14
- [elpa] externals/org-remark f1f3310c11 28/37: docs: README & user manual, ELPA Syncer, 2023/01/14