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

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

[elpa] externals/latex-table-wizard e81418a27d 40/70: Add regexp separat


From: ELPA Syncer
Subject: [elpa] externals/latex-table-wizard e81418a27d 40/70: Add regexp separators
Date: Sat, 13 May 2023 08:59:12 -0400 (EDT)

branch: externals/latex-table-wizard
commit e81418a27d752671a9d92e0e415874dff955fe83
Author: Enrico Flor <nericoflor@gmail.com>
Commit: Enrico Flor <nericoflor@gmail.com>

    Add regexp separators
---
 latex-table-wizard.el | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/latex-table-wizard.el b/latex-table-wizard.el
index e96bbb7eb5..410bb37c50 100644
--- a/latex-table-wizard.el
+++ b/latex-table-wizard.el
@@ -272,7 +272,8 @@ Stop the skipping at LIMIT (a buffer position or a marker)."
             (when (looking-at (concat
                                "[[:space:]]*"
                                (string-join
-                                latex-table-wizard--current-col-delims)))
+                                latex-table-wizard--current-col-delims
+                                "\\|")))
               (throw 'stop nil)))
           (ignore-errors
             (goto-char (latex-table-wizard--end-of-macro
@@ -401,8 +402,8 @@ Each value is an integer, S and E are markers."
                     (point-marker)))
          (hash (secure-hash 'sha256
                             (buffer-substring-no-properties env-beg env-end)))
-         (col-re (string-join latex-table-wizard--current-col-delims))
-         (row-re (string-join latex-table-wizard--current-row-delims)))
+         (col-re (string-join latex-table-wizard--current-col-delims "\\|"))
+         (row-re (string-join latex-table-wizard--current-row-delims "\\|")))
     (if (and (equal `(,env-beg . ,env-end) (nth 0 latex-table-wizard--parse))
              (equal hash (nth 1 latex-table-wizard--parse)))
         (nth 2 latex-table-wizard--parse)
@@ -1432,7 +1433,8 @@ Only remove them in current buffer."
                       `(,(regexp-opt
                           (append latex-table-wizard--current-row-delims
                                   latex-table-wizard--current-col-delims))
-                        ,latex-table-wizard--macro-re))
+                        ,latex-table-wizard--macro-re)
+                      "\\|")
                      0 (line-beginning-position))))
     (thread-last macro
                  (nth 1)



reply via email to

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