From: Ihor Radchenko <yantar92@posteo.net>
To: Daan Ro <daanturo@gmail.com>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: [BUG] Patch: Add an option to silence org-latex-preview (also a feature request) [9.7.11 (release_9.7.11 @ /usr/local/share/emacs/30.0.91/lisp/org/)]
Date: Sun, 13 Oct 2024 11:27:12 +0000 [thread overview]
Message-ID: <87set0z1in.fsf@localhost> (raw)
In-Reply-To: <1C8D502B-2E47-45C3-A794-FFF7B57DFA23@getmailspring.com>
Daan Ro <daanturo@gmail.com> writes:
> Currently I have minor mode that automates `org-latex-preview` every some idle
> seconds so that newly typed fragments are automatically rendered. Having an
> option to disable messages would make Emacs's interface much cleaner.
You can suppress all the messages via `inhibit-message', which see.
Is it good enough for your needs?
> About org-mode's similar messages, I just saw that some `message` calls are
> conditioned on `(called-interactively-p 'any)`. IMO `org-latex-preview`'s
> messages should do the same as the latter (only notify when called
> interactively) by default, but maybe that's a breakage for some people.
It is not self-evident. Sometimes, it is useful to see messages from
non-interactive calls. Imagine functions that are called by other
interactive Org commands.
> Additionally, I'd love to make `org-latex-preview` asynchronous. First, that
> will definitely speedup opening org files with `org-startup-with-latex-preview`
> as Emacs doesn't freeze while generating images. Second, auto preview minor
> modes such as mine would be smoother.
>
> I have a rough idea of implementation by passing `org-place-formula-image` as a
> callback closure to `org-create-formula-image` and `org-compile-file`. Would
> such a feature request/patch be accepted?
See https://list.orgmode.org/87lek2up0w.fsf@tec.tecosaur.net/
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2024-10-13 11:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-04 18:43 [BUG] Patch: Add an option to silence org-latex-preview (also a feature request) [9.7.11 (release_9.7.11 @ /usr/local/share/emacs/30.0.91/lisp/org/)] Daan Ro
2024-10-12 15:49 ` Ihor Radchenko
2024-10-13 6:18 ` Daan Ro
2024-10-13 11:27 ` Ihor Radchenko [this message]
2024-10-13 17:32 ` Daan Ro
2024-10-14 14:19 ` Ihor Radchenko
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87set0z1in.fsf@localhost \
--to=yantar92@posteo.net \
--cc=daanturo@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).