jed-users mailing list

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

_jed_find_file_before_hooks


Dear Jedies,

The _jed_find_file_before_hooks are given the filename passed to find_file
only after an expansion. Under Unix this means
 *  a filename ending in "/" is amended with the current buffers filename
 *  a relative filename (i.e. not starting with "/" gets the working-dir
    prepended
 *  a filename containing a "//" is truncated up to the second "/".
 
This complicates a lot two of my find-file-hooks:

 * filelist_find_file_hook opening "filename" in dired/filelist mode if it 
   is a directory 
   -> instead of opening a directory, an empty file in this
   directory is opened when the current buffer is attached to a file.

 * find_uri opening a URI with the help of "uri_hooks"/external commands:
   the argument "http://jedmodes.sf.net"; is changed to "/jedmodes.sf.net"
   when it reaches the find_uri hook
   -> opening URL-s doesnot work currently
   
My request would be a change of policy: 

Filename expansion should occure *after* the _jed_find_file_before_hooks are
tried, hence feeding the hooks in this chain the original argument to
find_file.

Would this break any existing _jed_find_file_before_hooks?

Günter

--------------------------
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]