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


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*");
          }
            .
	    .

--John

--------------------------
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]