[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [BUG] Viewing large images
In [emacs-w3m:12926]
On Fri, 23 Feb 2018 10:03:41 -0500, Boruch Baum wrote:
> "Sometimes" images fail to load in an external program when running
> `w3m-lnum-view-image' (bound to `I' or the combination `L I').
Don't you use xdg-open or the like[1] for the external viewer?
It starts the real viewer program as a background job and quits
immediately. So, Emacs will recognize that the viewer finishes
and the temporary image file gets unnecessary, and tries to delete
it. After the viewer finishes, emacs-w3m makes Emacs wait for 1
second before deleting the file. It might be too short, though.
Could you try increasing the timer value? Here it is:
(defun w3m-external-view-file (command file url arguments)
[...]
(run-at-time 1 nil
If it needs to be a long time, it would be necessary to schedule
deleting the temp files by `kill-emacs-hook' as well.
Regards,
[1] So may be gnome-open, fiber, etc.