- Subject: Re: Two new modes at jedmodes
- From: Joachim Schmitz <js@xxxxxxxxxxxxx>
- Date: Mon, 04 Nov 2002 20:41:06 +0100
Hi,
I just tried to use recent.sl with jed-0.99-16. I put recent.sl and
circle.sl
from http://jedmodes.sourceforge.net/ to my jed/lib
in my .jedrc
variable RECENT_FILES_LIST = ".jedrecent"; % or other
variable MAX_RECENT_FILES = 20; % ditto
variable MAX_HISTORY_ENTRIES = 15;
Restore_Last_Session = 1;
% Load recent.sl (assuming it is in the JED_LIBRARY path)
require("recent");
when starting xjed I got
S-Lang Error: undefined Name: Restore_Last_Session is undefined
I changed
Restore_Last_Session = 1; to
variable Restore_Last_Session = 1;
now I get:
S-Lang Error: Invalid Parameter: Array index 0 ([-2:-2]) out of allowed
range [0->]
I didn't try it with jed-B0.99-15
--On Freitag, August 02, 2002 10:36:42 +0200 Guenter Milde
<G.Milde@xxxxxxxxxxxxxxxxxxxx> wrote:
Dear Jedies,
I just uploaded two modes to the JMR (http://jedmodes.sourceforge.net/)
recent 2.0 (this is based on Guidos nice recent files mode)
% Provide easy access to recently opened/saved files.
%
% Version: 1.0.1. by Guido Gonzato, <ggonza@xxxxxx>
%
% 2.0 by Guenter Milde <g.milde@xxxxxx>
% * Use a circular array -> no hidden recent buffer
% * Rearrange entries to have last opened/saved first
% * Save to file only at exit -> less writing
% * Save last cursor position
% * Support for "restore last session"
%
navigate.sl
% "history feature" (recent visited buffer) known from many browsers.
%
% Store info about the last visited buffer with any buffer switch.
% Navigate between the recently visited buffers with Alt+Arrow.
This is triggered by Dinos walk.sl mode. The main difference is, that the
switch_active_buffer_hook is used, so there is no need for any mode using
it to do anything -> the user decides to use it by loading navigate.sl.
It is not called history.sl due to a naming clash on jmr.
TODO: Restore automatically created buffers (help, char_table, dired, ...)
Make the restoration configurable:
- restore closed buffers without asking (current behaviour)
- ask, whether a closed buffer should be reopened
(sensible, when you want walk back several steps - do you
really want to open all buffers on the way?)
- close restored buffers again, when just stepping over
(no need for additional interaction but a slight overhead).
-> What would you like to be the default? Should these two be
independent or just three choices of on custom variable?
Try them out, enjoy (hopefully) and tell me what you think...
Günter
--
G.Milde at physik.tu-dresden.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>.
Mit freundlichen Grüßen Joachim Schmitz
--------------------------------------------------------------------
AixtraWare Ingenieurbüro für Internetanwendungen
Hüsgenstr. 33a, D-52457 Aldenhoven
Telefon: +49-2464-8851, FAX: +49-2464-905163
--------------------------------------------------------------------
Key fingerprint = DA10 CC82 62F8 1DBB 39A1 1EDC 725B 3317 A8D7 C3A6
Keyserver: http://www.keyserver.net/en/
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2002 date index]
[2002 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]