[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eev bb41e52 07/14: New function: `find-fossil-links'.
From: |
Stefan Monnier |
Subject: |
[elpa] externals/eev bb41e52 07/14: New function: `find-fossil-links'. |
Date: |
Mon, 24 Feb 2020 11:32:09 -0500 (EST) |
branch: externals/eev
commit bb41e522fc642a3275698084f2083520ca528778
Author: Eduardo Ochs <address@hidden>
Commit: Eduardo Ochs <address@hidden>
New function: `find-fossil-links'.
---
VERSION | 4 ++--
eev-tlinks.el | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+), 2 deletions(-)
diff --git a/VERSION b/VERSION
index 99bfb79..90fff04 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-Wed Jan 8 21:36:29 GMT 2020
-Wed Jan 8 18:36:29 -03 2020
+Wed Jan 8 22:25:42 GMT 2020
+Wed Jan 8 19:25:42 -03 2020
diff --git a/eev-tlinks.el b/eev-tlinks.el
index b84f9c5..b280b53 100644
--- a/eev-tlinks.el
+++ b/eev-tlinks.el
@@ -71,6 +71,7 @@
;; «.find-youtubedl-links» (to "find-youtubedl-links")
;; «.find-psne-links» (to "find-psne-links")
;; «.find-git-links» (to "find-git-links")
+;; «.find-fossil-links» (to "find-fossil-links")
;; «.find-apt-get-source-links» (to "find-apt-get-source-links")
;; «.find-eev-video-links» (to "find-eev-video-links")
;;
@@ -1255,6 +1256,61 @@ git log --oneline --graph --all -20
+
+;; «find-fossil-links» (to ".find-fossil-links")
+;; Skel: (find-find-links-links-new "fossil" "url subdir c" "")
+;; Test: (find-fossil-links "http://fossil.0branch.com/oorexx-mode")
+;; See: https://fossil-scm.org/
+;;
+(defun ee-fossil-url-stem (url) (ee-git-url-stem url))
+
+(defun find-fossil-links (&optional url subdir c &rest pos-spec-list)
+"Visit a temporary buffer containing hyperlinks for fossil."
+ (interactive (list (ee-url-at-point)))
+ (setq url (or url "{url}"))
+ (setq subdir (or subdir (ee-fossil-url-stem url) "{subdir}"))
+ (setq c (or c (replace-regexp-in-string "[-.]" "" subdir) "{c}"))
+ (apply
+ 'find-elinks
+ `((find-fossil-links ,url ,subdir ,c ,@pos-spec-list)
+ (find-fossil-links "{url}" "{subdir}" "{c}")
+ ;; Convention: the first sexp always regenerates the buffer.
+ (find-efunction 'find-fossil-links)
+ ""
+ ,(ee-template0 "\
+# (find-sh \"fossil help\")
+# (find-sh \"fossil help clone\")
+# (find-sh \"fossil help pull\")
+# (find-sh \"fossil help all\")
+# (find-sh \"fossil help open\")
+
+ (eepitch-shell)
+ (eepitch-kill)
+ (eepitch-shell)
+# rm -fv ~/usrc/fossil-repos/{subdir}.fsl
+mkdir -p ~/usrc/fossil-repos/
+cd ~/usrc/fossil-repos/
+
+fossil clone {url} {subdir}.fsl
+fossil pull {url} -R {subdir}.fsl
+fossil all ls
+
+# cd ~/usrc/{subdir}/ && fossil close
+# rm -Rfv ~/usrc/{subdir}/
+mkdir -p ~/usrc/{subdir}/
+cd ~/usrc/{subdir}/
+fossil open ~/usrc/fossil-repos/{subdir}.fsl
+
+# (code-c-d \"{c}\" \"~/usrc/{subdir}/\")
+# (find-{c}file \"\")
+")
+ )
+ pos-spec-list))
+
+
+
+
+
;;; _ _
;;; __ _ _ __ | |_ __ _ ___| |_ ___ ___ _ _ _ __ ___ ___
;;; / _` | '_ \| __|____ / _` |/ _ \ __|____/ __|/ _ \| | | | '__/ __/ _ \
- [elpa] externals/eev updated (8bc3bde -> facb51d), Stefan Monnier, 2020/02/24
- [elpa] externals/eev 4dbb2d4 04/14: Rewrote `(find-templates-intro)'., Stefan Monnier, 2020/02/24
- [elpa] externals/eev 1133d7a 02/14: Added a new section to `(find-audiovideo-intro)'., Stefan Monnier, 2020/02/24
- [elpa] externals/eev 5f748b9 09/14: Fixed several typos (thx to Marc Simpson & codespell), Stefan Monnier, 2020/02/24
- [elpa] externals/eev 5833336 03/14: Quote function names like this: `foo', Stefan Monnier, 2020/02/24
- [elpa] externals/eev 68e9991 01/14: Mention ":results output" in `(find-org-intro)'., Stefan Monnier, 2020/02/24
- [elpa] externals/eev 57c351e 05/14: Added the ee-ffll-functions (for `find-find-links-links-new')., Stefan Monnier, 2020/02/24
- [elpa] externals/eev dfb01f6 06/14: New function: `find-find-links-links-new'., Stefan Monnier, 2020/02/24
- [elpa] externals/eev a80a088 11/14: Small changes in README.md., Stefan Monnier, 2020/02/24
- [elpa] externals/eev bb41e52 07/14: New function: `find-fossil-links'.,
Stefan Monnier <=
- [elpa] externals/eev 4f4a4f1 12/14: Added `find-windows-eepitch-lua-links'., Stefan Monnier, 2020/02/24
- [elpa] externals/eev d2dc3d6 08/14: Moved `find-here-links' and friends to the file find-hlinks.el., Stefan Monnier, 2020/02/24
- [elpa] externals/eev d6d2a98 10/14: Rewrote the file README.md., Stefan Monnier, 2020/02/24
- [elpa] externals/eev d4f6082 13/14: Added `(find-windows-beginner-intro)' and `(find-extra-file-links)'., Stefan Monnier, 2020/02/24
- [elpa] externals/eev facb51d 14/14: Merge remote-tracking branch 'eev/UTF-8' into externals/eev, Stefan Monnier, 2020/02/24