<<< Date Index >>>     <<< Thread Index >>>

Strange problem with macros



Hi all.

I'm having troubles with a specific macro. After lots of testing, I
thing it's kind of escaping problem inside the macro.

I want to bind <return> key to a function, but it seems not to work if I
do the 'bind' inside a macro. In example:

  macro index B "<enter-command>bind index <Down> next-undeleted<enter>"

gives "too many parameters" when pressing "B" in index.

However, if I use:
  macro index B "<enter-command> bind index x next-undeleted<enter>"
it works perfectly.

Moreover, if i use 'static binding', in example:
  bind index <down> next-undeleted
it also work great.

Resuming, it seems to be a matter of using <down> (or <return> or 
<left> ...) inside a macro statement. 

Is there any need of 'escaping' this kind of keycodes?? how?? am I missing
something??

I've also tried to use octal key codes like \232 for <right> or \233 for
<left>, but without success :-(

Any ideas?

Thanks in advance.
-- 
___________________________________________________________________
Iván Forcada Atienza:
  correo: ivan@xxxxxxxxxxxx
-------------------------------------------------------------------
"Software is like sex: it's better when it's free" (Linus Torvalds)
  

Attachment: pgpa8f8tmv5a2.pgp
Description: PGP signature