jed-users mailing list

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

Re: indenting problem


Günter Milde <milde@xxxxxxxxxxxxxxxxxxxx> wrote:
>define (newline_indent)
>{
>  if (input_pending(0))
>     newline();
>  else
>     newline_and_indent();   
>}

I changed this to:

define newline_indent ()
{
  if (input_pending(0))
     newline();
  else
     call ("newline_and_indent");
}

However, the big problem is that when run as part of a keyboard-macro,
input_pending will always return non-zero if Ctrl-M is followed by
more characters in the macro.

For this reason, I think that the "paste" function I posted earlier is
the best solution.

Thanks,
--John

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