Hello

When using
  #+STARTUP: hideblocks overview
blocks are not hidden.  With
  #+STARTUP: hideblocks nofold
they are.

You can test with

  #+STARTUP: overview
  ###+STARTUP: nofold
  #+STARTUP: hideblocks
  * title
  #+begin_src emacs-lisp
    code
  #+end_src

I've tracked this down to the use of
  (move-beginning-of-line 1)
in org-at-block-p.  Replacing that with
  (goto-char (pos-bol))
fixes the issue.

Debug statements revealed that
  (move-beginning-of-line 1)
moves from the beginning of the block to the preceding line so that
  (looking-at org-block-regexp)
no longer succeeds.

You might want to look into other uses of move-beginning-of-line.

     Cheers,
     Jonas

Reply via email to