The documentation for the variableĀ org-startup-folded is not up to date. It states that the variable can be nil or non-nil, but the program logic makes a difference between the values 't, 'content, 'showeverything, 'show2levels, 'show3levels, 'show4levels, and 'show5levels.