jed-users mailing list

[2007 Date Index] [2007 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: jed in a pipe :-)


On Tue, Oct 10, 2006 at 12:18:02AM -0400, John E. Davis wrote:
> If xargs had an option such as "--ignore-sigint", then this would not
> be a problem.  For this reason, I never use xargs and use jed in this
> way:
> 
>    ls | jed --stdin-files
> 
> where I have in my .jedrc file:
> 
> define stdin_files ()
> {
>    variable file;
> 
>    !if (bufferp ("*stdin*"))
>      return;
> 
>    setbuf ("*stdin*");
>    bob ();
> 
>    do
>      {
>         file = line_as_string ();
>         if (strlen (file))
>           {
>              () = find_file (file);
>              setbuf ("*stdin*");
>           }
>      }
>    while (down_1 ());
> }

Would it be possible to adapt that function so that it doesn't belch
if fed names of directories and probably only acts on plain files?

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 3221 2323190

--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2007 date index] [2007 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]