From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id qP+XGh/hf2O+egEAbAwnHQ (envelope-from ) for ; Thu, 24 Nov 2022 22:24:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SGKfGh/hf2MYGwAAauVa8A (envelope-from ) for ; Thu, 24 Nov 2022 22:24:47 +0100 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 8EAA4214AD for ; Thu, 24 Nov 2022 22:24:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oyJeE-00056p-9Q; Thu, 24 Nov 2022 16:20:42 -0500 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 1oyJeC-00056d-Dz for emacs-orgmode@gnu.org; Thu, 24 Nov 2022 16:20:40 -0500 Received: from mr85p00im-ztdg06011901.me.com ([17.58.23.198]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oyJe8-00073c-PJ for emacs-orgmode@gnu.org; Thu, 24 Nov 2022 16:20:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=me.com; s=1a1hai; t=1669324833; bh=1CzZDDeBPXyuqLiIfjjhr71M15CG+SdNM4Vo2me7HFg=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=NkUH8ebTTvbd/+FETfKl9ShVAYCPoPg4fq9eGzdL7cfkxL8xLKqoxvX7ucv3eRS// d/uUDnaYPvBSxGuvh3ogRx+Wztik1KWipYJpqOboUSYdlsn+E3NXsSOP1hLRREjFit xszBkNakDUaKO8PLZag5FQGBxPIFr/zdebC1PoUdB+xcaH5Df3F80TfvWfyGF8Bvei /A/DjEfGavKpcupPj1NsmUVhAbgJhzFU+eVsLw2CPdcfXzVlMDnA59XUoR6fOCDIbA OyZaYSrUKJRHgjUrbWixMH1BmzWTU08GcFKCOcLiCeVzsZ9kkqzUUjUxIyY/YgcKy9 VIasLgO60b2sg== Received: from Rudolfs-MacBook-Air.local (mr38p00im-dlb-asmtp-mailmevip.me.com [17.57.152.18]) by mr85p00im-ztdg06011901.me.com (Postfix) with ESMTPSA id 2AC9F90059E for ; Thu, 24 Nov 2022 21:20:33 +0000 (UTC) From: =?utf-8?Q?Rudolf_Adamkovi=C4=8D?= To: emacs-orgmode@gnu.org Subject: Fix the confusing "result silenced" message Date: Thu, 24 Nov 2022 22:20:30 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Proofpoint-GUID: xXycRxg_MwnfPrPz5wYQwmQOdUA3J-vH X-Proofpoint-ORIG-GUID: xXycRxg_MwnfPrPz5wYQwmQOdUA3J-vH X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.572,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2022-01-14=5F01:2022-01-14=5F01,2020-02-14=5F11,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 adultscore=0 clxscore=1015 suspectscore=0 mlxscore=0 bulkscore=0 mlxlogscore=345 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2211240159 Received-SPF: pass client-ip=17.58.23.198; envelope-from=salutis@me.com; helo=mr85p00im-ztdg06011901.me.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669325086; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=1CzZDDeBPXyuqLiIfjjhr71M15CG+SdNM4Vo2me7HFg=; b=eqfvcXmgxRx2gutaxUjaiqKNxtLTNsSs/BIDJSgootIILued7pCI/29GKUFMuKjeFPwo/4 RVjCrRkMojxEV+n5sawEkifTn3L3ClCexLUx0CCPtSucUgNct/yNL3fJ6APU//l/iu/Dw+ df4FO50va44aPsMgEkNHESSTkm8lEJAeqjorfy/aXqguVwBqJVitMksYIPlg0yqdzmrs36 4Na7NFLZXkqxPjMmOhyiwEQa2hNq4i/U6eZizmHpyO90coJgqBVRN1yonGH36fWYWLH1g9 ZEVLqEWpcPQAZE+JABsVQaXVMEyw0X0LToYHjVJBOKEKNn3SzeTWG+chuHYvNQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669325086; a=rsa-sha256; cv=none; b=LNDYPpBGHowOUROXVtIURuCqNkt2pmxWfZYOds9gMbjQepmZL5oOZquaCTrVWYhnj0Shn2 m75TqP4OwKxv2DeRJ2k5rDF0X244VvZoLvJz7aE9L4bWftHkFJAa+LJ0pS+lBNkY0CS3qS DLnAx3SVCmgYrLrg1tnp7orOvgIWPphwXAgLnB9SXemkRm9Zj1iX/na7QxBLhJ3UzqL4NB lMyoTRajevMX3GGtAn4GfgIrgdLS2gLSJubk8BqfYzUQKtumjibVNwhCNxNaVG9mVRP7eL k1OZbZ5UZczYUoXq756SJY5KTzGaMuKPAXx+8s19ikxMXNsZ6N4ncNChQTgJ1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=NkUH8ebT; dmarc=pass (policy=quarantine) header.from=me.com; 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" X-Migadu-Spam-Score: -4.48 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=me.com header.s=1a1hai header.b=NkUH8ebT; dmarc=pass (policy=quarantine) header.from=me.com; 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" X-Migadu-Queue-Id: 8EAA4214AD X-Spam-Score: -4.48 X-Migadu-Scanner: scn0.migadu.com X-TUID: PUftK48Z+j5b --=-=-= Content-Type: text/plain Hello smart folks! With Org Babel, the user can make the results silent, or *silence* them, with the `:results silent' header argument. However, Org says "result silenced" after executing source blocks with the `:results none' header argument. Every time I see that message, I have a "Wait, what?" moment. The patch attached below fixes this incredibly confusing message. Rudy --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-ob-core-Fix-the-confusing-result-silenced-message.patch >From 6ffc06e9da723cf04e2c7471e35a46294742be3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Thu, 24 Nov 2022 22:10:29 +0100 Subject: [PATCH] ob-core: Fix the confusing "result silenced" message * lisp/ob-core.el (org-babel-execute-src-block): Say "discarded" instead of "silenced" after executing source blocks with `:results none' to avoid confusion with `:results silent'. Also, capitalize correctly. --- lisp/ob-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/ob-core.el b/lisp/ob-core.el index 1259909a0..fb472a00a 100644 --- a/lisp/ob-core.el +++ b/lisp/ob-core.el @@ -850,7 +850,7 @@ guess will be made." (when file (setq result-params (remove "file" result-params)))))) (if (member "none" result-params) - (message "result silenced") + (message "Result discarded") (org-babel-insert-result result result-params info new-hash lang (time-subtract (current-time) exec-start-time)))) -- 2.38.1 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable --=20 "Mathematics takes us still further from what is human into the region of absolute necessity, to which not only the actual world, but every possible world, must conform." -- Bertrand Russell, 1902 Rudolf Adamkovi=C4=8D [he/him] Studenohorsk=C3=A1 25 84103 Bratislava Slovakia --=-=-=--