2
$\begingroup$

Bug introduced in 9.0 and fixed in 9.0.1


This is a more of a problem report than a question. When merging the two cells Cell1:

foo
(*foobar*)
bar

and Cell2:

foobar

the line immediately before the comment together with the comment line embark on a journey into another universe, leaving nothing behind than a vicious red box and the farewell greeting

"A RowBox with an invalid first argument was encountered. The first argument to RowBox must be a list."

Mathematica 9

$\endgroup$
13
  • 1
    $\begingroup$ upgrade to 9.0.1 $\endgroup$ Mar 8, 2013 at 13:46
  • 1
    $\begingroup$ Can confirm there is no problem with this on OS X with V9.0.1 $\endgroup$
    – m_goldberg
    Mar 8, 2013 at 14:08
  • 1
    $\begingroup$ I confirm this behavior on PC WinXP Math 9.0.1.0. The same behavior has been recently reported at the MathGroup site forums.wolfram.com/mathgroup $\endgroup$ Mar 8, 2013 at 14:38
  • 1
    $\begingroup$ @Mr.Wizard yes. Button["Fix9", (NotebookWrite[#1, NotebookRead[#1] //. HoldPattern[RowBox[a_, b__]] :> RowBox[{a, b}]] & ) /@ Cells[CellStyle -> "Input"]] is the simplest fix. Or Import["http://www.mertig.com/mykeys.m"] as mentioned in this thread $\endgroup$ Mar 8, 2013 at 23:48
  • 1
    $\begingroup$ @Szabolcs yes, you are right, I meant that report. And you are right, it does not appear any more. I simply did not use Merge Cells command after having lost information with it once. $\endgroup$ Mar 11, 2013 at 8:11

0

Browse other questions tagged or ask your own question.