Last active
December 13, 2022 19:16
-
-
Save stefan2904/85cff4c12a1e0e07e3ddd4a822711c39 to your computer and use it in GitHub Desktop.
Better code to debug Issue https://github.com/toshism/org-super-links/issues/79 and test PR https://github.com/toshism/org-super-links/pull/78
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:sid | |
RUN apt-get update | |
RUN apt-get install -y git make emacs | |
RUN git clone --depth 1 --branch release_9.5.5 https://git.savannah.gnu.org/git/emacs/org-mode.git org955 | |
RUN git clone --depth 1 --branch release_9.6 https://git.savannah.gnu.org/git/emacs/org-mode.git org96 | |
RUN cd org955 && make autoloads | |
RUN cd org96 && make autoloads | |
RUN git clone --depth 1 --branch 0.4 https://github.com/toshism/org-super-links.git org-super-links-04 | |
RUN git clone --depth 1 --branch fix-time-format https://github.com/akirak/org-super-links.git org-super-links-fix | |
ADD org-sl-test.el . | |
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'load-path (concat "/" (elt argv 0) "/lisp")) | |
(require 'org) | |
(print (concat "Test for org version: " (org-version))) | |
(print (concat "Test using " (elt argv 1))) | |
(require 'package) | |
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) | |
(add-to-list 'load-path (concat "/" (elt argv 1))) | |
(package-initialize) | |
(require 'org-super-links) | |
(print (concat "org-time-stamp-formats: " (cdr org-time-stamp-formats))) | |
(print (concat "substring: " (substring (cdr org-time-stamp-formats) 1 -1))) | |
(print (concat "org-super-links-backlink-prefix-timestamp: " (org-super-links-backlink-prefix-timestamp))) | |
(print (concat "org-super-links-link-prefix-timestamp: " (org-super-links-link-prefix-timestamp))) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function line() | |
{ | |
echo -e "\n\n" | |
echo "$1" | |
echo "" | |
} | |
function tick() | |
{ | |
echo "\`\`\`" | |
} | |
docker build . -f Dockerfile -t org9 | |
line "## orgmode 9.5.5" | |
line "### upstream tag 0.4" | |
tick | |
docker run -i -t org9 emacs --script org-sl-test.el org955 org-super-links-04 | |
tick | |
line "### akirak fix" | |
tick | |
docker run -i -t org9 emacs --script org-sl-test.el org955 org-super-links-fix | |
tick | |
line "## orgmode 9.6" | |
line "### upstream tag 0.4" | |
tick | |
docker run -i -t org9 emacs --script org-sl-test.el org96 org-super-links-04 | |
tick | |
line "### akirak fix" | |
tick | |
docker run -i -t org9 emacs --script org-sl-test.el org96 org-super-links-fix | |
tick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output
orgmode 9.5.5
upstream tag 0.4
akirak fix
orgmode 9.6
upstream tag 0.4
akirak fix