[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-remark 2954965bb3 127/173: add: define org-remark-m
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-remark 2954965bb3 127/173: add: define org-remark-mark explicitly for autoload cookie |
Date: |
Fri, 28 Jan 2022 16:58:08 -0500 (EST) |
branch: externals/org-remark
commit 2954965bb3d4d61dd0133660f2f5280ef4fc886f
Author: Noboru Ota <me@nobiot.com>
Commit: Noboru Ota <me@nobiot.com>
add: define org-remark-mark explicitly for autoload cookie
---
org-remark.el | 41 ++++++++++++++++++++++++++++++++++-------
1 file changed, 34 insertions(+), 7 deletions(-)
diff --git a/org-remark.el b/org-remark.el
index d021a3072f..678eb0f985 100644
--- a/org-remark.el
+++ b/org-remark.el
@@ -156,8 +156,12 @@ file specified by `org-remark-notes-file-path'. If the
file does
not exist yet, it will be created.
When this function is called from Elisp, ID can be optionally
-passed. If so, no new ID gets generated."
- (or face "`org-remark-highlight'") properties)
+passed. If so, no new ID gets generated.
+
+When LOAD-ONLY is non-nil, this function does not save the
+highlight in the marginal notes file. This is meant to be for
+`org-remark-load'."
+ (or face "`org-remark-highlighter'") properties)
(interactive "r")
(org-remark-single-highlight-mark beg end ,label ,face ,properties id
load-only)))
@@ -189,10 +193,6 @@ as a selection list."
;; Don't use category (symbol) as a property -- it's a special one of text
;; properties. If you use it, the value also need to be a symbol; otherwise,
you
;; will get an error. You can use CATEGORY (symbol and all uppercase).
-
-;; Create the default mark function with default face
-;; `org-remark-highlight' with no properties.
-(org-remark-create)
(when org-remark-create-default-pen-set
;; Create default pen set.
;; They are rather meant to be a starter pack and examples
@@ -207,6 +207,34 @@ as a selection list."
;;;; Commands
+;; Definining `org-remark-mark', the default "pen" function explicitly.
+;; This is so that autoload cookie can be assigned to it.
+;;;###autoload
+(defun org-remark-mark (beg end &optional id load-only)
+ "Apply the following face to the region selected by BEG and END.
+%s
+
+Following overlay properties will be added to the highlighted
+text region: %S
+
+When this function is used interactively, it will generate a new
+ID, always assuming it is a new highlighted text region, and
+Org-remark will start tracking the highlight's location in the
+current buffer.
+
+The entry for the highlght will be created in the marginal notes
+file specified by `org-remark-notes-file-path'. If the file does
+not exist yet, it will be created.
+
+When this function is called from Elisp, ID can be optionally
+passed. If so, no new ID gets generated.
+
+When LOAD-ONLY is non-nil, this function does not save the
+highlight in the marginal notes file. This is meant to be for
+`org-remark-load'."
+ (interactive "r")
+ (org-remark-single-highlight-mark beg end nil nil nil id load-only))
+
;;;###autoload
(define-minor-mode org-remark-mode
"Highlight and annotate any text file with using Org mode.
@@ -262,7 +290,6 @@ recommended to turn it on as part of Emacs initialization.
(remove-hook 'after-save-hook #'org-remark-save t)
(remove-hook 'kill-buffer-hook #'org-remark-tracking-save t))))
-;;;###autoload
(defun org-remark-load ()
"Visit `org-remark-notes-file' & load the saved highlights onto current
buffer.
If there is no highlights or annotations for current buffer,
- [elpa] externals/org-remark ce1fd7bb23 048/173: doc: Update for transient navigation (next/prev), (continued)
- [elpa] externals/org-remark ce1fd7bb23 048/173: doc: Update for transient navigation (next/prev), ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark e2524f1663 056/173: Remove default keybindings; add examples in readme, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 045b7593f5 059/173: doc: Update README according to the fix and some, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 6f1a13dbf1 062/173: doc: om-remove, C-u option, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark a759dfc437 064/173: chg: from text-prop to overlay, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 1dd28ecd4c 081/173: lint, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 029efeb2a0 084/173: doc: README, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 4e28dd1923 092/173: add: load works with a different pen, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark f9e432b486 103/173: docs: org-remark documentation, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 73e332b1d5 113/173: add: convert-legacy-data + refactor, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 2954965bb3 127/173: add: define org-remark-mark explicitly for autoload cookie,
ELPA Syncer <=
- [elpa] externals/org-remark e27e0d6dad 023/173: feat: Add om/toggle for show/hide highlighters, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark bfeffae259 027/173: doc: Minor update, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 6be3fc988b 039/173: doc: Minor update, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 3c270b4e28 025/173: doc: Update readme with a title screen, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 3af3a47e1b 047/173: feat: Add transient navigation to next/prev, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark d8908d6aba 054/173: doc: fix code example in README, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark f9c313342c 067/173: chg: separate global-tracking.el, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark a42ca0f756 066/173: readme for marginalia, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark e78f549267 069/173: intrnl: housekeep to save; refactor remove, ELPA Syncer, 2022/01/28
- [elpa] externals/org-remark 7176e9d460 073/173: add: ID inherits. fix: housekeep, ELPA Syncer, 2022/01/28