当我从桌面会话中恢复时,警告。 Emacs的 [英] Warning when I revert from desktop session. Emacs

查看:218
本文介绍了当我从桌面会话中恢复时,警告。 Emacs的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

昨天我从EmacsWiki发现了桌面模式,然后配置了Emacs 24:

Yesterday I found desktop mode from EmacsWiki, and then I configure it for my Emacs 24:

;; Desktop
(require 'desktop)

;; save the desktop file automatically if it already exists
(desktop-save-mode 1)

;; use only one desktop
(setq desktop-path '("~/.emacs.d/tmp/"))
(setq desktop-dirname "~/.emacs.d/tmp/")
(setq desktop-base-file-name "desktop.cache")

但是我得到Emacs中的 * Compile-Log * 缓冲区中的警告:

But I got a warning in *Compile-Log* buffer when I restart Emacs:

Warning: ad-Orig-kill-region called with 3 arguments, but accepts only 2

使用桌面时,任何人都会遇到此警告?或者,任何附加组件比桌面模式更好?

Anyone else encounter this warning when use desktop? Or, any add-ons else better than desktop-mode?

推荐答案

ad-Orig- / code>前缀告诉你,功能 kill-region 是建议的。可能这个建议引起了问题?

The ad-Orig- prefix is telling you that the function kill-region is advised. Possibly that advice is causing issues?

Ch f kill-region RET 应该告诉你建议的名称;机会很好,它是你自己的配置中的东西,所以我先找到它。

C-hf kill-region RET should tell you the name of the advice; chances are good that it's something in your own config, so I would look for it there firstly.

看看是否禁用该建议解决问题。

See if disabling the advice resolves the problem.

我在Emacs 24中注意到这个函数的奇怪性; kill-region 的源代码显然可以选择第三个参数,但是 * Help * 屏幕只提到两个

I do note an oddity with this function in Emacs 24; the source code for kill-region clearly takes an optional third argument, but that *Help* screen mentions only the two required args.

我检查了Emacs 23,帮助中提到了所有三个参数。

I checked in Emacs 23, and the help there mentions all three arguments.

也许有Emacs 24中的一个错误,它负责帮助输出中的差异,以及您看到的错误?

Perhaps there's a bug in Emacs 24 which is responsible for both the discrepancy in the help output, and the error you're seeing?

这篇关于当我从桌面会话中恢复时,警告。 Emacs的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆