GNU bug report logs - #49376
Feature request (poll): default function for pretty printing when called interactively

Previous Next

Package: emacs;

Reported by: dalanicolai <at> gmail.com

Date: Sun, 4 Jul 2021 11:24:01 UTC

Severity: wishlist

Tags: wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: dalanicolai <at> gmail.com
To: 49376 <at> debbugs.gnu.org
Subject: bug#49376: Feature request (poll): default function for pretty printing when called interactively
Date: Sun, 04 Jul 2021 13:22:59 +0200
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!





This bug report was last modified 3 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.