all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Anaphoric macros: increase visibility
@ 2017-01-13  8:39 Tino Calancha
  2017-01-13 19:48 ` Michael Heerdegen
  0 siblings, 1 reply; 20+ messages in thread
From: Tino Calancha @ 2017-01-13  8:39 UTC (permalink / raw)
  To: Emacs developers; +Cc: Tino Calancha


Hi,

I think anaphoric macros are a nice idiom; occasionally
they allow to write very concise and clear expressions.

AFAICS, in the Emacs tree they are just introduced
in ibuf-macs.el (`ibuffer-aif', `ibuffer-awhen').

To use these macros in Emacs code we must:
1) Define them again (code duplication).
2) Or require ibuf-macs, which it sounds not conventional.

It might have sense to move these general purpose macros
into a more visible location (subr.el or subr-x.el).

We might add other useful macros as well, e.g., awhile.

What do you think?

Tino



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

end of thread, other threads:[~2017-01-16  3:59 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-13  8:39 Anaphoric macros: increase visibility Tino Calancha
2017-01-13 19:48 ` Michael Heerdegen
2017-01-14  2:30   ` Rolf Ade
2017-01-14  2:48     ` Rolf Ade
2017-01-14  3:03     ` Noam Postavsky
2017-01-14  4:13       ` Richard Copley
2017-01-14  5:27   ` Tino Calancha
2017-01-15  0:39     ` Michael Heerdegen
2017-01-15  2:24       ` On the naming/behavior of {if, when}-let (was Re: Anaphoric macros: increase visibility) Mark Oteiza
2017-01-15  2:26       ` Anaphoric macros: increase visibility Michael Heerdegen
2017-01-15 10:24       ` Tino Calancha
2017-01-15 15:32         ` Stefan Monnier
2017-01-16  2:44           ` Tino Calancha
2017-01-16  3:59             ` Stefan Monnier
2017-01-14  6:25   ` Dmitri Paduchikh
2017-01-14  7:56     ` Tino Calancha
2017-01-14 10:15       ` Dmitri Paduchikh
2017-01-15  0:29         ` Michael Heerdegen
2017-01-15  2:03           ` Dmitri Paduchikh
2017-01-15  2:16             ` Michael Heerdegen

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.