Emacs Error: Invalid function: org-babel-header-args-safe-fn
来源:互联网 发布:胜任力测评软件 编辑:程序博客网 时间:2024/06/06 02:22
新博客地址
本文链接
An error caused by org or org-plus-contrib package.
Possible Cause
This problem is highly possible to be caused by this settings in init files:
;;auto load languages(org-babel-do-load-languages 'org-babel-load-languages '( (sh . t) (python . t) (R . t) (ruby . t) (ditaa . t) (dot . t) (octave . t) (sqlite . t) (perl . t) (C . t) ))
There are many people who encountered with exactly the same problem because of org and org-plus-contrib. So I thought this could be the root cause. But shortly it was found that I didn’t have org-plus-contrib at all. So the real cause remained unclear. I would appreciate it if you are willing to share what you find about this error in comments.
Solution
You can simply comment this configuration out to get rid of the launch error. The final solution is provided in this email.
The upshot was run M-x byte-compile-file on file ob-R.el.
If you don’t know where the file ob-R.el is, just search in your emacs configuration folder. After compiled, if everything goes fine, the error should have go away.
However, some may encounter new errors while compiling. Refer to this email for a temporary fix. In case the link could be expired, I copied the email contents here:
Unfortunately I now can’t reproduce the problem, so I can’t check if my suggestion to byte compile ob-R.el works or not. When I did observe the issue you describe that seemed to fix it, and at least one other person confirmed that it worked for them as well.
Since it doesn’t work for you I suggest removing org-plus-contrib (or org), starting emacs with emacs -Q and running something like
(require ‘package)
(add-to-list ‘package-archives
‘(“org” . “http://orgmode.org/elpa/“;) t)
(package-initialize)
(package-install ‘org-plus-contrib)
;; or (package-install ‘org)
Best,
Ista
- Emacs Error: Invalid function: org-babel-header-args-safe-fn
- 异常org.apache.http.ProtocolException: Invalid header
- error: invalid storage class for function 'XXXX'
- error: invalid storage class for function
- Cuda kernel failed. Error: invalid device function
- error: invalid storage class for function
- Cuda kernel failed. Error: invalid device function
- kinfu_largeScal_release run error,Error:invalid device function ../tsdf_volume.cu:164
- Error:Cause: invalid LOC header (bad signature)怎么解决
- invalid header field value "oci runtime error: container_linux.go:247
- 严重: Error in dependencyCheck java.io.IOException: invalid header field
- ERROR 微信安卓报http 400 Bad Request -Invalid Header name错误
- error C2447: missing function header (old-style formal list?)
- (function($){...})(jQuery)、$(function(){ })和$.fn
- error : implicit declaration of function CC_MD5 is invalid in C99
- error C2449: found '{' at file scope (missing function header?)和error C2059: syntax error : '}'
- Error:scalac: error while loading <root>, invalid CEN header (bad signature)
- Error: Cannot find module 'core-js/fn/array/values' at Function.Module._resolveFilename (module
- SpringMVC使用 @responseBody Annotation 在老版本IE会变成下载
- WIN32SDK : TranslateAccelerator参数1填错引起加速键失效
- 108 对C语言指针的总结
- qduoj LC and Prime&&hdu 5104(线性筛)
- HDU3306
- Emacs Error: Invalid function: org-babel-header-args-safe-fn
- java用户登陆窗口
- [STL]IP and QQ (eden)
- 字符串、向量和数组---C++ 基础
- qwb与李主席 状压+二分
- 简单介绍android中什么叫i18n 和L10n
- 使用VAO VBO绘制图形
- 汇编语言 实验12 编写0号中断的处理程序
- 利用网线在两台电脑之间传输文件