Pipe buffer content thru program before save

Thomas Meyer <[email protected]>
Newsgroups gmane.editors.jedit.user
Message-ID <[email protected]>
Hi,

I wanted to pipe a buffer‘s content thru a program while saving.
This is what I did come up with. It was surpisingly hard to solve:
https://github.com/thomasmey/jedit-scripts/blob/master/bsh/save-thru.bsh

I wonder if there would have been a more easy way to solve this problem!
What do you think?

Mfg
Thomas

-- 
-----------------------------------------------
jEdit Users' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.