Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

http://lispmonks.org

by Fletch (Chancellor)
on Apr 07, 2002 at 01:00 UTC ( #157214=note: print w/ replies, xml ) Need Help??


in reply to (X)Emacs client
in thread Post a journal entry to use.perl.org

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).

Perhaps . . .

(if (not (region-exists-p)) (mark-whole-buffer))

Update: You might want to do a save-excursion 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.


Comment on http://lispmonks.org
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://157214]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2014-12-28 09:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (180 votes), past polls