note
Fletch
<blockquote>
<i>
Right now, you have to have the desired data in the region, I'd like for it to default to the whole buffer if the region isn't active (but there is no shell-command-on-buffer function in elisp, on the the region-oriented one).
</i>
</blockquote>
<p>Perhaps . . .</p>
<code>
(if (not (region-exists-p))
(mark-whole-buffer))
</code>
<p>
<b>Update:</b> You might want to do a <code>save-excursion</code>
before that so you don't leave it marked afterwards. Of course
it's been so long since I even tried diddling with elisp
I can't remember if that's recommended or not.
</p>
157135
157139