Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix compatibility with org-mode >= 7.9.3 #103

Merged
merged 1 commit into from

2 participants

@ptrv

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.

See also issue #102

@ptrv ptrv 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.
200e09d
@punchagan punchagan merged commit 387217f into from
@punchagan
Owner

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 15, 2013
  1. @ptrv

    Fix compatibility with org-mode >= 7.9.3

    ptrv authored
    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.
This page is out of date. Refresh to see the latest.
Showing with 7 additions and 1 deletion.
  1. +7 −1 org2blog.el
View
8 org2blog.el
@@ -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)))
Something went wrong with that request. Please try again.