>>>> "Greg" == Greg Klanderman
<gak(a)klanderman.net> writes:
Greg> I would like to know if there is support for adding another
Greg> optional argument to save-some-buffers, "base-directory".
Greg> If non-null, buffers visiting files not located under the
Greg> base-directory would be skipped.
Let's not do it this way. We already have several ad hoc ways of
selecting certain buffers in a scattering of functions. What we
should aim at is to move all these functions (the buffers tab,
various! buffer menus, etc) to a common set of buffer filter
functions and a common API for uing them.
The buffers tab (code is in >= 21.4 core in lisp/gutter-items.el)
already uses a fairly complex filtering scheme; I suggest looking at
that. There's also the buffer menu and the ibuffer library.
I'm not asking you to unify the others (of course I wouldn't sneeze at
a patch ;-), just to look at them, decide which one seems most
general/sane and use a similar API. Then it's just a matter of an
indirect function call instead of a very similar direct function call
or inline code. I can very easily see people wanting to use your
function in the buffers tab, can't you?
--
Institute of Policy and Planning Sciences
http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
Ask not how you can "do" free software business;
ask what your business can "do for" free software.