[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Anaphoric macros: increase visibility

From: Tino Calancha
Subject: Anaphoric macros: increase visibility
Date: Fri, 13 Jan 2017 17:39:15 +0900 (JST)
User-agent: Alpine 2.20 (DEB 67 2015-01-07)


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?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]