Hi Al,

> - Why do you pass the symbol rather than its value of the value as a
>   simple parameter?

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.

> - The value is being used in `preview-gs-place`, any idea why
>   preview-ps-file is not simply used there similarly to how it's used
>   everywhere else? My guess is that it's because the variable is local,
>   but surely one can use
>   (buffer-local-value 'preview-ps-file (overlay-buffer ov))
>   to get the correct value.

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.)

Thanks, best,

Paul



_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to