jed-users mailing list

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

Re: Features for Jed 0.99.17


John E. Davis wrote:
> Paul Boekholt <p.boekholt@xxxxxxxxx> wrote:
> >As it is now, the standard recent should not be enabled anyway because
> >for some reason it saves the recent-file with every buffer switch. 
> 
> I believe that the idea behind this is that if you have two files
> loaded, say 1.txt and 2.txt, and then you switch from 1.txt to 2.txt,
> 2.txt should be regared as the most "recent" file.  Perhaps the "save"
> should only take place only if the buffer has been modified.  

Maybe it is a sideeffect that came with the change from
  %add_to_hook ("_jed_find_file_after_hooks", &append_recent_files);
to
  append_to_hook ("_jed_switch_active_buffer_hooks", &append_recent_files);
.

I don't know why this change occured, possibly because the
_jed_find_file_after_hooks are not called, if one of the
_jed_find_file_before_hooks succeeded. 

-> Feature wish: a function call_hooks(String hook_chain) that can be
used to execute the functions in a hook chain (say
_jed_find_file_after_hooks) from SLang (e.g. in a my_find_file_hook(path)).


Of course I think my recent version (jedmodes.sf.net/mode/recent/) is the
best one available (not necessarily the best one possible).

It changes its idea about "recent"
  1. if a file is loaded or
  2. if a buffer is saved,
I think this is the way it works in most other applications too...

Besides this, currently it saves the recent-files-file only when quitting.
This has the advantage of less saving operations at the cost of missing
cooperation when more than one jed is open at the same time.

Klaus Schmidt introduced the idea of save-action levels. 
I think I should provide something like a common variable saving_level
  0  save .jedrc only at exit
  1  save .jedrc with every load/save action (if changed)

> Or,
> would having entries for "recently edited" and "recently viewed" be
> useful.

Keeping track of buffer changes is IMHO a different task (which doesnot
need to be shared between different jed-invocations). It is implemented in 
a style similar to a web-browsers forward/back buttons
(Alt-Right/Alt-Left) in jedmodes.sf.net/navigate/.

Günter

-- 
G.Milde at web.de

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