branch: elpa
commit 4f9666b59249c49412cc51a4491440d85d24127e
Author: Ikumi Keita <[email protected]>
Commit: Mosè Giordano <[email protected]>

    Use customize option `TeX-region' instead of "_region_"
    
    * tex-buf.el (TeX-output-revert-buffer): Use customize option
    `TeX-region' instead of string literal "_region_".
    
    Signed-off-by: Mosè Giordano <[email protected]>
---
 tex-buf.el |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tex-buf.el b/tex-buf.el
index a132222..c9cda7d 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -3677,7 +3677,7 @@ forward, if negative)."
       (let ((name (match-string 1))
             (file (match-string 2)))
         (with-current-buffer TeX-command-buffer
-          (TeX-command name (if (string-match "_region_" file)
+          (TeX-command name (if (string-match TeX-region file)
                                 #'TeX-region-file
                               #'TeX-master-file))))
     (error "Unable to find what command to run")))

Reply via email to