10

Why

NotebookWrite[
  EvaluationNotebook[], 
  Cell["ZZ", "Section", WholeCellGroupOpener -> True]
]

produces:

Cell["ZZ", "Section", $CellContext`WholeCellGroupOpener -> True]

While using e.g Background -> RGBColor[1, .85, .85] works fine?

Pointed by M.R. in How to sort cells?

Kuba
  • 136,707
  • 13
  • 279
  • 740
  • 2
    Check Options[Cell] and try your example with all options that live in the context Gobal not System. As far as I can see, all options that are not in System will get $CellContext. – halirutan Jun 17 '15 at 01:27
  • @halirutan yep, that's what I've suspected. Unfortunately those options are not documented so I already know what WRI support will say to me... – Kuba Jun 17 '15 at 06:43
  • 1
    You could fake it: NotebookWrite[EvaluationNotebook[], Cell["ZZ", "Section", System`WholeCellGroupOpener -> True]] – Rolf Mertig Jul 22 '15 at 20:31

0 Answers0