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 Sun, Apr 22, 2007 at 01:06:57PM -0400, John E. Davis wrote:
> Marc Haber <mh+jed-users@xxxxxxxxxxxx> wrote:
> >>    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?
> 
> Sure, use:
> 
>             .
> 	    .
>         if (1 == file_status (file))
>           {
>              () = find_file (file);
>              setbuf ("*stdin*");
>           }
>             .
> 	    .

Thanks!

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]