bug in edit.m
Ben Abbott
bpabbott at mac.com
Tue Jan 15 18:58:21 CST 2008
On Jan 15, 2008, at 7:12 PM, John W. Eaton wrote:
> On 15-Jan-2008, Ben Abbott wrote:
>
> | Actually, I guess I'd prefer all cases be left to the editor to
> decide
> | what to do.
>
> In that case, you would just always pass the filename (whatever it is,
> presumably after looking for it in the path if it is not an absolute
> file name) and let the editor have its way. Then we wouldn't need to
> worry about FUNCTION.HOME or opening in the current directory, or
> permissions or anything else.
>
> jwe
Something like the sequence below?
(1) Search the path for the explicit file (do not append .m)
(2) If no file, the append the ".m" and search again.
(3) if file exists in the path, append its path to the filename.
(4) Pass the result to the editor.
Ben
More information about the Bug-octave
mailing list