4

升级到Org9.0后的问题及解决方法

 3 years ago
source link: https://www.lujun9972.win/blog/2016/12/07/%E5%8D%87%E7%BA%A7%E5%88%B0org9.0%E5%90%8E%E7%9A%84%E9%97%AE%E9%A2%98%E5%8F%8A%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/index.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

升级到Org9.0后的问题及解决方法

执行代码块时提示"Evaluation of this XXXX code-blockis disabled."

出现这个问题的原因是在新版本的org-mode中"org-babel-check-confirm-evaluate"从一个宏变成了函数.

但在编译新org-mode时,若加载了旧org-mode,则会将"org-babel-check-confirm-evaluate"看成宏而不是函数.

解决的方法是删掉org或org-plus-contrib中的所有elc文件,并用 byte-recompile-directory 重新编译一次.

执行代码块是提示"org-babel-variable-assignments:sh: Symbol’s function definition is void: org-babel-get-header"

要执行shell代码块,需要用"shell"替换"sh",即之前是 #+BEGIN_SRC sh 现在要改成 #+BEGIN_SRC shell


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK