branch: externals/org
commit e32bd5f7c78c9d92cefd9a78771f9729946fdf73
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    org-texinfo--match-definition: Drop redundant `save-match-data'
    
    * lisp/ox-texinfo.el (org-texinfo--match-definition): It is safe to
    drop `save-match-data' as the function modifies the match data anyway,
    and `save-match-data' does not affect anything else.
---
 lisp/ox-texinfo.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/ox-texinfo.el b/lisp/ox-texinfo.el
index a83fe26474..c6173df071 100644
--- a/lisp/ox-texinfo.el
+++ b/lisp/ox-texinfo.el
@@ -668,9 +668,9 @@ The car is the command and the cdr is its arguments."
         (string-match org-texinfo--definition-command-regexp tag)
         (pcase-let*
             ((cmd (car (rassoc (match-string-no-properties 1 tag)
-                                org-texinfo--definition-command-alist)))
+                               org-texinfo--definition-command-alist)))
              (`(,cmd ,category)
-              (and cmd (save-match-data (split-string cmd " "))))
+              (and cmd (split-string cmd " ")))
              (args (match-string-no-properties 2 tag)))
           (cons cmd (if category (concat category " " args) args))))))
 

Reply via email to