[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/orgit 3c83adc34a 62/76: orgit--format-export: New function
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/orgit 3c83adc34a 62/76: orgit--format-export: New function |
Date: |
Thu, 13 Jan 2022 13:58:47 -0500 (EST) |
branch: elpa/orgit
commit 3c83adc34ac6ac097f2eabe336afce33eb34f3bd
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
orgit--format-export: New function
---
orgit.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/orgit.el b/orgit.el
index ad9e0f1730..3299a6fe6e 100644
--- a/orgit.el
+++ b/orgit.el
@@ -407,14 +407,17 @@ store links to the Magit-Revision mode buffers for these
commits."
(format-spec (nth idx format)
`((?n . ,(match-string 1 url))
(?r . ,rev)))))))
- (pcase format
- (`html (format "<a href=\"%s\">%s</a>" link desc))
- (`latex (format "\\href{%s}{%s}" link desc))
- (`ascii link)
- (_ link))
+ (orgit--format-export link desc format)
(error "Cannot determine public url for %s" path))
(error "Cannot determine public remote for %s" default-directory))))
+(defun orgit--format-export (link desc format)
+ (pcase format
+ (`html (format "<a href=\"%s\">%s</a>" link desc))
+ (`latex (format "\\href{%s}{%s}" link desc))
+ (`ascii link)
+ (_ link)))
+
;;; Utilities
(defun orgit--current-repository ()
- [nongnu] elpa/orgit 2456436a7e 48/76: orgit-rev-store: Store all marked commits, (continued)
- [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
- [nongnu] elpa/orgit 002f3ee6ea 38/76: orgit-export-alist: Update orgmode.org entry, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit f23a95d04a 58/76: Use lexical bindings, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit e7cddf39e3 56/76: Bump dependencies, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 3c83adc34a 62/76: orgit--format-export: New function,
ELPA Syncer <=
- [nongnu] elpa/orgit 9f09553c09 63/76: orgit-status-store: Account for topics, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 7105c135ce 70/76: Add SPDX-License-Identifier library header, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 26242895ef 72/76: Bump dependencies, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 66367d6bfc 76/76: Release version 1.7.2, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 1b1c8d6963 26/76: use org-link-set-parameters when available, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit f8ca2fb77b 40/76: orgit-abbreviate-hashes: New option, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit f705d581ec 41/76: orgit-rev-store-1: Resolve full hash when not abbreviating, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 0242088fb2 59/76: No longer depend on dash, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit 7d6afa5ae9 60/76: orgit-log-open: Call magit-log-arguments from repo, ELPA Syncer, 2022/01/13
- [nongnu] elpa/orgit a4e689f009 64/76: make: Remove obsolete dependencies, ELPA Syncer, 2022/01/13