Tiny refactoring

* lisp/org.el (org-hide-block-toggle-maybe): Tiny refactoring.
This commit is contained in:
Nicolas Goaziou 2014-09-16 09:30:29 +02:00
parent c8a7e474ec
commit b2fca73e30
1 changed files with 1 additions and 1 deletions

View File

@ -7326,7 +7326,7 @@ Optional arguments START and END can be used to limit the range."
Unlike to `org-hide-block-toggle', this function does not throw
an error. Return a non-nil value when toggling is successful."
(interactive)
(and (ignore-errors (org-hide-block-toggle)) t))
(ignore-errors (org-hide-block-toggle)))
(defun org-hide-block-toggle (&optional force)
"Toggle the visibility of the current block.