jed-users mailing list

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

Re: save/load macros?


On Mon 2007-08-13 (01:06), Ulli Horlacher wrote:
> How can I do a setkey in all keymaps?

My solution is now:

    define F11() {
      variable km,k,i;
      variable m = line_as_string;
      % call("delete_window");
      k = what_keymap();
      km = get_keymaps();
      for (i=0;i<length(km);i++) {
        use_keymap(km[i]);
        local_setkey(m,"\e[23~");
      }
      use_keymap(k);
    }


Is there a more elegant way, a better solution?

-- 
Ullrich Horlacher              Informationssysteme und Serverbetrieb
Rechenzentrum                  E-Mail: horlacher@xxxxxxxxxxxxxxxxxxxx
Universitaet Stuttgart         Tel:    ++49-711-685-65868
Allmandring 30                 Fax:    ++49-711-682357
70550 Stuttgart (Germany)      WWW:    http://www.rus.uni-stuttgart.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>.


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