Members of the forum -

while I am think that the intersection of emacs and J users contains only
two members, maybe there are others or someone else who has insight into
puzzling behavior I've noticed: when I recall a previously entered J line
containing something like "6!:2", it gets garbled.  Experimenting has shown
me that a line like "6!!2" also gets garbled but not "6!.2" or "6 !: 2".

Following are some examples of what I'm seeing - any ideas?

Thanks,

Devon

-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail

+--------------------------------------------------------------------+

NB. Run (yanked) multi-line block of code beginning:
   load '~User/code/matplay.ijs'
   load '~User/code/tryabunch.ijs'
NB. ...

NB. Now type this in:
   6!:2 'wait 0'
0.0033186173
NB. Now use "Ctl-c Ctl-y" to recall previously entered line:
   6load 'wait 0'
|ill-formed number

NB. Line recalled incorrectly - incorporates start of previously run
NB. block of code.

NB. From my .emacs file:
NB. (define-key global-map "\C-c\C-y" 'comint-previous-input)

NB. Type this in again:
   6!:2 'wait 0'
3.0027335e_5
NB. Use "Ctl-c Ctl-y" again to recall previously entered line:
   6 'wait 0'
|syntax error
|       6'wait 0'

NB. Line again recalled incorrectly, though differently from before.

NB. This, however, with added spaces, works OK:
NB. Original:
   6 !: 2 'wait 0'
0.0010520688
NB. Recalled:
   6 !: 2 'wait 0'
3.0799254e_5

NB. And this messes up:
NB. Original:
   6!!2
0
NB. Recalled:
   62
62
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to