emacs - 字节编译错误

我想对.emacs.d目录中的一些el文件进​​行字节编译。我写了一个这样的文件:
cl.el:

(add-to-list 'load-path "~/.emacs.d/slime/")
(require 'slime)

和其他代码。当我字节编译它时,错误是:
Error: Cannot open load file: slime

但是,我确实将粘液包放在目录中。
而且我使用batch-byte-compile还发现所有el文件都包含
(require '***)

会导致类似的错误

最佳答案

〜不扩展;使用绝对路径或(add-to-list 'load-path (expand-file-name "~/.emacs.d/slime/"))

本质上,这与字节编译无关。

https://stackoverflow.com/questions/7662154/

相关文章:

python - Mac OS X中的python错误 undefined symbol : “_P

ruby - 无法安装rmagick

compiler-errors - mingw提供错误-C编译器无法创建可执行文件

msbuild - MSbuild 4.0无法编译.Net 3.5项目

actionscript-3 - AS3在第一个音频文件完成播放后播放第二个音频文件

spring - 哪个工具可以验证 Spring 配置

installation - 编译后ISTool错误

.net - Visual Studio Web引用错误

visual-studio-2008 - midl : error MIDL9008

python - 安装Python库时出错?