- Subject: Re: cut & paste and indention
- From: "John E. Davis" <davis>
- Date: Thu, 22 May 2003 16:30:06 -0400
Morten Bo Johansen <mojo@xxxxxxxx> wrote:
>The paste_mode that I have attached should solve it.
I am nolonger using paste_mode. Rather, I use a simple function that
I run before "clicking" the mouse:
define paste ()
{
flush ("Ready for data...");
if (0 == input_pending (300))
{
message ("You have taken too much time");
return;
}
variable as = _test_buffer_flag (2);
ERROR_BLOCK
{
if (as) _set_buffer_flag (2);
}
_unset_buffer_flag (2);
flush ("Pasting in progress...");
while (input_pending (10))
{
variable ch = getkey ();
if (ch == '\r')
{
ch = '\n';
}
insert_char (ch);
update (0);
}
EXECUTE_ERROR_BLOCK;
message ("Done");
}
--------------------------
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]