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

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

[elpa] externals/lentic cd3d385aad 050/333: Asciidoc supports for lisp.


From: ELPA Syncer
Subject: [elpa] externals/lentic cd3d385aad 050/333: Asciidoc supports for lisp.
Date: Tue, 27 Feb 2024 13:00:00 -0500 (EST)

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

    Asciidoc supports for lisp.
    
    Previously, asciidoc only supported Clojure, now it supports
    lisp in general.
---
 linked-buffer-asciidoc.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/linked-buffer-asciidoc.el b/linked-buffer-asciidoc.el
index 2885a244fe..1b698903b3 100644
--- a/linked-buffer-asciidoc.el
+++ b/linked-buffer-asciidoc.el
@@ -24,7 +24,7 @@
 
 ;;; Commentary:
 ;;
-;; Links buffers with asciidoc [source] blocks.
+;; Linked buffers with asciidoc [source] blocks.
 
 ;;; Code:
 (require 'linked-buffer-block)
@@ -110,8 +110,11 @@ This should remove other \"....\" matches.
 (defun linked-buffer-block-match-asciidoc
   (conf buffer)
   (let* ((source
-          (m-buffer-match-begin buffer
-                                ";* *\\[source,\\\(clojure\\|lisp\\\)\\]"))
+          (m-buffer-match-begin
+           buffer
+           (format ";* *\\[source,%s\\]"
+                   (regexp-opt
+                    (oref conf :srctags)))))
          ;; this could also be a start of title
          (dots
           (m-buffer-match buffer



reply via email to

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