jed-users mailing list

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

Re: cut & paste and indention


On Thu, May 22, 2003 at 04:30:06PM -0400, John E. Davis wrote:
 
> I am nolonger using paste_mode.  Rather, I use a simple function that
> I run before "clicking" the mouse:
...

However, this still requires to call a function before inserting with the
mouse.

If you don't use jed over a slow terminal link and don't use keyboard
macros, the following definition might be an alternative, as it
autodetects inserted text:

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

John, who corrected my first draft wrote the following warning, though:

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


Günter

-- 
Milde at ife.et.tu-dresden.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>.


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