相关疑难解决方法(0)

应该用`cl-flet`或`cl-letf`替换'flet`吗?

我安装的一些elisp函数会生成警告:

`flet' is an obsolete macro (as of 24.3); use either `cl-flet' or `cl-letf'.
Run Code Online (Sandbox Code Playgroud)

它是危险的,如果我只是更换所有fletcl-flet?如果可以更换它们,哪一个更好?

如果更换它没有危险,我会向项目发送拉取请求.

有什么理由他们不改变它吗?

emacs

17
推荐指数
3
解决办法
3953
查看次数

emacs编译缓冲区自动关闭?

我希望在没有错误且没有警告的情况下自动关闭编译缓冲区,但是我想在有警告时显示它.有人可以帮帮我吗?来自emacswiki的此代码仅执行第一个要求.怎么改呢?

  ;; Helper for compilation. Close the compilation window if
  ;; there was no error at all.
  (defun compilation-exit-autoclose (status code msg)
    ;; If M-x compile exists with a 0
    (when (and (eq status 'exit) (zerop code))
      ;; then bury the *compilation* buffer, so that C-x b doesn't go there
      (bury-buffer)
      ;; and delete the *compilation* window
      (delete-window (get-buffer-window (get-buffer "*compilation*"))))
    ;; Always return the anticipated result of compilation-exit-message-function
    (cons msg code))
  ;; Specify my function (maybe I …
Run Code Online (Sandbox Code Playgroud)

emacs buffer compile-mode

14
推荐指数
1
解决办法
3898
查看次数

如何防止emacs打开编辑输出的新窗口?

当我调用编译命令时,如何防止emacs打开新窗口?我想将它绑定到特定的现有窗口.

emacs

9
推荐指数
2
解决办法
3432
查看次数

标签 统计

emacs ×3

buffer ×1

compile-mode ×1