emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/lentic ed64dff0c7 031/333: Support for asciidoc->latex


From: ELPA Syncer
Subject: [elpa] externals/lentic ed64dff0c7 031/333: Support for asciidoc->latex transformation
Date: Tue, 27 Feb 2024 12:59:57 -0500 (EST)

branch: externals/lentic
commit ed64dff0c77011021f55a9644f52ea3d5a425326
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>

    Support for asciidoc->latex transformation
    
    Tests also added.
---
 dev/linked-buffer-dot-emacs.el |  5 ++++-
 dev/linked-buffer-test.el      | 11 +++++++++++
 test/asciidoc-clj-out.clj      |  6 ++++++
 test/asciidoc-clj.txt          |  6 ++++++
 4 files changed, 27 insertions(+), 1 deletion(-)

diff --git a/dev/linked-buffer-dot-emacs.el b/dev/linked-buffer-dot-emacs.el
index 7c7b8da90b..ca3560547b 100644
--- a/dev/linked-buffer-dot-emacs.el
+++ b/dev/linked-buffer-dot-emacs.el
@@ -10,9 +10,12 @@
 (package-initialize)
 
 (defun ensure-elpa (package)
-  (when (not (package-installed-p package))
+  (when
+      (not (package-installed-p package))
     (package-install package)))
 
 (ensure-elpa 'dash)
+;; this is a pain because it causes elpa loading of m-buffer
+;; locally
 (ensure-elpa 'm-buffer)
 (ensure-elpa 'f)
diff --git a/dev/linked-buffer-test.el b/dev/linked-buffer-test.el
index 61067569c7..2feff71d20 100644
--- a/dev/linked-buffer-test.el
+++ b/dev/linked-buffer-test.el
@@ -1,4 +1,6 @@
 (require 'linked-buffer)
+(require 'linked-buffer-latex-code)
+(require 'linked-buffer-asciidoc)
 (require 'f)
 
 
@@ -39,3 +41,12 @@
     (linked-buffer-batch-clone-with-config
      (linked-buffer-test-file "block-comment.clj")
      'linked-buffer-clojure-latex-init))))
+
+(ert-deftest linked-buffer-asciidoc-clojure ()
+  (should
+   (equal
+    (f-read
+     (linked-buffer-test-file "asciidoc-clj-out.clj"))
+    (linked-buffer-batch-clone-with-config
+     (linked-buffer-test-file "asciidoc-clj.txt")
+     'linked-buffer-asciidoc-clojure-init))))
diff --git a/test/asciidoc-clj-out.clj b/test/asciidoc-clj-out.clj
new file mode 100644
index 0000000000..629a8548f3
--- /dev/null
+++ b/test/asciidoc-clj-out.clj
@@ -0,0 +1,6 @@
+;; Open Test in asciidoc
+
+;; [source,clojure]
+;; ----
+(comment "source")
+;; ----
diff --git a/test/asciidoc-clj.txt b/test/asciidoc-clj.txt
new file mode 100644
index 0000000000..1d1406682a
--- /dev/null
+++ b/test/asciidoc-clj.txt
@@ -0,0 +1,6 @@
+Open Test in asciidoc
+
+[source,clojure]
+----
+(comment "source")
+----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]