all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#49376: Feature request (poll): default function for pretty printing when called interactively
@ 2021-07-04 11:22 dalanicolai
  2021-07-04 11:53 ` dalanicolai
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: dalanicolai @ 2021-07-04 11:22 UTC (permalink / raw)
  To: 49376

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!






^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-11-04 22:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-04 11:22 bug#49376: Feature request (poll): default function for pretty printing when called interactively dalanicolai
2021-07-04 11:53 ` dalanicolai
2021-07-04 12:23 ` bug#49376: dalanicolai
2021-07-04 13:40 ` bug#49376: Feature request (poll): default function for pretty printing when called interactively Lars Ingebrigtsen
2021-07-06 12:44   ` dalanicolai
2021-07-06 14:38     ` Lars Ingebrigtsen
2021-11-04 22:18       ` Lars Ingebrigtsen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.