all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.