- Subject: Re: cut & paste and indention
- From: Günter Milde <milde@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 27 May 2003 09:41:18 +0200
On Mon, May 26, 2003 at 08:29:08PM +0200, Boris Folgmann wrote:
> Günter Milde schrieb:
...
> > 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:
>
> You mean by the speed the text is received by jed?
Exactly, as otherwise jed cannot tell where the input it receives comes
from (this is also the core of the problem, that you cannot easily use the
ESC-key as Abort-key -- too many key sequences start with "\e").
Therefore this will not work on a slow terminal or in a key-macro (however,
the effect will be not devastating: the new line will not be indented)
> > ...
> Ok, I added it to my .jedrc, but it has no effect. It's a new function,
> isn't it? Shouldn't somebody call it somewhere?
Sorry, I did not mention you have to bind it to the Enter key. The complete
recipe would be:
#ifndef XWINDOWS
define newline_indent ()
{
if (input_pending(0))
newline();
else
call ("newline_and_indent");
}
setkey("newline_indent", "^M");
#endif
(Works for me)
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]