branch: master
commit 0caa1706494d465d00c82c268e35acee52e8fd9a
Author: Paul Nelson <ultr...@gmail.com>
Commit: Arash Esbati <ar...@gnu.org>

    Fix previews in indirect buffers
    
    * preview.el.in (preview-region): Revert the change from
    buffer-file-name to (TeX-buffer-file-name) introduced in
    0e315c7fbeed081addf369fd42e7206d83580bc5 (see bug#58005).
---
 preview.el.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/preview.el.in b/preview.el.in
index ee176c79..e8c2c695 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -4150,8 +4150,8 @@ The functions in this variable will each be called inside
                          (dolist (fun preview-preprocess-functions)
                            (setq str (funcall fun str)))
                          str)
-                       (if (TeX-buffer-file-name)
-                           (file-name-nondirectory (TeX-buffer-file-name))
+                       (if buffer-file-name
+                           (file-name-nondirectory buffer-file-name)
                          "<none>")
                        (TeX-current-offset begin)))
   (setq TeX-current-process-region-p t)

Reply via email to