greg(a)alphatech.com (Greg Klanderman) writes:
>>>>> "Devon" == Devon Sean McCullough
<devon(a)iac.net> writes:
Devon> I typed Meta-Minus Meta-C in the minibuffer prompt for
Devon> string-rectangle expecting to capitalize the previous word
Devon> I had typed.
Looks like region-active-p in simple.el needs to return whether the
region is active *in the current buffer*.
That change would be a bit aggressive, I think.
However, I agree that should accept an optional BUFFER argument, so
that you could specify which buffer you are interested in. Then we
could change `capitalize-region-or-word' and friends to check the
region in the current buffer.
Implementation is trivial -- although `zmacs-region-buffer' is indeed
kludgy, we don't care about that, because we are the implementors. As
long as the code is neatly wrapped within the region-* functions,
we're clean.
--
Hrvoje Niksic <hniksic(a)srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
Depression is merely anger without enthusiasm.