yoshinari-nomura / org-octopress

org-mode in octopress
GNU General Public License v3.0
83 stars 16 forks source link

Unknown keyword: :export-block #27

Closed AndreaCrotti closed 7 years ago

AndreaCrotti commented 7 years ago

I just installed org-octopress from Melpa (getting this version: org-octopress-20150826.416) And I suspect there is a compatibility issue with the org-mode I have, which is

Org mode version 9.0.3 (9.0.3-elpa @ /home/andrea/.emacs.d/elpa/org-20161224/)
GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-12-19

Here below the full error.. Thanks!

Debugger entered--Lisp error: (error "Unknown keyword: :export-block")
  signal(error ("Unknown keyword: :export-block"))
  error("Unknown keyword: %s" :export-block)
  org-export-define-derived-backend(jekyll html :export-block ("HTML" "JEKYLL") :menu-entry (106 "Jekyll: export to HTML with YAML front matter." ((72 "As HTML buffer" org-jekyll-export-as-html) (104 "As HTML file" org-jekyll-export-to-html))) :translate-alist ((template . org-jekyll-template) (src-block . org-jekyll-src-block) (inner-template . org-jekyll-inner-template)) :options-alist ((:jekyll-layout "JEKYLL_LAYOUT" nil org-jekyll-layout) (:jekyll-categories "JEKYLL_CATEGORIES" nil org-jekyll-categories) (:jekyll-tags "JEKYLL_TAGS" nil org-jekyll-tags) (:jekyll-published "JEKYLL_PUBLISHED" nil org-jekyll-published) (:jekyll-comments "JEKYLL_COMMENTS" nil org-jekyll-comments)))
  byte-code("\300\301!\210\302\303\304\305\306\307\310\311\312\313& \210\314\315\316\317\310\303\320\321&\210\314\322\323\324\310\303\320\325&\210\314\326\327\330\310\303\320\325&\210\314\331\327\332\310\303\320\325&\210\314\333\334\335\310\303\320\325&\210\314\336\327\337\310\303\320\325&\210\314\340\304\341\310\342\320\321&\210\343\344\345\346\347\350\351\352\353\354\355&\n\207" [require ox-html custom-declare-group org-export-jekyll nil "Options for exporting Org mode files to jekyll HTML." :tag "Org Jekyll" :group org-export :version "24.2" custom-declare-variable org-jekyll-include-yaml-front-matter t "If true, then include yaml-front-matter when exporting to html.\n\nIf false, then you should include the yaml front matter like this at the top of the file:\n\n#+BEGIN_HTML\n---\nlayout: post\ntitle: \"Upgrading Octopress\"\ndate: 2013-09-15 22:08\ncomments: true\ncategories: [octopress, rubymine]\ntags: tech news\nkeywords: Octopress\ndescription: Instructions on Upgrading Octopress\n---\n#+END_HTML" :type boolean org-jekyll-layout "post" "Default layout used in Jekyll article." string org-jekyll-categories "" "Default space-separated categories in Jekyll article." org-jekyll-tags "Default space-separated tags in Jekyll article." org-jekyll-published "true" "Default publish status in Jekyll article." org-jekyll-comments "Default comments (disqus) flag in Jekyll article." org-jekyll-use-src-plugin "If t, org-jekyll exporter eagerly uses plugins instead of\norg-mode's original HTML stuff. For example:\n\n   #+BEGIN_SRC ruby\n     puts \"Hello world\"\n   #+END_SRC\n\nmakes:\n\n  {% codeblock ruby %}\n  puts \"Hello world\"\n  {% endcodeblock %}" org-export-jekyll-use-src-plugin org-export-define-derived-backend jekyll html :export-block ("HTML" "JEKYLL") :menu-entry (106 "Jekyll: export to HTML with YAML front matter." ((72 "As HTML buffer" org-jekyll-export-as-html) (104 "As HTML file" org-jekyll-export-to-html))) :translate-alist ((template . org-jekyll-template) (src-block . org-jekyll-src-block) (inner-template . org-jekyll-inner-template)) :options-alist ((:jekyll-layout "JEKYLL_LAYOUT" nil org-jekyll-layout) (:jekyll-categories "JEKYLL_CATEGORIES" nil org-jekyll-categories) (:jekyll-tags "JEKYLL_TAGS" nil org-jekyll-tags) (:jekyll-published "JEKYLL_PUBLISHED" nil org-jekyll-published) (:jekyll-comments "JEKYLL_COMMENTS" nil org-jekyll-comments))] 11)
  load("ox-jekyll")
  load-library("ox-jekyll")
  funcall-interactively(load-library "ox-jekyll")
  call-interactively(load-library record nil)
  command-execute(load-library record)
  (if helm-M-x-always-save-history nil (command-execute sym-com (quote record)))
  (let ((prefix-arg (or helm-current-prefix-arg helm-M-x-prefix-argument))) (if helm-M-x-always-save-history nil (command-execute sym-com (quote record))) (setq extended-command-history (cons command-name (delete command-name extended-command-history))) (if helm-M-x-always-save-history (progn (command-execute sym-com (quote record)))))
  (progn (setq this-command sym-com real-this-command sym-com) (let ((prefix-arg (or helm-current-prefix-arg helm-M-x-prefix-argument))) (if helm-M-x-always-save-history nil (command-execute sym-com (quote record))) (setq extended-command-history (cons command-name (delete command-name extended-command-history))) (if helm-M-x-always-save-history (progn (command-execute sym-com (quote record))))))
  (if sym-com (progn (setq this-command sym-com real-this-command sym-com) (let ((prefix-arg (or helm-current-prefix-arg helm-M-x-prefix-argument))) (if helm-M-x-always-save-history nil (command-execute sym-com (quote record))) (setq extended-command-history (cons command-name (delete command-name extended-command-history))) (if helm-M-x-always-save-history (progn (command-execute sym-com (quote record)))))))
  (let ((sym-com (and (stringp command-name) (intern-soft command-name)))) (if sym-com (progn (setq this-command sym-com real-this-command sym-com) (let ((prefix-arg (or helm-current-prefix-arg helm-M-x-prefix-argument))) (if helm-M-x-always-save-history nil (command-execute sym-com (quote record))) (setq extended-command-history (cons command-name (delete command-name extended-command-history))) (if helm-M-x-always-save-history (progn (command-execute sym-com (quote record))))))))
  helm-M-x(nil #("load-library" 0 12 (match-part "load-library")))
  funcall-interactively(helm-M-x nil #("load-library" 0 12 (match-part "load-library")))
  call-interactively(helm-M-x nil nil)
  command-execute(helm-M-x)
i02sopop commented 7 years ago

As http://orgmode.org/Changes.html says, :export-block is not longer supported and have to be removed.

yoshinari-nomura commented 7 years ago

Thanks for your report. I've simply removed the export-block from ox-jekyll.el. I believe c9d6dd32b549ad485b6f5f4b6f23ae54235792b8 will fix your problem.