[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark f28dc7e7f5 62/75: docs: update docstrings fo
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark f28dc7e7f5 62/75: docs: update docstrings for remove and delete |
Date: |
Fri, 6 Oct 2023 12:59:21 -0400 (EDT) |
branch: externals/org-remark
commit f28dc7e7f5b99e54640cdcf6f66df8420c9654a1
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
docs: update docstrings for remove and delete
---
org-remark.el | 75 +++++++++++++++++++++++++++++++++--------------------------
1 file changed, 42 insertions(+), 33 deletions(-)
diff --git a/org-remark.el b/org-remark.el
index ed3e37de3b..7d667bc8df 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -6,7 +6,7 @@
;; URL: https://github.com/nobiot/org-remark
;; Version: 1.2.1
;; Created: 22 December 2020
-;; Last modified: 21 August 2023
+;; Last modified: 22 August 2023
;; Package-Requires: ((emacs "27.1") (org "9.4"))
;; Keywords: org-mode, annotation, note-taking, marginal-notes, wp,
@@ -680,37 +680,40 @@ from."
(defun org-remark-remove (point &optional delete)
"Remove the highlight at POINT.
-By default, it will remove the highlight and the properties from the marginal
-notes buffer, but will keep the headline title and any notes in
-it. This is to ensure to keep any notes you might have written
-intact.
+By default, it will remove the highlight from the source buffer
+and the properties of entry from the marginal notes buffer, but
+will keep the headline title and any notes in it. This is to
+ensure to keep any notes you might have written intact.
Optionally, you can let this command delete the entire heading
-subtree for the highlight, along with the annotations you have
-written, by passing universal argument in DELETE.
-
-This command differentiates a single or double universal
-arguments as follows:
+subtree for the highlight along with the notes you have written,
+by passing universal argument in DELETE. For deletion, this
+command differentiates a single or double universal arguments as
+follows:
- \\[universal-argument]
- Look for notes in the entry. If there is any, ask the user for
- confirmation. Delete the entire entry only when the user
- confirms with \\='y\\='. When \\='n\\=', remove the entry's
- properties only. This is the same behavior as
- function `org-remark-delete'.
+ Look for notes in the entry. If there is any, the side-window
+ will show them and a prompt will ask the user for confirmation.
+ The function will delete the entry only when the user confirms
+ with \\='y\\='. When \\='n\\=', it will only remove the entry's
+ properties. This is the same behavior as function
+ `org-remark-delete'.
- \\[universal-argument] \\[universal-argument]
- This is an automatic deletion. Delete the entry without asking
- the user when there is no notes in the entry. If there are any
- notes, remove the entry's properties only. This is the same
- behavior as passing a single `universal-argument' to
- function `org-remark-delete'.
-
-If you have done so by error, you could still `undo' it in the
-marginal notes buffer, and not in the current buffer as adding
-and removing overlays are not part of the undo tree."
+ This is automatic deletion. This command will delete the entry
+ without asking the user when there is no notes in the entry. If
+ there are any notes, only the entry's properties will be
+ removed. This is the same behavior as passing a single
+ `universal-argument' to function `org-remark-delete'.
+
+If you have removed or deleted a highlight by error, you can
+still `undo' it in the marginal notes buffer and not in the
+current buffer. This is because adding and removing overlays are
+not part of the undo tree. You can undo the deletion in the
+marginal notes buffer and then save it to sync the highlight back
+in the source."
(interactive "d\nP")
(let* ((ov (org-remark-find-dwim point))
(id (overlay-get ov 'org-remark-id)))
@@ -736,23 +739,29 @@ temporarily displayed together with the prompt for the
user to
see the notes to help with confirmation.
If there are no notes, this function will not prompt for
-confirmation and will remove the highlight and deletes the entry
-in the marginal notes buffer.
+confirmation and will remove the highlight in the source buffer
+and deletes the entry in the marginal notes buffer.
This is the same behavior as passing a single `universal-argument'
to function `org-remark-remove'.
-Optionally, you can let this command automatically delete the
-entry when there are no notes in it by passing universal argument
-in ARG.
+Optionally, you can pass `universal-argument' to this function
+with ARG and it will behave as follows.
- \\[universal-argument]
- This is an automatic deletion. Delete the entry without asking
- the user when there is no notes in the entry. If there are any
+ This is automatic deletion. Delete the entry without asking the
+ user when there is no notes in the entry. If there are any
notes, remove the entry's properties only. This is the same
- behavior as passing double universal-arguments to
- function `org-remark-remove'."
+ behavior as passing double universal-arguments to function
+ `org-remark-remove'.
+
+If you have removed or deleted a highlight by error, you can
+still `undo' it in the marginal notes buffer and not in the
+current buffer. This is because adding and removing overlays are
+not part of the undo tree. You can undo the deletion in the
+marginal notes buffer and then save it to sync the highlight
+back in the source."
(interactive "d\nP")
(let ((optional-arg (if (eql 4 (prefix-numeric-value arg))
'(16) ;; make it universal-arg x 2
- [elpa] externals/org-remark 32b8699b12 64/75: doc: docstring for `org-remark-notes-auto-delete`, (continued)
- [elpa] externals/org-remark 32b8699b12 64/75: doc: docstring for `org-remark-notes-auto-delete`, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark ace9570070 52/75: refactor: simply org-remark-open, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 73766a03f0 69/75: docs: update NEWS, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 52cf20297b 67/75: feat: #72 org-remark-open can open the marginal notes file, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark ca648a1876 18/75: fix: change now can only select pens from the same type, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 2f7d16ef4e 31/75: refactor(line): remove unused functions, source comments, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark c7dc42bf30 28/75: fix: margin width, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 56557549ec 16/75: refactor: Create macro to add function-put, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 94ba0ecea0 21/75: fix(line): When source narrowed, existing line-hls move wrongly, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark e7aae5e4f4 25/75: doc: docstring for org-remark-highlight-mark-overlay, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark f28dc7e7f5 62/75: docs: update docstrings for remove and delete,
ELPA Syncer <=
- [elpa] externals/org-remark 18f39bf119 56/75: Merge branch 'main' into dev/1.3.0, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 4ad2be30e4 13/75: fix(icon): the line icon not displaying, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark e136189485 34/75: fix(line): window margin wrongly sets minibuffer's margin, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 8f9875f714 24/75: doc(line): Remove unused source comments (old code), ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 6dbf1cca4a 35/75: fix(line): svg icon does not get the face correctly, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 3f5ea6777b 32/75: fix(line): window selection is utterly confused, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 533167091a 42/75: fix(line):Right margin expands every window-size-change-func call, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark e02519836d 38/75: fix(line): spacer movement, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 6364474a73 48/75: Merge branch 'main' into dev/line-highlight, ELPA Syncer, 2023/10/06
- [elpa] externals/org-remark 680651e339 37/75: refactor(icon): remove unnecessary source comment (old func), ELPA Syncer, 2023/10/06