> Does the j602 stype immex also work for lobrow under j805? Yes it does, Bill.
To be precise, if I do… immx_z_=: immxJ6 (see my earlier post) then LoBrow still works to change the locale correctly – plus echoing the y-argument. I'm certain it didn't always work. I'm going back over 2 years now, but I'm certain I wouldn't have gone to the bother of replacing the original (j602) immex if it had worked under jqt. But that was all before jqt got a working JWD. My vague recollection is that immxJ6 did indeed execute the y-argument, but any GUI events that resulted did not appear in the session. Or did not appear immediately. Which (I think) chimes with what you wrote. By the way… JVERSION Engine: j805/j64/darwin Release: commercial/2016-12-11T08:17:56 Library: 8.05.14 Qt IDE: 1.5.3/5.6.2 Platform: Darwin 64 Installer: J805 install InstallPath: /applications/j64-805 Contact: www.jsoftware.com Now that problem appears to be fixed, there's no longer any reason for LoBrow to use immexj (via immxQT) -- with its undesirable dependency on JWD. I was about to add: it would be nice to have the old immex back again in the system code. But I discover it is there in stdlib.ijs already! … runimmx0_j_ 3 : 0 IMMX_j_=: utf8 y 9!:27 '0!:100 IMMX_j_' 9!:29 [ 1 ) runimmx1_j_ 3 : 0 IMMX_j_=: utf8 y 9!:27 '0!:101 IMMX_j_' 9!:29 [ 1 ) So I try… immx_z_ =: runimmx1_j_ and that seems to work just fine with LoBrow too. Thanks for prompting me to re-try it. PS. I was just telling myself -- wouldn't it be nice to write-up all of this in jwiki… when I discovered this page I had written in 2011 and quite forgotten about: http://code.jsoftware.com/wiki/User:Ian_Clark/Immex …Don't grow old! On Tue, May 30, 2017 at 3:59 AM, bill lam <[email protected]> wrote: > Does the j602 stype immex also work for lobrow under j805? > jqt immexj was first introduced for workaround event race > conditions, not intended for cleaning up locale. > > Вт, 30 май 2017, Ian Clark написал(а): > > @Tom, the "simple" fix is not one I like. > > > > The cover verb: immx is a general-purpose utility to schedule the > execution > > of a J-phrase (from within an explicit verb definition) which can only be > > done after the verb has exitted (which restores the current locale to > what > > it was on entry). It is used mainly to change locales, so I prefer an > > explicit record of locale changes to appear in the session, to stop > myself > > going mad. Which means for me that immx (immexj) needs to echo > (=smoutput) > > 'cocurrent ''z''' as well as actually doing it. > > > > The chief technical problem LoBrow must solve is being able to move the > > current session state freely and frequently between locales without > losing > > sight of its own system utilities (notably immx itself). This is to > support > > the feature of being able to put the cursor straight on any j-word inside > > displayed code and press a button to go straight to the definition of the > > said word. And back again with the "<-" button. > > > > My solution (tried-and-tested for J602 and only cursorily upgraded since > > then) was more "cobbled" than "designed". If anyone knows of a better > > solution than the one that infests LoBrow code like a fungus, I'd like to > > know. > > > > There's a case for better system support for "immx"-type functionality, > > compatible across all platforms. Though what form it should take I'm not > at > > all sure. Have a poppable stack of "povs" to augment the present > collection > > of the "co-" verbs which cover (18!:*)? JQt's current way (immexj) is > > wd-based (dependent on JWD being there). I haven't looked (recently) at > how > > JHS or jconsole does it. > > > > Most J-ers will not be conscious of a need for this. LoBrow would mainly > > use it for setting helpful, *reliable* indicators in its UI, not > primarily > > for simply hopping between locales. Which is a specialised use -- in a > > browser aimed at J beginners, not jocks who know where they are in the > > locale structure at any moment of the day, plus the landscape they ought > to > > be seeing. > > > > On Mon, May 29, 2017 at 9:29 PM, Tom Arneson <[email protected]> wrote: > > > > > Ian, I used your simple fix and it seems to work for me. Thanks. > > > > > > -----Original Message----- > > > From: Programming [mailto:[email protected]] On > > > Behalf Of Ian Clark > > > Sent: Monday, May 29, 2017 13:55 > > > To: [email protected] > > > Subject: Re: [Jprogramming] Save/load content of locale > > > > > > @Tom, immx (immex) has a history and is platform-dependent. > > > > > > I've checked my default startup, and I see I'm defining it like this > > > (which is somewhat "heritage")… > > > > > > immxJ6=: 3 : 0 > > > > > > NB. for downward compatibility > > > > > > IMMX_z_=: utf8 y > > > > > > 9!:27 '0!:101 IMMX_z_' > > > > > > 9!:29 [ 1 > > > > > > ) > > > > > > > > > immxQT=: 3 : 0 > > > > > > smoutput ' ',dlb y NB. because immexj doesn't echo (y) > > > > > > empty immexj_z_ y > > > > > > ) > > > > > > > > > 3 : 0'' NB. EXECUTE ON LOADING... > > > > > > if. IFQT do. > > > > > > immx=: immxQT > > > > > > else. > > > > > > immx=: immxJ6 > > > > > > end. > > > > > > i.0 0 > > > > > > ) > > > > > > > > > But the fix could be as simple as: > > > > > > > > > immx_z_ =: immexj > > > > > > > > > where immexj is defined in the script: '~addons/ide/qt/qt.ijs' > > > > > > I've just tried it and it seems to work with LoBrow, but I haven't > > > properly tested it. > > > > > > > > > Needless to say, LoBrow doesn't work with jconsole, because it needs > "wd". > > > > > > > > > Let me know if you find any other missing system utilities. > > > > > > On Mon, May 29, 2017 at 3:27 PM, Tom Arneson <[email protected]> > wrote: > > > > > > > Ian > > > > > > > > I just tried LoBrow, but it doesn't find immx_z_ > > > > > > > > load 'c:/users/tom arneson/skydrive/j64-805-user/ > lowbrow/lobrow.ijs' > > > > |value error: immx_z_ > > > > | immx msg=.'cocurrent ',(q1 LOC),LF > > > > > > > > -----Original Message----- > > > > From: Programming [mailto:[email protected]] > On > > > > Behalf Of Ian Clark > > > > Sent: Monday, May 29, 2017 03:12 > > > > To: [email protected] > > > > Subject: Re: [Jprogramming] Save/load content of locale > > > > > > > > You might also find LoBrow handy. It's not released as an addon but > > > > you can download the script (lobrow.ijs) here: > > > > > > > > http://code.jsoftware.com/wiki/User:Ian_Clark/LoBrow > > > > > > > > I use LoBrow a lot. But it's a personal tool and lacks documentation. > > > > However it's easy to dump a given locale as a J script… > > > > > > > > ++ Select the locale (top left panel), e.g. "z" or "base" > > > > ++ click the bottom-right button: "Script > temp /> ME". > > > > ---The resulting script is: ~temp/10.ijs …sorry, "10" is hard-coded: > > > > to change it you'll need to edit lobrow.ijs itself. > > > > > > > > LoBrow is powerful enough to develop code (LoBow itself is maintained > > > > that way). But heed Chris's warning -- and don't. It's really a tool > > > > for quickly exploring and hacking other people's code. > > > > > > > > > > > > > > > > On Mon, May 29, 2017 at 7:09 AM, John Baker <[email protected]> > wrote: > > > > > > > > > You can also check out the JOD addon. It can save and restore > entire > > > > > locales. Install the joddocument addon and read JOD.PDF for > details. > > > > > > > > > > Cheers > > > > > > > > > > Sent from my iPhone > > > > > > > > > > > On May 28, 2017, at 8:36 PM, Herbert Weissenbaeck // Privat < > > > > > [email protected]> wrote: > > > > > > > > > > > > Thank you, Henry. > > > > > > All clear now. > > > > > > > > > > > >> On 29 May 2017, at 04:26, Henry Rich <[email protected]> > wrote: > > > > > >> > > > > > >> When you execute nl to get a list of names, nl removes x and y > > > > > >> from the > > > > > list, because those names are defined in the nl script itself. If > > > > > you need them you will have to add them by hand. > > > > > >> > > > > > >> Unsolicited opinion: it is Very Bad Form to use the names > > > > > >> x,y,u,v,m,n > > > > > as public names. > > > > > >> > > > > > >> Henry Rich > > > > > >> > > > > > >>> On 5/28/2017 10:19 PM, Herbert Weissenbaeck // Privat wrote: > > > > > >>> Thank you. Is there any specific reason, why symbols called 'x' > > > > > >>> or > > > > 'y' > > > > > are not saved by wssave? > > > > > >>> > > > > > >>> > > > > > >>>> On 28 May 2017, at 15:20, Brian Schott < > [email protected]> > > > > > wrote: > > > > > >>>> > > > > > >>>> Also, > > > > > >>>> > > > > > >>>> http://code.jsoftware.com/wiki/Scripts/File_J_Variables > > > > > >>>> > > > > > >>>>> On Sun, May 28, 2017 at 9:06 AM, chris burke > > > > > >>>>> <[email protected]> > > > > > wrote: > > > > > >>>>> > > > > > >>>>> The system does not come with a built-in function to save a > > > > > >>>>> locale > > > > > to file. > > > > > >>>>> > > > > > >>>>> There is a script to do this at code.jsoftware.com/wiki/ > > > > > Scripts/WS_Files, > > > > > >>>>> and there are utilities to read/write data to file in various > > > > > formats. > > > > > >>>>> > > > > > >>>>> However, scripts are the preferred way, rather than > workspaces. > > > > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > > > >>>>> > > > > > >>>> ------------------------------------------------------------ > > > > > ---------- > > > > > >>>> For information about J forums see http://www.jsoftware.com/ > > > > > forums.htm > > > > > >>> ------------------------------------------------------------ > ---- > > > > > >>> -- > > > > > >>> ---- For information about J forums see > > > > > >>> http://www.jsoftware.com/forums.htm > > > > > >> > > > > > >> > > > > > >> --- > > > > > >> This email has been checked for viruses by AVG. > > > > > >> http://www.avg.com > > > > > >> > > > > > >> ------------------------------------------------------------ > ----- > > > > > >> -- > > > > > >> --- For information about J forums see > > > > > >> http://www.jsoftware.com/forums.htm > > > > > > > > > > > > ------------------------------------------------------------ > ------ > > > > > > -- > > > > > > -- For information about J forums see > > > > > > http://www.jsoftware.com/forums.htm > > > > > ------------------------------------------------------------ > -------- > > > > > -- For information about J forums see > > > > > http://www.jsoftware.com/forums.htm > > > > > > > > > ------------------------------------------------------------ > ---------- > > > > For information about J forums see http://www.jsoftware.com/ > forums.htm > > > > > > > > ------------------------------------------------------------ > ---------- > > > > For information about J forums see http://www.jsoftware.com/ > forums.htm > > > > > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > > ---------------------------------------------------------------------- > > > For information about J forums see http://www.jsoftware.com/forums.htm > > > > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > -- > regards, > ==================================================== > GPG key 1024D/4434BAB3 2008-08-24 > gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3 > gpg --keyserver subkeys.pgp.net --armor --export 4434BAB3 > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
