Hello Ikumi,

On 04/09/2025, Ikumi Keita wrote:
> Now preview-point sometimes
> raises ghostscript error in circ.tex (after intentional error part) like
Mmm.. That's gonna be annoying to debug because it seems to be working 
perfectly on my system and I couldn't break it (even starting from `emacs -Q`).

Are you able to provide a recipe for this error at all?

> What is strange to me is that the error symbol ("under construction"
> sign) sometimes appears and sometimes doesn't. I haven't found the
> condition which determines that outcomes, so I can't provide reliable
> recipe to reproduce the issue. :-(
>
It should appear briefly the first time before being replaced by the icon.
On subsequent refreshes (assuming `preview-point-progress-indicators` is set to 
`'faces`), it won't appear but the face of svg images will dim slightly (not 
png ones of course).
To have it always appear, set `preview-point-progress-indicators` to `'icons`.

> Does "close it" mean killing the buffer? If so, what you described
> doesn't occur for me. The directory "_region_.prv" is empty after I
> killed the buffer.

Yes, I meant killing the buffer. I am not sure why it leaves files on my system 
(without preview-point -- which fixes these issues). Here's a minimal recipe I 
have, starting from `emacs -Q`, maybe others can test it as well to pin down 
the discrepancy.

--8<---------------cut here---------------start------------->8---
(progn
  (add-to-list 'load-path "~/path/to/auctex")
  (load "~/path/to/auctex/auctex-autoloads.el" nil t t)

  (setq preview-image-type 'dvipng
        preview-LaTeX-command-replacements '(preview-LaTeX-disable-pdfoutput))
  (find-file "test.tex"))
--8<---------------cut here---------------end--------------->8---

The file test.tex has

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\usepackage[showlabels,sections,floats,textmath,displaymath]{preview}
\begin{document}
$ABQAq$
$\ifpreview\special{ps: junk}\fi F$
$Q$
\end{document}
--8<---------------cut here---------------end--------------->8---

Press C-c C-p C-p, then kill the buffer (or quit emacs). On my system, the 
folder `_region_.prv` has a temporary directory with the file `preview.ps`.

Best regards,
-- Al

Reply via email to