Fix block hiding
commitcdb85242d67a45d14f14e54c641549e6d0c5546b
authorNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 1 Aug 2014 08:16:33 +0000 (1 10:16 +0200)
committerNicolas Goaziou <mail@nicolasgoaziou.fr>
Fri, 1 Aug 2014 08:50:36 +0000 (1 10:50 +0200)
tree5d80e8f88a7cd742bab005df9a4b520c28b0c6a4
parent82b64d1c9bcbed06543fe7897798997a1f9413ee
Fix block hiding

* lisp/org.el (org-hide-block-toggle): Correctly find boundaries of
  the block at point.  Fix `off' argument behavior.  Allow to hide
  a block when at any affiliated keyword.

* testing/lisp/test-org.el (test-org/hide-block-toggle): New test.

Thanks to Andrea Rossetti for reporting it.
http://permalink.gmane.org/gmane.emacs.orgmode/89324
lisp/org.el
testing/lisp/test-org.el