Permalink
Browse files

Fix compatibility with org-mode >= 7.9.3

In org-mode 7.9.3 the optional argument 'HIDDEN' has been removed from
org-export-as-html. The function now takes 4 optional args instead of 5.
  • Loading branch information...
1 parent a8d51c7 commit 200e09da6d80388fc3627db146845f95230a5b2c @ptrv ptrv committed Jan 15, 2013
Showing with 7 additions and 1 deletion.
  1. +7 −1 org2blog.el
View
@@ -733,7 +733,13 @@ from currently logged in."
;; Get the exported html
(save-excursion
(if (not narrow-p)
- (setq html-text (org-export-as-html nil nil nil 'string t nil))
+ (setq html-text
+ ;;Starting with org-mode 7.9.3, org-export-as-html
+ ;;takes 4 optional args instead of 5.
+ (condition-case nil
+ (org-export-as-html nil nil nil 'string t nil)
+ (wrong-number-of-arguments
+ (org-export-as-html nil nil 'string t nil))))
(setq html-text
(org-export-region-as-html
(1+ (and (org-back-to-heading) (line-end-position)))

0 comments on commit 200e09d

Please sign in to comment.