jed-users mailing list

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

Re: Few more requests


Joerg Sommer <joerg@xxxxxxxxxxxx> wrote:
>define make_backup_filename(file)
>{
>   (file,) = strreplace(file, "/", "_", strlen(file));
>   return "~/.jed/backups/"+file;
>}

You will need to add a call to expand_filename if you want the ~ to be
expanded to the home directory.  That is, use

   return expand_filename (path_concat ("~/.jed/backups", file));

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


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