From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id QHcrJ4tmC2d6VAAAqHPOHw:P1 (envelope-from ) for ; Sun, 13 Oct 2024 06:19:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id QHcrJ4tmC2d6VAAAqHPOHw (envelope-from ) for ; Sun, 13 Oct 2024 08:19:55 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=f2+4DkEs; 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=1728800395; 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=BUfOxvE9Mopx3m2dKVfqa3f+oz92yqEt72N0Uu5N8s0=; b=jcWzw6nSosbnYC7Gbjb+hZY8+xb/UU+Bq5wHSTW8gRCTbUoYqT4kcJWVZ/Z3ZiqY9OZTmk HOUk2kZfwnqNmBwwrwPXEyVw6NGUHlwLGM6eHOrddr4iFcQe+4Vovx5h7u2sVfDBkhWZn7 XOzshhpV/PU1ZCqQ+A1Q3NkiJissikNMPuIj9ZH51Vhr1cOKlKjD6aUDQ8//LamMOk9gqo WQSqoZSKo1dVFumB1VRit+QERzhwQ9N4F2Ykim4u4waCvn063hRthBMDXLCji4Xn71YyeF UNtDVhy9eZLRiOKrKj3G/rp50iaasrr+T9L11d/WqQCI5rjxzMrbEmjPpsuIVA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=f2+4DkEs; 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-Seal: i=1; s=key1; d=yhetil.org; t=1728800395; a=rsa-sha256; cv=none; b=r7gylu8nxcM5zVpjkdkOMf5ZmBiFvU43FAOeMZqSw2ppuyOs/nwMaL3kHisTXE8yvWM6Nj subJ2OaNCRZPD1gesQuHvgb7j7qsSAhNzOgSXaJkhKu5POBM759GzR2bacnYtCfb0UCXAj hSEbDdf8UPcsRREC1EJ2gUgzDjjXocBMYhV+dRAOgMAnj4X3731iUfUbXZiTYF2lMMStY4 ZJvysuz+bP/57mc0Zs5hM+qHcrb7v0WqQVU8Fk/LGd6zjWKMXZRfe1mzN5Tn4cIQppWLUz gamFBPveAZAnAFj21Aq61qZsVWJ1nJeLc+Pisk4XYoN9xLyuDaRnJxLDXj2A0A== 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 163E7972BB for ; Sun, 13 Oct 2024 08:19:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szrwT-0008L7-Qq; Sun, 13 Oct 2024 02:19:01 -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 1szrwR-0008Kw-Ty for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 02:18:59 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1szrwP-0007oZ-Tt for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 02:18:59 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-71e49ef3b2bso1028125b3a.2 for ; Sat, 12 Oct 2024 23:18:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1728800335; x=1729405135; 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=BUfOxvE9Mopx3m2dKVfqa3f+oz92yqEt72N0Uu5N8s0=; b=f2+4DkEsm9rfwZi3K4jo9eFTzUKEFrCpXMCKhNjAkaIwYb2CrL/pqW/n8PDGAOLWFo hKfT7KMGrWF09XpxRFftTF7nxAVxwALJnuLS7Msmzf/AgIZ6d2dx6vrsRmfpyHmp3TMF pYrUuCzndQzhLc9acCZaQ5zLq8jDBu4xGmzvsMUJQlFqJKY1ibNwBA5fpvwwE2RgBTQ0 5I4IMSew3DBELcheeTb4oex42ow+y2VDLJCw7sKHBeizlJMsrT6hw6ee83w/pScP9Vsd KW0qfVBIPJc1D0xsFldtPAKIA699OyRxIWE4nPgTatk82MhBZCTi2LUoiLfNtjyMkNeq K/yQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728800335; x=1729405135; 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=BUfOxvE9Mopx3m2dKVfqa3f+oz92yqEt72N0Uu5N8s0=; b=c5+Gs1JP3EXbcvoNAElUWTVjy6rhnIuYkGoOlS1/zbZuf1jtejKHv9CFZgfYoaIitZ sRqzLXs1hRdSgSL/6X0liFlH3fRreHL2teXJM3RKxF3P69MrdBSWgNr4AzyLf3GiBzpr UssjErqwosVOFEA+fMPje/Y/H20qTIpIr8SgZIGGOp4k2OJacCRuhHa+ix6YjpvAcrZk 6gf7HpXSxc/QFvn3vR3McYh4MBY1HJo9ZF7EYKMs6U3MkqmFa2jpZ13u4w03komYw3Mz Fr2Qel6bwEWIJkHRYZ39KVnHwBVb7eJunSiVcT7WZswGmlBywQcMcPDVR5xlhCmY3/yv K2uw== X-Gm-Message-State: AOJu0Yxp1N4Sz8Tlul9hKeZ19XZ1T2ec4UKTAkbG0lXIf8fx3LUTkG67 LZxGXwFST15TbUaOKdC95GoYOR04761WyfgFy1AJ5jUsyWDmZRZDE5pRg5Cg X-Google-Smtp-Source: AGHT+IEmny1kt0WHw0fj2hWO3IeqDfIZr6N3o0xrl2AYKCsG3PZDBtqE3MNgrUR5SiKtvT9XdQ3tJg== X-Received: by 2002:a05:6a20:439f:b0:1d7:cdd:6966 with SMTP id adf61e73a8af0-1d8bcf5c263mr9458116637.30.1728800334668; Sat, 12 Oct 2024 23:18:54 -0700 (PDT) Received: from dan-laptop ([2405:4802:bfba:72e0:f9cd:1c2e:f03a:11b2]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71e46648cc8sm3051324b3a.207.2024.10.12.23.18.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 12 Oct 2024 23:18:54 -0700 (PDT) Date: Sun, 13 Oct 2024 13:18:49 +0700 From: Daan Ro To: Ihor Radchenko Cc: "=?utf-8?Q?emacs-orgmode=40gnu.org?=" Message-ID: <1C8D502B-2E47-45C3-A794-FFF7B57DFA23@getmailspring.com> In-Reply-To: <87ttdhqq33.fsf@localhost> References: <87ttdhqq33.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="670b6649_3b8b6893_91f" Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=daanturo@gmail.com; helo=mail-pf1-x435.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_IMAGE_ONLY_32=0.001, HTML_MESSAGE=0.001, 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 0.60 X-Spam-Score: 0.60 X-Migadu-Queue-Id: 163E7972BB X-TUID: DDkCLIl0pKsU --670b6649_3b8b6893_91f Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. 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. 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? Daanturo On Oct 12 2024, at 10:49 pm, Ihor Radchenko wrote: > Daan Ro writes: > > > [PATCH] org-latex-preview: add org-latex-preview-quiet customization > > > > * lisp/org.el (org-latex-preview): define customizable boolean > > org-latex-preview-quiet. > > Thanks for the patch, but may you please elaborate why you want the > messages to be suppressed? And why in org-latex-preview specifically? > > Many Org mode commands display messages, so I'd like to know your > motivation as it may affect how we want handle messages across Org mode. > > -- > Ihor Radchenko // yantar92, > Org mode contributor, > Learn more about Org mode at . > Support Org development at , > or support my work at > --670b6649_3b8b6893_91f Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Currently I have minor mode that automates =60org-latex-preview=60 e= very some idle
seconds so that newly typed fragments are automa= tically rendered. Having an
option to disable messages would ma= ke Emacs's interface much cleaner.

About org-mode's similar= messages, I just saw that some =60message=60 calls are
conditi= oned on =60(called-interactively-p 'any)=60. IMO =60org-latex-preview=60'= s
messages should do the same as the latter (only notify when c= alled
interactively) by default, but maybe that's a breakage fo= r some people.


Additionally, I'd love to make =60org-la= tex-preview=60 asynchronous. =46irst, that
will definitely spee= dup opening org files with =60org-startup-with-latex-preview=60
as Emacs doesn't freeze while generating images. Second, auto preview mi= nor
modes such as mine would be smoother.

I have = a rough idea of implementation by passing =60org-place-formula-image=60 a= s a
callback closure to =60org-create-formula-image=60 and =60o= rg-compile-file=60. Would
such a feature request/patch be accep= ted=3F

Daanturo
On Oct 12 2024, at 10:49 pm, Ihor Radchenko <yantar92=40posteo.n= et> wrote:
Daan Ro <daanturo=40gmail.com= > writes:

> =5BPATCH=5D org-latex-preview: add org-la= tex-preview-quiet customization
>
> * lisp/org.= el (org-latex-preview): define customizable boolean
> org-la= tex-preview-quiet.

Thanks for the patch, but may you please= elaborate why you want the
messages to be suppressed=3F And wh= y in org-latex-preview specifically=3F

Many Org mode comman= ds display messages, so I'd like to know your
motivation as it = may affect how we want handle messages across Org mode.

--<= /div>
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>
=
3D=22Sent --670b6649_3b8b6893_91f--