Hello,
In my TeX-command-list, I have things like this:
("View with okular" "okular %s.pdf" TeX-run-silent nil nil)
This command works but displays an error message in the Emacs echo area
after okular has been started ("Wrong type argument: stringp, nil").
This is because TeX-run-silent does:
(if TeX-after-start-process-function
(funcall TeX-after-start-process-function process))
which, in my case, calls TeX-adjust-process-coding-system which runs:
(let ((cs (coding-system-base (with-current-buffer TeX-command-buffer
buffer-file-coding-system))))
However, in the context described here, TeX-command-buffer is nil at
this point, hence the aforementioned error that aborts
TeX-adjust-process-coding-system. With the attached patch,
TeX-adjust-process-coding-system completes normally.
Can someone have a look and apply the patch, or otherwise fix the
problem if there is a better way?
Thanks & regards
P.S. : all this with the current state of 'master', namely at commit
06226ea5e95de16250c18ec3fd033f96237fa642 of the AUCTeX Git
repository.
--
Florent
diff --git a/tex-buf.el b/tex-buf.el
index cc359388..19695d5a 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -1319,7 +1319,8 @@ With support for MS-DOS, especially when dviout is used with PC-9801 series."
(defun TeX-run-silent (name command _file)
"Start process with second argument."
- (let ((dir (TeX-master-directory)))
+ (let ((dir (TeX-master-directory))
+ (TeX-command-buffer (current-buffer)))
(set-buffer (get-buffer-create "*TeX silent*"))
(if dir (cd dir))
(erase-buffer)
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex