bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] Calling external editor from APL session


From: Juergen Sauermann
Subject: Re: [Bug-apl] Calling external editor from APL session
Date: Tue, 20 Dec 2016 13:54:16 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

Hi Alexey,

I see. You don't need X, but you need at least something inside which the editor runs.

Almost every editor changes the terminal settings in one way or another. Therefore running an editor in the same window as GNU APL can and will most likely not work and is IMHO also
not desirable.

/// Jürgen


On 12/20/2016 01:32 PM, Alexey Veretennikov wrote:
I meant running without X. But in my case I have X anyway, just didn't
want to create another window.

Juergen Sauermann <address@hidden> writes:

Hi Alexey,

not sure what you mean by 'console mode'?

/// Jürgen

On 12/20/2016 01:13 PM, Alexey Veretennikov wrote:

  Thanks, by launchig via external terminal it works (but it will not work
in console mode :( ).

Juergen Sauermann <address@hidden> writes:

  Hi Alexey,

try e.g.:

)HOST xterm vim

/// Jürgen

On 12/20/2016 10:30 AM, Alexey Veretennikov wrote:

  Hi,

Using )HOST Vim complains "Vim: Warning: Output is not to a terminal"
and not really useful (can't see what I type for instance).
Same if I use popen() via ⎕FIO.

juergen Sauermann <address@hidden> writes:

  Hi Alexey,

it is possible though not very convenient:. You could write
a function doing the following:

1. read EDITOR with ⎕ENV (or use vim right away)
2. call your editor using )HOST or with popen() via ⎕FIO
3. read the file produced by the editor with ⎕FIO
4. ⎕FX the the function text read.

You can optionally bind that function to a user defined command.

Another option could be Blake McBride's editor written in APL,
see http://www.gnu.org/software/apl/Community.html

Or Elias' emacs mode for GNU APL.

/// Jürgen

On 11/26/2016 11:39 PM, Alexey Veretennikov wrote:

  Hi,

Is it possible to call external editor to edit function when using GNU
APL? For example I would like to call Vim when I want to modify the
function.
For example in Dyalog there is an )ed command:
http://help.dyalog.com/15.0/Content/Language/System%20Commands/ed.htm
I'm looking at something like this for GNU APL but just calling whatever
is set in the EDITOR variable.










reply via email to

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