Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12634

Re: Mathematica 9: bug in merging cells

From Rafapa <rafapa@simulux.us.es>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Mathematica 9: bug in merging cells
Date 2012-12-05 08:11 +0000
Message-ID <k9mvk5$bas$1@smc.vnet.net> (permalink)
References <k9kekh$68c$1@smc.vnet.net>
Organization Time-Warner Telecom

Show all headers | View raw


On Tuesday, December 4, 2012 10:09:37 AM UTC+1, Fred Simons wrote:
> When writing a larger program, I usually test the single steps in 
> 
> separate cells, then merge these cells and localize the variables by 
> 
> wrapping the contents of the merged cells in a Module. By doing so in 
> 
> Mathematica 9, due to a bug in merging cells, I lost a lot of code. I 
> 
> reported this bug to WRI two weeks ago. It is not yet repaired in the 
> 
> new release, so I thought I would mention this annoying bug here as well.
> 
> 
> 
> This is an example (Mathematica 9 for Windows, I am not aware if this 
> 
> happens for other systems too).
> 
> 
> 
> Construct two input cells, the first one containing
> 
> 
> 
> a=1;
> 
> (* comment *)
> 
> b=2;
> 
> 
> 
> and the second one
> 
> 
> 
> c=3;
> 
> 
> 
> When merging these two cells the contents ending with the comment is 
> 
> shown in an orange rectangle, with the error message that there is a 
> 
> RowBox with an invalid first argument. I cannot see any reason why this 
> 
> merging of cells could not be undone with ctrl-Z, but it cannot and 
> 
> therefore part of my code was gone.
> 
> 
> 
> In this simple example I could see how to fix it. Toggle ctrl-E for 
> 
> seeing the box structure. Place a } just behind the RowBox with the 
> 
> comment  and a { behind the very first RowBox[, that is followed on the 
> 
> next line with another RowBox.
> 
> 
> 
> During writing this message, I found that the same happens when you try 
> 
> to copy and paste the first cell.
> 
> 
> 
> Fred Simons
> 
> Eindhoven University of Technology

Same problem with Mathematica 9.0.0 under Linux x86 (64 bit). 

Rafael R. Pappalardo
Univ. of Seville (Spain)

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Mathematica 9: bug in merging cells Fred Simons <f.h.simons@tue.nl> - 2012-12-04 09:09 +0000
  Re: Mathematica 9: bug in merging cells David Reiss <dbreiss@gmail.com> - 2012-12-05 08:10 +0000
  Re: Mathematica 9: bug in merging cells Rafapa <rafapa@simulux.us.es> - 2012-12-05 08:11 +0000
    Re: Mathematica 9: bug in merging cells "Rolf.Mertig@gmail.com" <Rolf.Mertig@gmail.com> - 2012-12-06 09:57 +0000
    Re: Mathematica 9: bug in merging cells David Reiss <dbreiss@gmail.com> - 2012-12-06 09:55 +0000
      Re: Mathematica 9: bug in merging cells "Rolf.Mertig@gmail.com" <rolf.mertig@gmail.com> - 2012-12-07 06:36 +0000

csiph-web