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


Dave Kuhlman <dkuhlman@xxxxxxxxxxxxxxx> wrote:
>Apparently, on my system, getbuf_info returns the full path and
>file name for both path and name.  Is that the correct behavior?

No.  Are you sure that this is happening?  It seems to me like many
things would fail if this were the case.  Please save the following to
a file, e.g., test.sl, and run jed via 'jed --script /tmp/test.sl':

  static variable file, dir;
  () = read_file (__FILE__);

  (file, dir,,) = getbuf_info ();
  vmessage ("__FILE__ = '%s'\nfile = '%s'\ndir = '%s'\n", 
            __FILE__, file, dir);
  exit (0);

You should see something like:

  __FILE__ = '/tmp/test.sl'
  file = 'test.sl'
  dir = '/tmp/'

Thanks,
--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>.


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