From unknown Wed Sep 10 22:20:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49376: Feature request (poll): default function for pretty printing when called interactively Resent-From: dalanicolai@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 11:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 49376@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.162539778722825 (code B ref -1); Sun, 04 Jul 2021 11:24:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jul 2021 11:23:07 +0000 Received: from localhost ([127.0.0.1]:40420 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m00DL-0005w5-4a for submit@debbugs.gnu.org; Sun, 04 Jul 2021 07:23:07 -0400 Received: from lists.gnu.org ([209.51.188.17]:42068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m00DJ-0005vx-ME for submit@debbugs.gnu.org; Sun, 04 Jul 2021 07:23:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46184) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m00DJ-0006hJ-D5 for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 07:23:05 -0400 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]:41919) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m00DH-0002zD-0i for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 07:23:05 -0400 Received: by mail-ed1-x536.google.com with SMTP id m1so19810055edq.8 for ; Sun, 04 Jul 2021 04:23:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=OFRRCSGy+H7dvKlSzgb5uAZMxNReBk03Z5hETdMuppY=; b=I0ZmPyYtivkHGS2idvxpLf1YcGTr3DZUJpKA4MN4JrJd1L+6V2F0eUM/AtcJQCmZlz GHw7t2VxekOWQq6Jvqej8z8bSR2ofVhaxdXFt1GT8/+n6vPvOfW0q4bUe/MJ2/pa1eUQ FLAXoE6lYRPmddMAC3M1tzjq6kY23gtjNB05Kzqi4htrmLJKGwdmB+JvSNa4p/azTuAp 6fAmBcRM64eCDXkARlhQseWuEN8QHDdtLQq2PcF7XsN/QbAprcQOrkxRncmhOMfxSDUC gSz9dWzC5rkzvKvKw09M7AHoFe324623plqdpsNMtUcSjRZH+3jN7EErwvEOHmvUoVjn /cmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:user-agent :mime-version:content-transfer-encoding; bh=OFRRCSGy+H7dvKlSzgb5uAZMxNReBk03Z5hETdMuppY=; b=MO6VQ97ykOGy8QwnJxptWmJ4s6LWv16keXhw5lZuUaDTnPOy/lNULUL//5FwdTA8lh 8ju2vkj6wXz7G0Xj+OERxqKJkChjF4wlcU4p9hmwncXPWe7E+Op7sbdEMM1nIb74+EZB laiKLdBAz8W/RP1VbGGlKT+VkNkuX4/dShNLfSOj14miN1VenDaaxEExYUhf8zHGSsiw rPdpWyVJH7+QtJ2siJ0GNcqmDu2m637TsO5esXMuXhJmQt5uDYJcSlU/IymEuoJNWgDb nZHCQmUD80+r+wtvW9Lr0305JuVBOykvB2Vst9AZD/dltFkjBAeKTpcE3/7BT1YiJCmj 3/WQ== X-Gm-Message-State: AOAM531rDLGRhVJbo426hKPS8lbzNRW2BfFp039g/0PFyJ89imCnxyX2 KEFI3pVLa3ETkA6DE8JbKf7hhznGUH2GKg== X-Google-Smtp-Source: ABdhPJwB86YJnfRslCh9hNV1T2gkccZJFK5tq8nNROFkEiG2RATED3Q1ccnYhxW6MToDvTG85JCYVg== X-Received: by 2002:a05:6402:198:: with SMTP id r24mr10135615edv.93.1625397780641; Sun, 04 Jul 2021 04:23:00 -0700 (PDT) Received: from [192.168.3.11] (86-90-107-231.fixed.kpn.net. [86.90.107.231]) by smtp.gmail.com with ESMTPSA id h8sm3173862ejj.22.2021.07.04.04.22.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 04:23:00 -0700 (PDT) Message-ID: <613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com> From: dalanicolai@gmail.com Date: Sun, 04 Jul 2021 13:22:59 +0200 Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.2 (3.40.2-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::536; envelope-from=dalanicolai@gmail.com; helo=mail-ed1-x536.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, 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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) I find myself quite frequently prefering to use the following form for exiting/returning from a function: ``` (when (called-interactively-p) (pp some-datastructure) data-structure)))) ``` because often I prefer to see a pretty printed representation of a data-structure when calling as a command, while I would like to use the data-structure in another function when called as a function (which unfortunately is not possible with the pretty printed data-structure) So I was wondering if it would be reasonable to add a basic output function for this to the Emacs core. Not very important of course, but I figured that it could be a reasonable addition. If anybody has a strong opinion about it, please share. Thank you! From unknown Wed Sep 10 22:20:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49376: Feature request (poll): default function for pretty printing when called interactively References: <613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com> Resent-From: dalanicolai@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 11:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 49376@debbugs.gnu.org X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.16253996312191 (code B ref -1); Sun, 04 Jul 2021 11:54:01 +0000 Received: (at submit) by debbugs.gnu.org; 4 Jul 2021 11:53:51 +0000 Received: from localhost ([127.0.0.1]:40448 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m00h5-0000ZG-5b for submit@debbugs.gnu.org; Sun, 04 Jul 2021 07:53:51 -0400 Received: from lists.gnu.org ([209.51.188.17]:46812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m00h3-0000Z8-Cm for submit@debbugs.gnu.org; Sun, 04 Jul 2021 07:53:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49754) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m00h3-0003OR-44 for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 07:53:49 -0400 Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]:39464) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m00h1-0006sl-3U for bug-gnu-emacs@gnu.org; Sun, 04 Jul 2021 07:53:48 -0400 Received: by mail-ed1-x52e.google.com with SMTP id j11so19874569edq.6 for ; Sun, 04 Jul 2021 04:53:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:subject:from:to:date:in-reply-to:user-agent:mime-version :content-transfer-encoding; bh=j1BnS9R8RcmfoANsVrL4TSBum/tqeNMSkhxRbSZ2c5s=; b=UGAdfsg1YArQZPu0BPAyeA4QUsakSF45IzpVC1RHlw1Wi97N7D7sj6BgmuTfUdY449 WaTkcnyydUn/xQ8DkLSDg4HBtYlUb3O9rMJz9rG03+xQ9420PefbZkyUYWdDVnT5rWSE PkY7u4vp9GnyCLg5BRbJMzGE1Tb/LkPY2+A5qqNYmhYHTZAX5Dt8KibI/2V1f/lIvbiP FdC/q5Pxh0UUma0ZilVXMt8kpc9X0qBeyQ4IDRm2yLnUuhjAgv0Zz7D7EMvNqJN7mQoS RvPTz4sjKyqJVdpRM/WY3+8EKP4BUt6eD1DytXyZJCxbCMRruR6jcm/jYds9AYCa9Ro+ 3QEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :user-agent:mime-version:content-transfer-encoding; bh=j1BnS9R8RcmfoANsVrL4TSBum/tqeNMSkhxRbSZ2c5s=; b=VaBhehh/kKjcwRHbqBCLqjaz3FAkKjDtuSh+Q3QRkJIzXbsURPGO84UzhK49qgZ27W vy98bxvqnk62yNga6km7pavZfdEhwVUiqxYc8K/oYihmUiXeFtMNo7B5u9AR7coLSPCK 6clwAdm6TQdedsCyhzdWB4HCRnZ5m1NyIf9VCXGhNnyyPs5rdVxfvA4oKGdf9aemUB0C kKNOH+QGfq37MreTA1ASB0YlHuecweMXNcE/R0hZwWhHy1bHc/o9//GebF+AYmVXtdVl b9/BCia9S4RRBLlbHrJSElSchuBnE9H+Zpsh1Mk2aq2ZZj1nWg9fVvisboetbvwB6azK LyLg== X-Gm-Message-State: AOAM533TUmfFNG1CaWPV7fELZFGvI7NgVFWS04Nyl+oSAk5WwmBt53jw z1kbwICb54RWzA1d3wgoOTBIWm59qxOvGw== X-Google-Smtp-Source: ABdhPJwyczrjfnxim0DqxWALAn8CehSzeU1BzV9p5AKv+OCrgLDmgfp7kE0g71KiyPZOJlnTccoMAg== X-Received: by 2002:aa7:d74d:: with SMTP id a13mr10252409eds.43.1625399625579; Sun, 04 Jul 2021 04:53:45 -0700 (PDT) Received: from [192.168.3.11] (86-90-107-231.fixed.kpn.net. [86.90.107.231]) by smtp.gmail.com with ESMTPSA id c15sm3782003eds.16.2021.07.04.04.53.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jul 2021 04:53:45 -0700 (PDT) Message-ID: <6ad7a45d42c1b618799cd77ed1b9d9b9a67b8096.camel@gmail.com> From: dalanicolai@gmail.com Date: Sun, 04 Jul 2021 13:53:44 +0200 In-Reply-To: 613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.2 (3.40.2-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=dalanicolai@gmail.com; helo=mail-ed1-x52e.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, 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-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) It is mainly useful when parsing text/code/buffers, so it might be called parse<->print (<-> means optionally interchanged). On the other hand it is used mainly when "developing" (or when transforming text/code), so it might be called devel<->print. Obviously it is no problem to just define this function in my package(s), where I like to provide users with an 'even easier' introspection option for some 'reusable' functions (e.g. parsing a pdf to a dom (html/xml). Where we often want to apply it to the currently viewed document). From unknown Wed Sep 10 22:20:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49376: References: <613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com> In-Reply-To: <613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com> Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 12:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 49376@debbugs.gnu.org Received: via spool by 49376-submit@debbugs.gnu.org id=B49376.16254014345644 (code B ref 49376); Sun, 04 Jul 2021 12:24:01 +0000 Received: (at 49376) by debbugs.gnu.org; 4 Jul 2021 12:23:54 +0000 Received: from localhost ([127.0.0.1]:40502 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m01AA-0001Sy-6N for submit@debbugs.gnu.org; Sun, 04 Jul 2021 08:23:54 -0400 Received: from mail-vs1-f49.google.com ([209.85.217.49]:39594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m01A7-0001Si-Nr for 49376@debbugs.gnu.org; Sun, 04 Jul 2021 08:23:52 -0400 Received: by mail-vs1-f49.google.com with SMTP id h126so5996251vsc.6 for <49376@debbugs.gnu.org>; Sun, 04 Jul 2021 05:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=kwu7ZXMWEnR2JFcrTPQ+2JWV9GRXznsmTCtf3Eq4oug=; b=pz7p9bIt85Vl8rcDJXTsn2XhDmO0rL6HkCCzjhoguFJL/JY1Nz75lCgupbnyRxXAd2 InHOnXwhS0nIFBPe7+wHxLVYauobHoNSQ8HRem6ufscBSIgFsgArIDX8EQdtqjDjr3oQ gumWNnWzG1weCbCuGBjws964Eb/gGBDBsHGnRyjfCPAp8hzuGV8ChKpgpPvHgTevRrg2 5pAct+fGU1PUHJww1TAnaM02HSLrLgHOpa02/F9rCF/Wq2Uka28q0S4l2YkQkaDRXn6I HLxgQ/iapMjxiwr0DvIVaI0mXMiyPKV2I8du92apW+KN5D2bEdQLNGlwZRCL8IncWNk/ nM+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=kwu7ZXMWEnR2JFcrTPQ+2JWV9GRXznsmTCtf3Eq4oug=; b=s14ngc/2uFniQ36oMcm0iHnF3Ib234qfUHQWMSRh5Jl96Fa/sabwEN74wIf1M/SgrE JUDR3PpuguekJgC1UjG68X4JL4y09/9oqtueIu4aNtKqdQHVCJZUp1usoWYmKAecPn0n NcdYeeZjXM2vtQHXgugC2t4YMgDZfhRsYp8GeGg8wSEXDId15X5cURZ4+0zIfcsILbLB CW/j+SmJFjSk6aQlueQ8c7s6TGzMnpqpZZFyQUru9lmd/rtVF9WBMG+1nTUjdOAwnx6i Wqr4d4UU4PrkArH0a8p0H1sWJn6WCQy5s0qlskLMwOr4oYejikZlYFwMgLprcfBLPjiE EW6g== X-Gm-Message-State: AOAM533OZAQbSbS7LImCDtU7UDl9bzDmCCtTKRtsj8IZFHvmiYAyxBgR uKkvXX6PeiaBLRnv8wK9AIu1MeFI9EbwnXg/wPpTQpt7/PWZcQ== X-Google-Smtp-Source: ABdhPJw6O0TtDhyxRZ5GzeoAY4caZcznGNzOf9I7qyBylhmaAkBZB/b9o/fHUBr732nPB2udhkXag1XGpygdYoKpfAo= X-Received: by 2002:a05:6102:45a:: with SMTP id e26mr5970796vsq.41.1625401426058; Sun, 04 Jul 2021 05:23:46 -0700 (PDT) MIME-Version: 1.0 From: dalanicolai Date: Sun, 4 Jul 2021 14:23:35 +0200 Message-ID: Content-Type: multipart/alternative; boundary="0000000000009e1ff005c64b4264" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: I guess it should actually be the following macro, to function as it is supposed to: ``` (defmacro parse-print (data) `(if (called-interactively-p) (pp ,data) ,data)) ``` I guess it should actually be the following macro, to function as it is supposed to: Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (dalanicolai[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.217.49 listed in wl.mailspike.net] 0.0 HTML_MESSAGE BODY: HTML included in message -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.217.49 listed in list.dnswl.org] 2.0 BLANK_SUBJECT Subject is present but empty X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --0000000000009e1ff005c64b4264 Content-Type: text/plain; charset="UTF-8" I guess it should actually be the following macro, to function as it is supposed to: ``` (defmacro parse-print (data) `(if (called-interactively-p) (pp ,data) ,data)) ``` --0000000000009e1ff005c64b4264 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I guess it should actually be the following macro, to= function as it is supposed to:
```
(defmacro parse-pri= nt (data)
=C2=A0 `(if (called-interactively-p)
=C2=A0 =C2=A0 =C2=A0 = =C2=A0(pp ,data)
=C2=A0 =C2=A0 ,data))
```
--0000000000009e1ff005c64b4264-- From unknown Wed Sep 10 22:20:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49376: Feature request (poll): default function for pretty printing when called interactively Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Jul 2021 13:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: dalanicolai@gmail.com Cc: 49376@debbugs.gnu.org Received: via spool by 49376-submit@debbugs.gnu.org id=B49376.162540603514677 (code B ref 49376); Sun, 04 Jul 2021 13:41:02 +0000 Received: (at 49376) by debbugs.gnu.org; 4 Jul 2021 13:40:35 +0000 Received: from localhost ([127.0.0.1]:40584 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02MN-0003oe-2g for submit@debbugs.gnu.org; Sun, 04 Jul 2021 09:40:35 -0400 Received: from quimby.gnus.org ([95.216.78.240]:47068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m02ML-0003oL-Px for 49376@debbugs.gnu.org; Sun, 04 Jul 2021 09:40:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=rlEBYJQioPQ/7T5wAOUYRZlFV5Rir4IHZSngBSIb7Pg=; b=rSCDxDRe5EKTBI3cDtmdkNOfDR EwBMp1VVFLPSvUtozuc9QVP/DjXrzV3RfrJOdhas4FT2aAarSaWcqxCiJcSHdLzFUJ3PZxYoYYdch kYt2q6c5Gwl5GwIwlqbKU04V6ehWu9Yl22CTGPTzDftlL+APeddOUfxojOPq6MQGajBk=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m02MD-0000pY-AU; Sun, 04 Jul 2021 15:40:27 +0200 From: Lars Ingebrigtsen References: <613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com> X-Now-Playing: Kissing the Pink's _Naked_: "The Last Film" Date: Sun, 04 Jul 2021 15:40:24 +0200 In-Reply-To: <613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com> (dalanicolai@gmail.com's message of "Sun, 04 Jul 2021 13:22:59 +0200") Message-ID: <87mtr242pj.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: dalanicolai@gmail.com writes: > So I was wondering if it would be reasonable to add a basic output > function for this to the Emacs core. I can't quite remember writing any command that would pretty-print a Lisp expression when called interactively -- when a command displays information to the user, pp-ing a Lisp expression is usually n [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) dalanicolai@gmail.com writes: > So I was wondering if it would be reasonable to add a basic output > function for this to the Emacs core. I can't quite remember writing any command that would pretty-print a Lisp expression when called interactively -- when a command displays information to the user, pp-ing a Lisp expression is usually not the most readable way. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Sep 10 22:20:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49376: Feature request (poll): default function for pretty printing when called interactively Resent-From: dalanicolai Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jul 2021 12:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Lars Ingebrigtsen Cc: 49376@debbugs.gnu.org Received: via spool by 49376-submit@debbugs.gnu.org id=B49376.16255755063494 (code B ref 49376); Tue, 06 Jul 2021 12:46:01 +0000 Received: (at 49376) by debbugs.gnu.org; 6 Jul 2021 12:45:06 +0000 Received: from localhost ([127.0.0.1]:47636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0kRm-0000uI-Ig for submit@debbugs.gnu.org; Tue, 06 Jul 2021 08:45:06 -0400 Received: from mail-vs1-f43.google.com ([209.85.217.43]:35539) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0kRk-0000tV-EF for 49376@debbugs.gnu.org; Tue, 06 Jul 2021 08:45:05 -0400 Received: by mail-vs1-f43.google.com with SMTP id h18so7910614vsj.2 for <49376@debbugs.gnu.org>; Tue, 06 Jul 2021 05:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KXEWdbj+yA2w5FVagUO63MUlQ9y4he3xTQCWbpDtGkM=; b=dGTIHu43YJRZVK/X88CclwsSchZ02xK4ItcqvTH6w6sUqTvYRMev9pnNCrcNq5v0cF 7c35v/yD24CHXjUTlENIeNCZUWDPSSPmTU633lt/ZinGJqtZrtDZ8b8qxyY3dUCnbwKo NA0TjL3vN/Oi74BczDfqOKubKfZo5lMM1FJxyV0cKX1QBnK1Y7M5BzSqrYQscVxakMcL BlxDGcEWzF0TLtNMHALVKIxxMa7gjWUN5jDl0eyNZVNn5zOmuvmZbfLbthXvNSa0xnIY KdcvSUWvvojm6oU+a9BzJvwWMznvHqI8JeEtER0lizo4S1uJR/qgF5cr75jQ+/NEnPlG U05A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=KXEWdbj+yA2w5FVagUO63MUlQ9y4he3xTQCWbpDtGkM=; b=UL7ig18z1kqAM0LYtHqopnRZ4WwAJZayBSDlQ0E9D8QD2DNWPaugg5Cz77w2IsQV3T DMuBuu1Z2F0xqxJ9cXLmDynrgwE/nEuKh4tD5VYYj+9ouZTTb56y031AOxzRqZhIyKJ5 FaH6hsAFxenLUDXTIrItqEDrzeurmtawyokVurb3Jv43zzc1av5TGpdeoNy1/SfqISwb 4oI47eO9CvZAy7q/8GUWPYEe97NiqjNvqNTLIDcKXllormEnEPaLAD+apNeappR9ysjR 8QpxC3DRtZrJQTDyTSjZEUNR2rsbZH6JOqiabBIl0PLXc2Z+tHfoPT0totXl7aA4vPA1 1nxA== X-Gm-Message-State: AOAM533OW2ESTfmg2paI8qW9JVBdvcXowFhvpp9LCI375dipsk8tN2Ek jsNnc8EKYDPV8V+dhhBgKFMcq3gyXWChUmg1HbU= X-Google-Smtp-Source: ABdhPJwsh+gf/Kr12LMRL7/IN3wOaCNgg+PrABAou4zqGu4kDBR6EmBDt4wHVNMRW+CcxAfdWvOTN81UmIkrqtoRSk8= X-Received: by 2002:a67:87c6:: with SMTP id j189mr14551013vsd.0.1625575498839; Tue, 06 Jul 2021 05:44:58 -0700 (PDT) MIME-Version: 1.0 References: <613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com> <87mtr242pj.fsf@gnus.org> In-Reply-To: <87mtr242pj.fsf@gnus.org> From: dalanicolai Date: Tue, 6 Jul 2021 14:44:47 +0200 Message-ID: Content-Type: multipart/alternative; boundary="00000000000029fcf705c673ca96" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000029fcf705c673ca96 Content-Type: text/plain; charset="UTF-8" I agree it is not that important. But now I do wonder what then, in general, would provide a more readable way for printing lisp expressions. On Sun, 4 Jul 2021 at 15:40, Lars Ingebrigtsen wrote: > dalanicolai@gmail.com writes: > > > So I was wondering if it would be reasonable to add a basic output > > function for this to the Emacs core. > > I can't quite remember writing any command that would pretty-print a > Lisp expression when called interactively -- when a command displays > information to the user, pp-ing a Lisp expression is usually not the > most readable way. > > -- > (domestic pets only, the antidote for overdose, milk.) > bloggy blog: http://lars.ingebrigtsen.no > --00000000000029fcf705c673ca96 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I agree it is not that important. But now I do wonder= what then, in general,
would provide a more readable way for pr= inting lisp expressions.

On Sun, 4 Jul 2021 at 15:40, Lars Ingebri= gtsen <larsi@gnus.org> wrote:
dalanicolai@gmail.com writes:=

> So I was wondering if it would be reasonable to add a basic output
> function for this to the Emacs core.

I can't quite remember writing any command that would pretty-print a Lisp expression when called interactively -- when a command displays
information to the user, pp-ing a Lisp expression is usually not the
most readable way.

--
(domestic pets only, the antidote for overdose, milk.)
=C2=A0 =C2=A0bloggy blog: http://lars.ingebrigtsen.no
--00000000000029fcf705c673ca96-- From unknown Wed Sep 10 22:20:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49376: Feature request (poll): default function for pretty printing when called interactively Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Jul 2021 14:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: dalanicolai Cc: 49376@debbugs.gnu.org Received: via spool by 49376-submit@debbugs.gnu.org id=B49376.162558234916524 (code B ref 49376); Tue, 06 Jul 2021 14:40:02 +0000 Received: (at 49376) by debbugs.gnu.org; 6 Jul 2021 14:39:09 +0000 Received: from localhost ([127.0.0.1]:49625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0mE8-0004IS-O3 for submit@debbugs.gnu.org; Tue, 06 Jul 2021 10:39:08 -0400 Received: from quimby.gnus.org ([95.216.78.240]:40870) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m0mE7-0004Ha-5p for 49376@debbugs.gnu.org; Tue, 06 Jul 2021 10:39:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=XwQ2xsf2y+0nN53xPSnF7gedvns6RNWMpDceQcEnx4Y=; b=PGQ3vF0vW269sai8sH9l1z+98X +Ri+FZdvcjHBP9k5n+E2NrgMwCbrDrKMzPZF5VhPP5pRLMGO3/PriH/MJuS6atcAF+OZVcZLHN9mH PvxKRAyKtCqOT7C5sTCuYcUQO3/6WttQzDo8xKdTg0hfYIG4+C6T6elNX8d/3UpCtQMw=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m0mDy-0001z3-Ve; Tue, 06 Jul 2021 16:39:01 +0200 From: Lars Ingebrigtsen References: <613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com> <87mtr242pj.fsf@gnus.org> X-Now-Playing: David Allred's _Alone on Friendship Island_: "Our Troubled Love" Date: Tue, 06 Jul 2021 16:38:53 +0200 In-Reply-To: (dalanicolai@gmail.com's message of "Tue, 6 Jul 2021 14:44:47 +0200") Message-ID: <87pmvvtsle.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: dalanicolai writes: > I agree it is not that important. But now I do wonder what then, in general, > would provide a more readable way for printing lisp expressions. Messaging a Lisp expression at the user is pretty uncommon in itself, I think? Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) dalanicolai writes: > I agree it is not that important. But now I do wonder what then, in general, > would provide a more readable way for printing lisp expressions. Messaging a Lisp expression at the user is pretty uncommon in itself, I think? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Wed Sep 10 22:20:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49376: Feature request (poll): default function for pretty printing when called interactively Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 04 Nov 2021 22:19:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49376 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: dalanicolai Cc: 49376@debbugs.gnu.org Received: via spool by 49376-submit@debbugs.gnu.org id=B49376.163606431810786 (code B ref 49376); Thu, 04 Nov 2021 22:19:02 +0000 Received: (at 49376) by debbugs.gnu.org; 4 Nov 2021 22:18:38 +0000 Received: from localhost ([127.0.0.1]:43811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mil49-0002nt-UV for submit@debbugs.gnu.org; Thu, 04 Nov 2021 18:18:38 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mil48-0002ne-4z for 49376@debbugs.gnu.org; Thu, 04 Nov 2021 18:18:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=lx110/TakQRvf2ozgwVCO+Mn9ydXmIWcx1SA5znlRxM=; b=bOpBAY0U+8eN6/jh/KJ9NX2iK1 NARIyUekFds0Uui/ko+OZxjvK3rBRecuyzK0a5lBuQv/cyO5cz1Vni3ij0f4m0rC+3EJPHhPi7QIc QHK10ZJI8avm9KpzLnuTWy9FHducv5c5VRqEDJFzasw/IBTS04Z8C1ynyKkBmdpVDuKk=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mil3y-000703-Tq; Thu, 04 Nov 2021 23:18:29 +0100 From: Lars Ingebrigtsen References: <613fca7bda12799d0847d127d616d1ecb4a86504.camel@gmail.com> <87mtr242pj.fsf@gnus.org> <87pmvvtsle.fsf@gnus.org> X-Now-Playing: Ben Neill's _Automotive_: "Bouquet" Date: Thu, 04 Nov 2021 23:18:24 +0100 In-Reply-To: <87pmvvtsle.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 06 Jul 2021 16:38:53 +0200") Message-ID: <87sfwbpntb.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Lars Ingebrigtsen writes: > dalanicolai writes: > >> I agree it is not that important. But now I do wonder what then, in general, >> would provide a more readable way for printing lisp expressions. > > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Lars Ingebrigtsen writes: > dalanicolai writes: > >> I agree it is not that important. But now I do wonder what then, in general, >> would provide a more readable way for printing lisp expressions. > > Messaging a Lisp expression at the user is pretty uncommon in itself, I > think? I think the conclusion here was that we don't really want to add something like this, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 04 18:18:45 2021 Received: (at control) by debbugs.gnu.org; 4 Nov 2021 22:18:45 +0000 Received: from localhost ([127.0.0.1]:43814 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mil4H-0002oF-44 for submit@debbugs.gnu.org; Thu, 04 Nov 2021 18:18:45 -0400 Received: from quimby.gnus.org ([95.216.78.240]:60108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mil4F-0002nu-6C for control@debbugs.gnu.org; Thu, 04 Nov 2021 18:18:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=z9SfWwCL5Gdh7vWRcfBQUZ9V6W9Lxo7+mG4K1p0/XKM=; b=GC4MqGqQ/uxgeh4Wmxr3JAlkMb 8N1Ddnbs+zCj7lSvpm86OX5rcgGHt/Ml2ed0UfYQRSl1iRXRCNyxYLtkF0FpM4F0njvP98vR8YERA 0e17C5/xE7P23hUIBdjqfgb2ZRSRxaxG+A1FwLgheWj8YRznSYyi6cTV/E86BAfdz7VA=; Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mil47-00070D-7Y for control@debbugs.gnu.org; Thu, 04 Nov 2021 23:18:37 +0100 Date: Thu, 04 Nov 2021 23:18:34 +0100 Message-Id: <87r1bvpnt1.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #49376 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 49376 wontfix close 49376 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) tags 49376 wontfix close 49376 quit