|
From: | Max Nikulin |
Subject: | Re: [Q] startup hook: How do I detect if the current buffer has been opened programmatically? |
Date: | Thu, 11 Apr 2024 23:37:40 +0700 |
User-agent: | Mozilla Thunderbird |
On 09/04/2024 00:31, Rudi C wrote:
I want to automatically preview all LaTeX fragments if the buffer was opened by the user
Be careful and limit automatic preview to files you created yourself. Doing so for an arbitrary file downloaded from net might cause huge amount of garbage files in /tmp.
Emacs-29.3 includes a fix for CVE-2024-30204 that is specific for email attachment inline preview. When a regular file is opened, weird LaTeX code inside still may be executed. There is no general way to determine if specific file should be treated as trusted.
[Prev in Thread] | Current Thread | [Next in Thread] |