jed-users mailing list

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

Re: wbf -- window/buffer/file functions


On Wed, Aug 06, 2003 at 12:47:34AM +0200, Klaus Schmid wrote:
> Hello,
> 
> the former ffx is included now in a more comprehensive wbf.
> 
> http://home.wtal.de/klaus/jedks/wbf.zip
> 
> I tried to make the installation/configuration as painless as possible.
> The wbf-files can be located in a separate directory, no need to
> mix up with other files, no need to touch your jed_library_path.
> Simply one evalfile line in jed.rc to activate/deactivate all of wbf.
> 
> Suggestions welcome.

This is super.  Thanks much.

I get one error which I was able to fix, although my fix may not be
the best.  I think it may be due to something kinky on my system.

When I try to save a file, I see a message such as the following:

    Error writing file /home/dkuhlman/tmp.txt/home/dkuhlman/tmp.txt

Apparently, on my system, getbuf_info returns the full path and
file name for both path and name.  Is that the correct behavior? 
Or, do I need a patch for the Jed source?

As you can see from the patch below, my fix was to not concatenate
the file name to the argument to write_buffer().

But, getbuf_info() is used in several places in ffx.sl, so I'm
wondering whether there might be other problems that I haven't come
across yet.

I notice that Klaus's files have MS Windows line endings.  I'm on
Linux.  Could this be a platform difference?

I'm using jed-0.99-16.

Here is the patch (though not necessarily the correct fix):

===============================================================
    --- ffx_old.sl  2003-08-07 08:33:50.000000000 -0700
    +++ ffx.sl  2003-08-07 08:34:33.000000000 -0700
    @@ -391,7 +391,7 @@
             (b,d,,)= getbuf_info( whatbuf());
             if ( b != "")
               {
    -             ()= write_buffer( b+d);
    +             ()= write_buffer(b);
                  return;
               }
             w= "write_buffer";
===============================================================

Once again, thanks to Klaus for a very handy and useful extension
to Jed.

Dave

-- 
Dave Kuhlman
dkuhlman@xxxxxxxx
http://www.rexx.com/~dkuhlman

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


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