emacs - 为什么在 emacs 中调用 byte-recompile-directory 函数时需要先输入 c-u 0?

标签 emacs compilation org-mode

我正在将 org-mode 安装到我的 emacs 上。网上的教程告诉我应该执行以下步骤:c-u 0 m-x byte-recompile-directory<RET> 。我知道我在后一步( m-x byte-recompile-directory<RET> )中做什么,但是 "c-u 0" 这里的含义是什么? ?谢谢!

最佳答案

来自byte-recompile-directory文档:

If the '.elc' file does not exist, normally this function does not compile the corresponding '.el' file. However, if the prefix argument ARG is 0, that means do compile all those files. A nonzero ARG means ask the user, for each such '.el' file, whether to compile it. A nonzero ARG also means ask about each subdirectory before scanning it.

C-u 是向交互式函数提供数字参数的常用方法。除非您使用 C-u 0 提供零参数,否则不会重新编译尚未包含 .elc 文件的文件。

关于emacs - 为什么在 emacs 中调用 byte-recompile-directory 函数时需要先输入 c-u 0?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10320150/

相关文章:

emacs - emacs 24 中的消息显示行为已更改

Python 错误 : PyThreadState_Get: no current thread after compiling an extension

emacs - 为 Org-mode 中的每个条目分配 ID

org-mode - 覆盖 HTML 导出默认值

emacs - 将评论导出为评论

function - 我可以取消调用 Common Lisp 中的函数吗

emacs - 如何在 smartparens 中更改 sp-navigate-reindent-after-up 的值

python - emacs 的正确 flymake 配置是什么? (使用 Python.el)

haskell - Haskell 是否在编译时扩展了某些 thunk?

ffmpeg - 将 ffmpeg 编译为独立的二进制文件