[Bug-apl] Undetected syntax error?

2014-04-26 Thread David B. Lamkins
A newline terminates a string constant. Shouldn't that be a syntax error?

[Bug-apl] ]keyb should function dynamically

2014-04-26 Thread Blake McBride
]keyb prints out a diagram of an APL keyboard. Very helpful. The problem is it appears to be static. It doesn't reflect the actual keyboard mapping you are using. I kind of doubt APL could figure this out dynamically, but I wonder if there isn't a better solution. Blake

Re: [Bug-apl] Need xkb U code for two APL characters

2014-04-26 Thread Blake McBride
Thanks. That worked too! (Dyalog calls it a squad) On Sat, Apr 26, 2014 at 10:25 PM, Chris Jones wrote: > On Sat, Apr 26, 2014 at 11:09:12PM EDT, Blake McBride wrote: > > Thanks. That worked. Now all I need is squad. > > There is no such thing in Unicode. > > There is a SQUISH QUAD tho: > >

Re: [Bug-apl] Need xkb U code for two APL characters

2014-04-26 Thread Chris Jones
On Sat, Apr 26, 2014 at 11:09:12PM EDT, Blake McBride wrote: > Thanks. That worked. Now all I need is squad. There is no such thing in Unicode. There is a SQUISH QUAD tho: U+2337 ⌷ APL FUNCTIONAL SYMBOL SQUISH QUAD CJ

Re: [Bug-apl] Need xkb U code for two APL characters

2014-04-26 Thread Blake McBride
Thanks. That worked. Now all I need is squad. On Sat, Apr 26, 2014 at 9:51 PM, Chris Jones wrote: > On Sat, Apr 26, 2014 at 09:40:19PM EDT, Blake McBride wrote: > > > the three dots that form an upside down triangle (⎕AV[211]) > > U+2235 ∵ BECAUSE > > CJ > > >

Re: [Bug-apl] Need xkb U code for two APL characters

2014-04-26 Thread Chris Jones
On Sat, Apr 26, 2014 at 09:40:19PM EDT, Blake McBride wrote: > the three dots that form an upside down triangle (⎕AV[211]) U+2235 ∵ BECAUSE CJ

[Bug-apl] Segmentation fault

2014-04-26 Thread Blake McBride
I hit some bad keys on the keyboard while attempting to get rid of a SI and ended up with a segmentation fault. Here is what happened: Note: WS test was not saved with a SI. It has a ⎕LX that causes a function named auto to execute. auto, in turn, attempted to call a function named start that

Re: [Bug-apl] Need xkb U code for two APL characters

2014-04-26 Thread Blake McBride
Incidentally, the existing xkb keyboard mapping for squad seem to be wrong. On Sat, Apr 26, 2014 at 8:40 PM, Blake McBride wrote: > Greetings, > > I am on the tail end of producing a complete xkb mapping for the Unicomp > APL keyboard. Right now, I am only having a problem with two obscure >

[Bug-apl] Need xkb U code for two APL characters

2014-04-26 Thread Blake McBride
Greetings, I am on the tail end of producing a complete xkb mapping for the Unicomp APL keyboard. Right now, I am only having a problem with two obscure characters. If I get these, the mapping will be perfect. I haven't figured out the xkb U code (like U235E is ⍞) for the following two characte

[Bug-apl] quad-NC behavior

2014-04-26 Thread David B. Lamkins
quad-NC should return 5 for system variables and 6 for system functions (Ref: ISO 13751, pg. 175). In GNU APL, quad-NC returns negative 1 for these cases.

Re: [Bug-apl] Line Editor bug?

2014-04-26 Thread enztec
Hi Jürgen, What is the  character below? after the /the cursor? I'm a bit confused - please straighten me out on this if you could what are you using so that a cursor can be on a line and have the ability to edit the line? --- from my memory (or imagination now ...) i thought [⎕2

[Bug-apl] Package manager proposal and design sketch

2014-04-26 Thread David B. Lamkins
See https://github.com/TieDyedDevil/apl-pkg . This repo has most of the documentation as comments in the code. Read both .apl files. See additional notes in the README. There's one very important thing to note: This is not yet a functional package manager. The primary roadblock is that GNU APL do

Re: [Bug-apl] Line Editor bug?

2014-04-26 Thread Juergen Sauermann
Hi, I changed it to what the example in the IBM language reference manual seems to suggest (there are other places suggesting different things): " Prompting for an additional line following the display of line 2: ∇ENTER[⎕2] [2] TAB←TAB,(I>ρTAB)/,NAME [3] " Starting editing in the middle of

Re: [Bug-apl] )host to take string

2014-04-26 Thread enztec
thanks for replying - boy what a busy apl day On Sat, 26 Apr 2014 16:45:09 +0200 Juergen Sauermann wrote: > Hi, > > actually it should not. )HOST is a command so its arguments > are not computed (in GNU APL, but probably also others). > > Thus 'workspaces/',a is passed verbatim to popen(). >

Re: [Bug-apl] Line Editor bug?

2014-04-26 Thread enztec
On Sat, 26 Apr 2014 15:15:03 +0200 Juergen Sauermann wrote: > Hi Peter, > > thanks, I have changed the ?-editor. > > My interpretation of eg [2?10] is "display lines 2-10 and edit line > 10 (or 10.1 or 11 if 10 or 10 and 11 alreadyexists). See SVN 224. > what is the behavior you changed it to

Re: [Bug-apl] Return value of fgets ignored in lib_file_io. (Was: Re: is there a )copy ⎕fns like ⎕ex is )erase)

2014-04-26 Thread Elias Mårtenson
I created that channel. And I'm idling in there. :-) Regards, Elias On 26 April 2014 22:41, wrote: > > Fantastic/wow - you found the bug that fast? What a bunch of great > programmers we have behind this grand apl. The whole project has become > quite amazing. > > If there is anything I can e

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-26 Thread Kacper Gutowski
On 2014-04-26 21:15:43, Elias Mårtenson wrote: > On 26 April 2014 20:52, Kacper Gutowski wrote: >> ∇mean[0] >>   R←mean B >>   R←(+/B)÷⍴B >> ∇ >> >> This can be )COPY-ied many times without any problems as it enters the >> editor with a name only and then explicitly rewrites header line at [0]. >

[Bug-apl] GNU APL in Emacs video

2014-04-26 Thread Elias Mårtenson
I will make a more fully-featured video (with voiceover) but this is my first attempt. At least it shows how the function editor works. http://www.youtube.com/watch?v=FXPrMNraSKA Regards, Elias

Re: [Bug-apl] )host to take string

2014-04-26 Thread Juergen Sauermann
Hi, actually it should not. )HOST is a command so its arguments are not computed (in GNU APL, but probably also others). Thus 'workspaces/',a is passed verbatim to popen(). /// Jürgen On 04/25/2014 11:10 PM, enz...@gmx.com wrote: presently )host takes direct code )host vi workspaces/

Re: [Bug-apl] Return value of fgets ignored in lib_file_io. (Was: Re: is there a )copy ⎕fns like ⎕ex is )erase)

2014-04-26 Thread enztec
Fantastic/wow - you found the bug that fast? What a bunch of great programmers we have behind this grand apl. The whole project has become quite amazing. If there is anything I can ever help you debug let me know ... I am great at ⍳100 ;) btw - There is an #apl channel on freenode that has a

Re: [Bug-apl] emacs and apl

2014-04-26 Thread Juergen Sauermann
Hi, yes, ]XTERM ON/OFF (which is now called ]COLOR ON/OFF because it now also works for non-xterms/non-VT100 terminals) is an APL (debug-) command that is only available in immediate execution mode. The reason is that commands do not follow the normal APL syntax and return no results. I thin

Re: [Bug-apl] Return value of fgets ignored in lib_file_io. (Was: Re: is there a )copy ⎕fns like ⎕ex is )erase)

2014-04-26 Thread Juergen Sauermann
Hi Kacper, very good explanation, thanks. Fixed in SVN 226. /// Jürgen On 04/26/2014 03:43 PM, Kacper Gutowski wrote: On 2014-04-26 07:13:21, enz...@gmx.com wrote: btw if you can take a look at the FILE_IO code in http://lists.gnu.org/archive/html/bug-apl/2014-04/msg00269.html and give me a

Re: [Bug-apl] Test build re SVN 221

2014-04-26 Thread Juergen Sauermann
Hi Peter, great! I believe we can't do much about the remaining -rdynamic because your compiler apparently pretends to be g++ but then warns about a valid g++ argument being (un-)used. /// Jürgen On 04/24/2014 02:35 PM, Peter Teeson wrote: /bin/sh ../../libtool --tag=CXX --mode=compile g++

[Bug-apl] Return value of fgets ignored in lib_file_io. (Was: Re: is there a )copy ⎕fns like ⎕ex is )erase)

2014-04-26 Thread Kacper Gutowski
On 2014-04-26 07:13:21, enz...@gmx.com wrote: > btw if you can take a look at the FILE_IO code in > http://lists.gnu.org/archive/html/bug-apl/2014-04/msg00269.html > and give me an idea why the difference between c popen and apl popen - null > vs no '10' at end of data still returned - i'd apprec

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-26 Thread Juergen Sauermann
Hi, I have changed the ∇-editor so that it clears the function when run from a script (like )COPY does). Still a bit experimental so please let me know where it fails. SVN 224. I guess Elias can tell you that interfacing to an arbitrary editor (like in )EDITOR) is not entirely trivial and als

Re: [Bug-apl] Line Editor bug?

2014-04-26 Thread Juergen Sauermann
Hi Peter, thanks, I have changed the ?-editor. My interpretation of eg [2?10] is "display lines 2-10 and edit line 10 (or 10.1 or 11 if 10 or 10 and 11 alreadyexists). See SVN 224. /// Jürgen On 04/25/2014 04:01 PM, Peter Teeson wrote: As of svn 221 I expected the editor to allow editing of

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-26 Thread Elias Mårtenson
On 26 April 2014 20:52, Kacper Gutowski wrote: > On 2014-04-26 12:08:14, Juergen Sauermann wrote: > > I could make the ∇-editor aware that a )COPY is in progress and that > > functions shall be deleted automatically by the ∇-editor. > > I like a lot that there is now a command that sources anothe

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-26 Thread enztec
On Sat, 26 Apr 2014 14:52:49 +0200 Kacper Gutowski wrote: > On 2014-04-26 12:08:14, Juergen Sauermann wrote: > > I could make the ∇-editor aware that a )COPY is in progress and that > > functions shall be deleted automatically by the ∇-editor. > > I like a lot that there is now a command that so

Re: [Bug-apl] Compose table for GNU/APL

2014-04-26 Thread enztec
Hi Chris Use xmodmap ./support-files/apl.xmodmap on your debian install and the ⎕ key is there alt l → ⎕ the apl-xmodmap works on debian without any modification and if you do want some modification like only AltGr look at my recent post http://lists.gnu.org/archive/html/bug-apl/2014-04/

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-26 Thread Kacper Gutowski
On 2014-04-26 12:08:14, Juergen Sauermann wrote: > I could make the ∇-editor aware that a )COPY is in progress and that > functions shall be deleted automatically by the ∇-editor. I like a lot that there is now a command that sources another file raw, much like "." in shell or "#include" in cpp.

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-26 Thread enztec
Hi Jürgen )copy ws fns with ws created from )save → ws.xml file overwrites the fns which i think is the correct behavior )copy fnswith fns a text file created with !# on first line - (variant of )dump file) overwrites variables but opens the ∇ editor for and appends

Re: [Bug-apl] emacs and apl

2014-04-26 Thread enztec
On Sat, 26 Apr 2014 12:34:06 +0200 Juergen Sauermann wrote: > Hi, > > correct. Since saving an entire workspace is usually fast (unless it > contains huge amounts of data) > that should be ok. Think of a workspace as an analog of a C/C++ source > file where you typically > have several related

Re: [Bug-apl] emacs and apl

2014-04-26 Thread Juergen Sauermann
Hi, correct. Since saving an entire workspace is usually fast (unless it contains huge amounts of data) that should be ok. Think of a workspace as an analog of a C/C++ source file where you typically have several related functions and you edit the entire file when you change a function. So )DU

Re: [Bug-apl] is there a )copy ⎕fns like ⎕ex is )erase

2014-04-26 Thread Juergen Sauermann
Hi, the )COPY of text files is pretty new, so we have not much experience with it yet. I could make the ∇-editor aware that a )COPY is in progress and that functions shall be deleted automatically by the ∇-editor. /// Jürgen On 04/26/2014 03:08 AM, enz...@gmx.com wrote: I delete the emai

Re: [Bug-apl] Compose table for GNU/APL

2014-04-26 Thread Chris Jones
On Sat, Apr 26, 2014 at 02:36:41AM EDT, Elias Mårtenson wrote: Thanks much, Elias. Exactly what I was looking for. CJ