[comp.windows.x] Xview Extras Menu Filtering

km@mathcs.emory.edu (Ken Mandelberg) (10/09/90)

Textedit on Xview lets you define an "extras" menu that allows
filtering the current selection through a specified filter, replacing
the selection with the output of the filter. For example, the standard
extras menu let you use "fmt" and "tr" as filters.

I would like to use a fancier filter, namely ispell. The plumbing is
not hard to do with a shell script as the filter. It writes the stdin
to a temp file, cranks up an ispell in a new xterm (or shelltool) to
operate on this file, and then cats the edited file to the stdout.

The problem is that creating the new window (for ispell) makes the
original window lose the selection, and lose track of what to replace
when the filter is done. In fact it appears to never replace anything.
It looks like any filter is ok, as long as it doesn't create any new
windows (and is thus not interactive).

Does anyone know how to avoid the problem, and allow interactive
filters to be applied to the selected text.
-- 
Ken Mandelberg      | km@mathcs.emory.edu          PREFERRED
Emory University    | {rutgers,gatech}!emory!km    UUCP 
Dept of Math and CS | km@emory.bitnet              NON-DOMAIN BITNET  
Atlanta, GA 30322   | Phone: (404) 727-7963