- Subject: Re: jed in a pipe :-)
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Sun, 22 Apr 2007 13:06:57 -0400
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]