- Subject: Re: Jed command line filename logicals [VMS]
- From: "G. Milde" <g.milde@xxxxxx>
- Date: Thu, 23 Mar 2006 10:27:45 +0100
On 21.03.06, Terrence Branscombe wrote:
> Hi,
>
> Jed v0.99.17.135 with SLang 2.0.5 on VMS 7.3-2
>
> Just curious if JED on VMS can be configured to check filenames passed
> to it on the command line to see if they are logicals, then translate
> the logical to the actual filename.
Jed can be configured with a lot of hooks (see Help>Browse_Docs hooks).
I have no clue about the internals of VMS, so I cannot give detailled help.
However, making Jed aware of non-file URIs seems to be a somewhat similar
problem, so the documentation inside uri.sl
(http://jedmodes.sf.net/mode/uri/) could contain some clues:
% * if you want find_file and related functions to be URI-aware
% (e.g. to be able to start jed with 'jed locate:foo.sl')
% autoload("find_uri_hook", "uri");
% autoload("write_uri_hook", "uri");
% add_to_hook("_jed_write_region_hooks", &write_uri_hook);
% add_to_hook("_jed_find_file_before_hooks", &find_uri_hook);
% or (to check other write|find-file-hooks first)
% append_to_hook("_jed_write_region_hooks", &write_uri_hook);
% append_to_hook("_jed_find_file_before_hooks", &find_uri_hook);
%
% Problem: Currently, a relative filename is expanded before passing
% it to the _jed_find_file_before_hooks, with the sideeffect of
% "http://host.domain" becoming "/host.domain"
% -> find_file doesnot work for URIs with a double slash
%
% If you want to be able to start jed with e.g.
% jed http://jedmodes.sf.net/mode/uri/
% you can copy the 194 lines of the command_line_hook from site.sl
% to your .jedrc and modify the 6.-last line from
% () = find_file (next_file_arg);
% to
% () = find_uri (next_file_arg);
%
% CAUTION: hooks.txt says that this hook should not be customized by
% the user.
Guenter
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]