Hi Paul,
On 17/02/2026, Paul D. Nelson wrote:
> In the gs-dvips path, preview-ps-file is set by preview-start-dvips,
> which is called inside the body of preview-dvi*-process-setup-1 via
> (funcall start). Passing the value as an argument would mean that we
> evaluate it before it's set.
Ah I see. Since this is a bit unusual, I suggest that either this is
thoroughly documented or preview-gs-dvips-process-setup can simply
construct the returned list itself as
(defun preview-gs-dvips-process-setup ()
"Set up Dvips process for conversions via gs."
(let ((ret (preview-dvi*-process-setup-1
preview-gs-image-type
(lambda ()
(preview-start-dvips preview-fast-conversion))
#'preview-gs-dvips-sentinel)))
;; Override ps-file
(append (butlast ret 2)
(list
preview-ps-file
preview-gs-image-type))))
> Here (overlay-buffer ov) is the source buffer, but preview-ps-file is
> buffer-local to the process buffer. (Maybe something more clever could
> be done.)
I see. It's not super important to change, and I haven't checked it
thoroughly yet, but if we want to change (rather than just undo my
mistake), then preview-gs-place is called from preview-place-preview <-
preview-parse-message with the current buffer being the process buffer.
So in theory one can pass preview-ps-file down the call chain.
Best regards,
-- Al
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex