List Info

Thread: /bind bug




/bind bug
user name
2007-08-24 07:09:01
I think i found a bug, but i am not one hundred percent sure
i'm not
doing something retarded so i wanted to email this list
first, if it
is indeed a bug i'll switch to the -dev list (or not
depending on
where this stuff normally goes =) )

basically i am wondering why the following doesn't work
/bind ^M previous_window
/save
/reload

the funny part about the above is that ^M is written to my
config and
survives the /save and /reload so it is still shown if i do
/bind ^M

and why after this ^P still works.
/bind -delete ^P
/save
/reload
this dosn't surprise me much as maybe unless ^P is bound to
something
it is rebound automatically on a /reload so i am not sure if
thats the
case or not but the above with ^M is what really makes me
think there
is a bug somewhere.  i am running the latest irssi.

i am also on the list so no CC is needed.  Thanks!


Re: /bind bug
country flaguser name
Belgium
2007-08-24 15:24:24
On Friday 24 August 2007 14:09, The Unforgiven wrote:
> basically i am wondering why the following doesn't
work
> /bind ^M previous_window
> /save
> /reload

I think you cannot rebind ^M because it is the same as
enter. It's probably 
converted to enter even before binds are checked (haven't
actually checked 
it, but that's my guess). So if you would be able to rebind
^M, your enter 
key probably wouldn't work anymore ;)

If you want to see "proof" it's the same, you can
for example do (on one line)
/script exec -permanent use Data:umper;
Irssi::signal_add("gui key pressed", 
sub { print $_[0]; } );
That'll print the key codes of all keys you press. And here
both enter, and ^M 
just print "10".

> and why after this ^P still works.
> /bind -delete ^P
> /save
> /reload

That's a different thing. ^P is a default binding, and you
cannot remove a 
default binding just by doing /bind -delete (you could argue
it should work, 
but well, it doesn't). If you really want to remove a
binding, as /help bind 
says, you can do "/bind ^P nothing"

Wouter.


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )