[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/orgit e0859c3c71 08/76: autoload functions where necessary
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/orgit e0859c3c71 08/76: autoload functions where necessary |
Date: |
Thu, 13 Jan 2022 13:58:43 -0500 (EST) |
branch: elpa/orgit
commit e0859c3c71cf8442b1dd85fddd9c3f494ba2e494
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
autoload functions where necessary
---
orgit.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/orgit.el b/orgit.el
index 2a080b4305..94d8a4769b 100644
--- a/orgit.el
+++ b/orgit.el
@@ -136,6 +136,7 @@ If all of the above fails then `orgit-export' raises an
error."
'(progn (org-add-link-type "orgit" 'orgit-status-open 'orgit-status-export)
(add-hook 'org-store-link-functions 'orgit-status-store)))
+;;;###autoload
(defun orgit-status-store ()
(when (eq major-mode 'magit-status-mode)
(let ((repo (abbreviate-file-name default-directory)))
@@ -144,9 +145,11 @@ If all of the above fails then `orgit-export' raises an
error."
:link (format "orgit:%s" repo)
:description (format "%s (magit-status)" repo)))))
+;;;###autoload
(defun orgit-status-open (path)
(magit-status-internal (file-name-as-directory path) 'pop-to-buffer))
+;;;###autoload
(defun orgit-status-export (path desc format)
(orgit-export path desc format "status" 1))
@@ -157,6 +160,7 @@ If all of the above fails then `orgit-export' raises an
error."
'(progn (org-add-link-type "orgit-log" 'orgit-log-open 'orgit-log-export)
(add-hook 'org-store-link-functions 'orgit-log-store)))
+;;;###autoload
(defun orgit-log-store ()
(when (eq major-mode 'magit-log-mode)
(let ((repo (abbreviate-file-name default-directory))
@@ -172,11 +176,13 @@ If all of the above fails then `orgit-export' raises an
error."
:link (format "orgit-log:%s::%s" repo rev)
:description (format "%s (magit-log %s)" repo rev)))))
+;;;###autoload
(defun orgit-log-open (path)
(cl-destructuring-bind (default-directory rev)
(split-string path "::")
(magit-log (list rev))))
+;;;###autoload
(defun orgit-log-export (path desc format)
(orgit-export path desc format "rev" 2))
@@ -187,6 +193,7 @@ If all of the above fails then `orgit-export' raises an
error."
'(progn (org-add-link-type "orgit-rev" 'orgit-rev-open 'orgit-rev-export)
(add-hook 'org-store-link-functions 'orgit-rev-store)))
+;;;###autoload
(defun orgit-rev-store ()
(when (memq major-mode '(magit-commit-mode magit-revision-mode))
(let ((repo (abbreviate-file-name default-directory))
@@ -196,11 +203,13 @@ If all of the above fails then `orgit-export' raises an
error."
:link (format "orgit-rev:%s::%s" repo rev)
:description (format "%s (magit-commit %s)" repo rev)))))
+;;;###autoload
(defun orgit-rev-open (path)
(cl-destructuring-bind (default-directory rev)
(split-string path "::")
(magit-show-commit rev)))
+;;;###autoload
(defun orgit-rev-export (path desc format)
(orgit-export path desc format "rev" 3))
- [nongnu] elpa/orgit c91e662ace 30/76: Add completion functions, (continued)
- [nongnu] elpa/orgit c91e662ace 30/76: Add completion functions, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 022687eb02 31/76: Move note about org-magit.el to help elx-license, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 14a4c8a245 44/76: orgit-store-reference: New option, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 158438c540 54/76: Fix typos, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 0bec3ea912 03/76: orgit-log-{store, open}: kludge to support version 2.1.0 of Magit, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 0881cf9633 05/76: complete Package-Requires list, add Homepage keyword, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 55292d377c 13/76: replace term commit with revision, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 190aa8e3ad 17/76: bump dependencies and copyright, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 731c5cb4f1 16/76: orgit-status-open: adapt to change to magit-status-internal, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 44a05c55d5 07/76: orgit-rev-store: Always use commit SHA-1 hash, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit e0859c3c71 08/76: autoload functions where necessary,
ELPA Syncer <=
- [nongnu] elpa/orgit faf8a24c87 18/76: orgit-rev-store: preserve refs and abbreviate hashes, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 6b2eba9c48 34/76: Changing heading of library footer section, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit ba15371536 36/76: Update for Emacs v2.90.0, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 2456436a7e 48/76: orgit-rev-store: Store all marked commits, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 1e578f8cf9 53/76: Define org-link-store-props as an alias for org-store-link-props, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit ad3b8c4182 04/76: orgit-rev-store: support version 2.1.0 of Magit, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 357d037307 09/76: bump numbers, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 0938f83a07 12/76: Merge pull request #5 from Malabarba/master, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 12bfadf603 23/76: orgit-{log, rev}-open: call magit commands with proper arguments, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 1ad6bd8e3e 37/76: Bump dependencies, ELPA Syncer, 2022/01/13