diff --git a/TeXmacs/progs/texmacs/texmacs/tm-print.scm b/TeXmacs/progs/texmacs/texmacs/tm-print.scm index cbb24fd9e..82e3d19b1 100644 --- a/TeXmacs/progs/texmacs/texmacs/tm-print.scm +++ b/TeXmacs/progs/texmacs/texmacs/tm-print.scm @@ -115,18 +115,18 @@ (switch-to-buffer cur) (buffer-close buf)) (begin - (print-to-file fname) - (unless (attach-doc-to-exported-pdf fname) + (print-to-file fname) + (unless (attach-doc-to-exported-pdf fname) (notify-now "Fail to attach tm to pdf"))))) (tm-define (attach-doc-to-exported-pdf fname) (let* ((tem-url (buffer-new)) - (new-url (url-relative tem-url (string-append (url-basename fname) ".tm"))) - (cur-url (current-buffer-url)) - (cur-tree (buffer-get cur-url)) - (linked-file (pdf-get-linked-file-paths cur-tree cur-url)) - (linked-file-with-main (array-url-append new-url linked-file)) - (new-tree (pdf-replace-linked-path cur-tree cur-url))) + (new-url (url-relative tem-url (string-append (url-basename fname) ".tm"))) + (cur-url (current-buffer-url)) + (cur-tree (buffer-get cur-url)) + (linked-file (pdf-get-linked-file-paths cur-tree cur-url)) + (linked-file-with-main (array-url-append new-url linked-file)) + (new-tree (pdf-replace-linked-path cur-tree cur-url))) (buffer-rename tem-url new-url) (buffer-copy cur-url new-url) (buffer-save new-url)