Daan Ro <daant...@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....@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>