From: Max Nikulin <manikulin@gmail.com>
To: Rudi C <rudiwillalwaysloveyou@gmail.com>, emacs-orgmode@gnu.org
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 [thread overview]
Message-ID: <5ed77d9e-cd83-4db4-a17e-c3d4e374092b@gmail.com> (raw)
In-Reply-To: <CAE9z9A0Mnv9_4zbXiz6byhuCB9gF=v4z3fSQMs9o+nkRmMd+mg@mail.gmail.com>
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 parent reply other threads:[~2024-04-11 16:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-08 17:31 [Q] startup hook: How do I detect if the current buffer has been opened programmatically? Rudi C
2024-04-09 14:24 ` Ihor Radchenko
2024-04-09 19:36 ` Karthik Chikmagalur
2024-04-09 19:52 ` Rudi C
2024-04-11 16:37 ` Max Nikulin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5ed77d9e-cd83-4db4-a17e-c3d4e374092b@gmail.com \
--to=manikulin@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rudiwillalwaysloveyou@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.