ox: Fix "wrong-type-argument" error in template insertion
authorNicolas Goaziou <n.goaziou@gmail.com>
Thu, 11 Jul 2013 06:48:36 +0000 (11 08:48 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Thu, 11 Jul 2013 06:48:36 +0000 (11 08:48 +0200)
* lisp/ox.el (org-export-insert-default-template): Fix
  "wrong-type-argument" error in template insertion.

Thanks to Eric Abrahamsen for reporting this.

lisp/ox.el

index 71435b7..24e8b50 100644 (file)
@@ -3182,7 +3182,7 @@ locally for the subtree through node properties."
                         ((org-export-backend-p backend)
                          (org-export-get-all-options backend))
                         (t (org-export-get-all-options
-                            (org-export-backend-name backend)))))
+                            (org-export-get-backend backend)))))
       (let ((keyword (nth 1 entry))
             (option (nth 2 entry)))
         (cond