From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kEvxHmcEDGf77AAA62LTzQ:P1 (envelope-from ) for ; Sun, 13 Oct 2024 17:33:27 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kEvxHmcEDGf77AAA62LTzQ (envelope-from ) for ; Sun, 13 Oct 2024 19:33:27 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=SzzwTO2r; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728840807; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=JqCPBABId2nFzktiZPenYaiOI318sxzqTi30En1cpzA=; b=ePACV1hAYPPlwT4Ds6o9VFXx9a3+YFRhIFp89pQW4gYaJo5wRpKGCkK3AAqIA1Q7gk2qCB i1L6n1soUj39rvfGeM2sni/mRWu2DeFbUweTnZ1I7rSo79d1QWjbvcFKlP95doAzhR4sRt Gfcoy6n1EU9iFB4TwW8gnLuHwiL2EVUIfEjoMxnYfbVFHTwA0ZN2dvKjseaqQMo/ew1qnU /IDZ0mTciI8RZ8n+n0mK0ptbhpzQ+051UhajlRcCN6QVQJ43PvPAQIdF2dYXFSZ94o81w/ icJg7CQJ6xFncTvWcFlu4UdEJsvS8grTpni057TFEDGyAv43AJVjqmu8M2KGEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728840807; a=rsa-sha256; cv=none; b=UAF8JP9DklavClRI1NjX+BbxZ7MV6530ZB3JUg19aoBkgcu6lhxkiyp2m9XxL6/ioC8AwP fU4/mzFCFxB9GbUAjvASXe8SkNR98fF9uLRLQwCHRzs+O7UzMGSKXv83khr8LDrVgGXnJl UHZfcu5dQIaBEoeBoAtVGU3sNVxf4GIehvGv1GiL1oItacEtcjaWSfULelERh3Jl0j7WH1 roaUZXnK+1nCbPbJ7fNSyA60QUyu7WrZ/OUDhujJUl8pi2fnL+YrprK8iQFReZ8No95ESJ sf+IX+yud3qAZQwLK2NevDDiBx8gqjfIFHKi/29hUW2eUx+rSaFGd0Mpbs/yiQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=SzzwTO2r; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gmail.com Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 071EB58C8F for ; Sun, 13 Oct 2024 19:33:27 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t02S2-0007uf-NU; Sun, 13 Oct 2024 13:32:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t02S0-0007u6-Ig for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 13:32:16 -0400 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t02Ry-0003Uw-Fs for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 13:32:16 -0400 Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-2e2e23f2931so2528413a91.0 for ; Sun, 13 Oct 2024 10:32:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728840732; x=1729445532; darn=gnu.org; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=JqCPBABId2nFzktiZPenYaiOI318sxzqTi30En1cpzA=; b=SzzwTO2r7KpMBFvRNFM1jPMLod94a/rqMyk5XabBWD9UDxx8BSKMhGab7bH8xjpy3i BC7jEYOSuLs8G/4X4tpxyo2uennpmM2O2zi498/xr+cwLGs7GrltxSmK5BiDBo6cqpCj g++pdl5GKwQl83RW+0UVqLJJJ1z+Lp2Ykx/w+VidBv95ePc0kL7YWrG2JFJxHGHtBx8F 7KNUOtwDV43zCpoWL+/zJ3y6eWhpF6Hz2K52s24xv03dJSn+Hb/xKU1s8DiDaFUT/cys lgE5NRYpzgyZNRC7wqFiYkqs0Mq/oupX11rPGK7mwf/nxZZDSH5YXAWBu6G8TzPG5PZI ABlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728840732; x=1729445532; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JqCPBABId2nFzktiZPenYaiOI318sxzqTi30En1cpzA=; b=ojeVeI3nsXKCyP2jZsZtkjlP5tZEs4Yj1VWFaYN7xlmUkjyFsoh/X3Als7YssRpqBt c660pQB5jE8C4BHbToTzbzs8K5hevRqM1XV8d1LoC7a3/4iCiu6+yf+5eRa+ZXf6yABt OaXhkNPA2s2zB19R8UyHFZsvR7BvwZrbxTfn9d/WklvCk7uLGqhLkg1wkyIPZ5qVwzMk O9CtBxT0GR6G3HpwcLrqDep65FJdWUAdq7eOY1KxAgu4WbUKZsiI3jNQbCfPcl6cTipe P0HHW9s5fheSdvYlUGrFOjR+4yr/+BXll5KyUkpbzkkGO1TmDn0/7VSNwj4FjdLBaCJU THXg== X-Gm-Message-State: AOJu0YyBD0BngKnYheouVHdxJ5X6ktI1/gRq4uqG2FdRMleYMw9FxpzH pHISSztSOuS2Ad1c14aFwqTul60tIdzZUggmSeFdEupE06hAjnkC8+nKnjfA X-Google-Smtp-Source: AGHT+IEF21B+p2xqwUma8BDMF5yMh/TxHo/hJaQhifXriAllCN+YCB15szeNKPtXujh+IjWa94OV0w== X-Received: by 2002:a17:90b:238d:b0:2e2:e2f1:aee with SMTP id 98e67ed59e1d1-2e3152e4e75mr7229907a91.22.1728840732327; Sun, 13 Oct 2024 10:32:12 -0700 (PDT) Received: from dan-laptop ([2405:4802:bfba:72e0:f9cd:1c2e:f03a:11b2]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e2d5fa5f49sm6901953a91.46.2024.10.13.10.32.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 13 Oct 2024 10:32:11 -0700 (PDT) Date: Mon, 14 Oct 2024 00:32:07 +0700 From: Daan Ro To: Ihor Radchenko Cc: "=?utf-8?Q?emacs-orgmode=40gnu.org?=" Message-ID: <37E53521-13CF-4156-93ED-196834780D2F@getmailspring.com> In-Reply-To: <87set0z1in.fsf@localhost> References: <87set0z1in.fsf@localhost> 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/)] X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="670c0417_5ca17243_875" Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=daanturo@gmail.com; helo=mail-pj1-x1030.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.69 X-Spam-Score: -1.69 X-Migadu-Queue-Id: 071EB58C8F X-Migadu-Scanner: mx13.migadu.com X-TUID: 5FIQwLfZIgDw --670c0417_5ca17243_875 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline > See https://list.orgmode.org/87lek2up0w.fsf@tec.tecosaur.net/ (https://link.getmailspring.com/link/37E53521-13CF-4156-93ED-196834780D2F@getmailspring.com/0?redirect=https%3A%2F%2Flist.orgmode.org%2F87lek2up0w.fsf%40tec.tecosaur.net%2F&recipient=ZW1hY3Mtb3JnbW9kZUBnbnUub3Jn) Thank you, the said fork has all I needed for now. I've decided to use it for now. I think this bug ticket can be closed. Daanturo On Oct 13 2024, at 6:27 pm, Ihor Radchenko wrote: > Daan Ro 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 . > Support Org development at , > or support my work at > --670c0417_5ca17243_875 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
> See https://list.orgmode.org/87lek2up0w.fsf=40tec.t= ecosaur.net/
Thank you, the said fork has al= l I needed for now. I've decided to use it for now.

= I think this bug ticket can be closed.


Daantur= o
On Oct 13 2024, at 6:27 pm, Iho= r Radchenko <yantar92=40posteo.net> wrote:
Daan Ro <daanturo=40gmail.com> writes:

> Curren= tly I have minor mode that automates =60org-latex-preview=60 every some i= dle
> seconds so that newly typed fragments are automaticall= y rendered. Having an
> option to disable messages would mak= e Emacs's interface much cleaner.

You can suppress all the = messages via =60inhibit-message', which see.
Is it good enough = for your needs=3F

> About org-mode's similar messages, I= just saw that some =60message=60 calls are
> conditioned on= =60(called-interactively-p 'any)=60. IMO =60org-latex-preview=60's
=
> messages should do the same as the latter (only notify when cal= led
> 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 func= tions that are called by other
interactive Org commands.
<= br>
> Additionally, I'd love to make =60org-latex-preview=60 async= hronous. =46irst, that
> will definitely speedup opening org= files with =60org-startup-with-latex-preview=60
> as Emacs = doesn't freeze while generating images. Second, auto preview minor
<= div>> modes such as mine would be smoother.
>
&= gt; I have a rough idea of implementation by passing =60org-place-formula= -image=60 as a
> callback closure to =60org-create-formula-i= mage=60 and =60org-compile-file=60. Would
> such a feature r= equest/patch be accepted=3F

See https://list.orgmode.org/87= lek2up0w.fsf=40tec.tecosaur.net/

--
Ihor Radchenk= o // yantar92,
Org mode contributor,
Learn more about= Org mode at <https://orgmode.org/>.
Support Org developm= ent at <https://liberapay.com/org-mode>,
or support my wo= rk at <https://liberapay.com/yantar92>
--670c0417_5ca17243_875--