bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] Can't break out of the middle on a display operation


From: Juergen Sauermann
Subject: Re: [Bug-apl] Can't break out of the middle on a display operation
Date: Mon, 04 Aug 2014 19:50:34 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Elias,

I have changed the max. interval from 500ms to 1 second. SVN 415.

I believe changing to single ^C via configuration would be more confusing
than helpful because the behavior under emacs (i.e. INTERRUPT = ATTENTION) would deviate
from the behavior outside emacs (INTERRUPT ≠ ATTENTION).

/// Jürgen


On 08/03/2014 03:48 PM, Elias Mårtenson wrote:

Control-C is a general prefix character in Emacs. In other words, you press C-c followed by another keypress to execute a given function. C-c C-c (i.e.  Control-C twice) is defined to send a single control-c to an underlying process (it's part of the framework that manages external programs, of which apl is one).

Of course, nothing prevents me from adding other keypresses that are mapped to, say, sending a double C-c to the underlying process, but it wouldn't really mesh very well with how embedded programs usually works.

That said, it's possible to send four C-c's in half a second. All I have to do is to hold C-c for a while and let the operating system's key repeat do its job. So, in a worst case scenario I just won't change anything at all. ☺

On 3 Aug 2014 21:19, "Juergen Sauermann" <address@hidden> wrote:
Hi Elias,

mapping two ^C to one is maybe not so good an idea.

IBM APL2 distinguishes between interrupt and attention and they have
different keys for that. interrupt interrupts execution immediately while
attention interrupts execution at the end of the statement.

Currently GNU APL is behaving slightly differently, but the plan is to align that long term.

Instead of two keys for interrupt and attention I found it more convenient to have single ^C for attention
and double ^C for interrupt.

This is also why two ^C are needed to abort the display of results.

If you eat single ^C in emacs then this would prevent attention from being signaled.
I would propose instead that every ^C is simply passed on to GNU APL.

/// Jürgen


On 08/02/2014 06:29 PM, Elias Mårtenson wrote:
Do you think there is a way to configure that? Perhaps disable the double-thing when in Emacs mode? The reason is that in Emacs mode you already have to press C-c twice to send a sinvlde C-c to the underlying process. That means that in order to interrupt right now I need to press it 4 times within 500 ms, which is very difficult.

Regards,
Elias


On 3 August 2014 00:27, Juergen Sauermann <address@hidden> wrote:
Hi Blake,

good. The double ^C is on purpose to avoid accidentally hitting ^C.

Its actually two ^C within 500 ms.

/// Jürgen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]