From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kM+8OGSuC2eQ3wAA62LTzQ:P1 (envelope-from ) for ; Sun, 13 Oct 2024 11:26:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kM+8OGSuC2eQ3wAA62LTzQ (envelope-from ) for ; Sun, 13 Oct 2024 13:26:29 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="sEn/sjVh"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1728818788; a=rsa-sha256; cv=none; b=QeMN44XfWAhNrrzUKOVsHrkrCzJ8kFfW5eAi6yskrd7zfMPdVVdNQxaWQQDO0mwHikIcEC UPnGpTqOYQ/8UwBmQuZ3IOGIXK8qda74qEiiUt0VNbEUTBSKL+Yx6EHlnI6HhcezMxfYiH hM/J3CkJ1mTsa4sTdxqKpBYyR9S2dLKwMoRClg3+hNGtZm7KM4QbfpydyrdInaIDeE97YH 5/nWgNeS4ggTSZysQMhaR7fyLp9cv2mBLDY9488kK55V2vJxbHLob6PFvjqsYm98em7tnG +KyXw0EVX4+RozXcg4LmiTUP/m/h8gqw9y5/rLinWjYLDWfUSVCOKCk4g/F1Sw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="sEn/sjVh"; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1728818788; 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=V+wOKMYKaBZMdNuAZOURJ53+rWeZ2mOX24TMn4Irljc=; b=eYtUnm3KXCMFgA6ZNfprO6YqByJJ5x/e9SKlXp9Es6KQSswShP1uIF6/r3ttw72VhcTxDp 1njI+XOfAVdZFceDoblh42Q0csJSqhgk51n0LD1CySZMM5YyYzGTvTE8wOTpixau1pKld9 ynlN6U5gUu9nQJR1JyRCorek83rpMKoiNOZAP8bqg92RCaRbVR0I+VU6eHE+WnI2LYMyiS tXqggKOaJiGy2Ug9q0c8vbJxvCD20x0z5S43SItvtgYcj3R4HTzXThWdjB1f6nPEPziaT+ XzI5NKPhslm5/sR1CtHpqlMUsiofQY8N8diZI2xp6CDm2eO+rpCeyWcj3+AQSg== 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 8562F4961 for ; Sun, 13 Oct 2024 13:26:28 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szwjG-0007Z5-5b; Sun, 13 Oct 2024 07:25:43 -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 1szwj4-0007Ya-CG for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 07:25:32 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1szwj0-000641-Kd for emacs-orgmode@gnu.org; Sun, 13 Oct 2024 07:25:29 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 225AF240027 for ; Sun, 13 Oct 2024 13:25:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1728818723; bh=YRKkRiIv1hXmNpabglhh2zaGGihb6ObEtHQPGUk+XIg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=sEn/sjVh91SsnCsx4eDHl9EIt2KxtB+WeV+9an1uMAilsUZdt0Z7x5pA2HNKdQ4Aq 2C6w07ijjctXCUnWHWt67Pw2PXCeLN3yyR1W2td8/OJxfpZJktmL8yVzQseBCgFhkg LJd2WIqUW5QyzIg3S9B4gNVXArGuXotsztN1VedKqcMDO1BuwPUvoBbDDkYt+vG/z0 8UMV9N472Ot/Ns/MUAwMXo1Cj1l6Tj527nROBnLDINqbeijCJaSCkShZqhfWJR7NDA Svt6oTLKq9NVS4XVRI50l++iGDCmPYmmgyqRoxc4Z0Aaw7RSOWgRYgrTQvDjMsTJ+t EKoMmxUwKDddA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XRJ1t2rpGz6tvt; Sun, 13 Oct 2024 13:25:22 +0200 (CEST) From: Ihor Radchenko To: Daan Ro Cc: "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/)] In-Reply-To: <1C8D502B-2E47-45C3-A794-FFF7B57DFA23@getmailspring.com> References: <87ttdhqq33.fsf@localhost> <1C8D502B-2E47-45C3-A794-FFF7B57DFA23@getmailspring.com> Date: Sun, 13 Oct 2024 11:27:12 +0000 Message-ID: <87set0z1in.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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.26 X-Spam-Score: -1.26 X-Migadu-Queue-Id: 8562F4961 X-Migadu-Scanner: mx12.migadu.com X-TUID: ZuMsy0f70tMl 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