I was trying to use org-babel-execute-buffer to update all org-babel code block results for a org document. It works fine when the code block is visible, but when it's hidden, I got the "user-error: No surrounding element" error and nothing was executed. Adding `(outline-show-all)` fixed this issue for me. Does this look like a good solution? -- Wei