unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* identity function with an echo side effect
@ 2010-08-10 20:56 bolega
  2010-08-10 23:03 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 7+ messages in thread
From: bolega @ 2010-08-10 20:56 UTC (permalink / raw)
  To: help-gnu-emacs

After searching google groups and emacs apropos extensively, I could
not find a function, perhaps I am missing one that can return
identically return its argument and has a small side effect of echoing
the argument in some place such as for example

the mini buffer or the point at which C-x C-e is typed.

For example, calling this function "echo" , usage would look like
this :

(cdr ( echo (cdr (echo (cdr (echo '(a b c d)))))))

echo:
'(a b c d) or (a b c d)  (I am not sure which would be appropriate)
(b c d)
(c d)

result:
(d)

Is there a need for quotes to prevent evaluation of alphabets at any
phase ?

Thanks.


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

end of thread, other threads:[~2010-08-12  2:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-10 20:56 identity function with an echo side effect bolega
2010-08-10 23:03 ` Pascal J. Bourguignon
2010-08-11  5:01   ` bolega
2010-08-11 14:19     ` Pascal J. Bourguignon
2010-08-11 17:42       ` bolega
2010-08-11 20:43         ` Pascal J. Bourguignon
2010-08-12  2:35         ` TheFlyingDutchman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).