Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

每次打开文件都提示: Warning (emacs): ‘:events-buffer-scrollback-size’ deprecated. Use ‘events-buffer-config’. #437

Closed
happy12322 opened this issue Feb 22, 2024 · 8 comments

Comments

@happy12322
Copy link

在 opsuse 15 和 debian 11 上都会有这个提示.

再一个就是把项目克隆到~/.emacs.d 后, 我没有对项目文件作任何更改, 启动 emacs 后自动就选择了 ustc 源, 安完了我看项目文件夹内配置, 默认指定的是 melpa 源啊, 不知道为啥没有使用默认的源.

@seagle0128
Copy link
Owner

请按照模板提供必要的信息,否则无法准备判断问题。

再一个就是把项目克隆到~/.emacs.d 后, 我没有对项目文件作任何更改, 启动 emacs 后自动就选择了 ustc 源, 安完了我看项目文件夹内配置, 默认指定的是 melpa 源啊, 不知道为啥没有使用默认的源.

请检查 custom.el

@happy12322
Copy link
Author

happy12322 commented Feb 22, 2024

刚才的表达是有问题的对不起, 重新表述一下. 之所以没有提供配置模板, 是因为我没有对配置进行更改啊都保持的默认.
第一步

mv ~/.emacs.d ~/.emacs.d.bak
git clone --depth 1 https://github.com/seagle0128/.emacs.d.git ~/.emacs.d

然后不对 ~/.emacs.d 内文件内容做任何更改, (此时不存在 custom.el 这个文件), 一切都保持 github 仓库原样.

第二步, 打开 emacs ,自动进行安装, 我发现它使用的是 ustc 源啊. 而不是官方的 melpa 源. 不知道是不是自动根据我的网络环境测速选择了最快的源.

Warning (emacs): ‘:events-buffer-scrollback-size’ deprecated. Use ‘events-buffer-config' 这个提示, 是在 29.2 版本出现的, 无论是 opensuse 官方源中的, 还是我在 debian 11 自己编译的, 都会出现这个问题.

@happy12322
Copy link
Author

debian 11 官方版太旧了, 用的自编译, 版本信息:

 $ emacs --version                                                                                                                                                                               
GNU Emacs 29.2
Development version ef01b634d219 on HEAD branch; build date 2024-02-19.

opensuse 用的 Tumbleweed 最新版 , 官方仓库中就是最新的 29.2 版所以直接从官方仓库中安装了.

@happy12322
Copy link
Author

happy12322 commented Feb 22, 2024

之所以会提到第一次打开 emacs 的 " 默认源 " 是因为, 在使用 ustc 源的情况下(也许不是因为 ustc ,而是其它什么原因), emacs 会给出警告 ,, 对于我是可以复现的, 提示如下
Screenshot from 2024-02-22 19-36-54

@happy12322
Copy link
Author

在弹出警告后, 我不想继续安装, 于是点了右上角的 X 关闭了emacs, 这时进入 ~/.emacs.d 目录, 发现刚才运行 emacs 产生了 custom.el 文件 ,打开这个文件, 取消 (setq centaur-package-archives 'melpa) ; Package repo: melpa, emacs-cn, bfsu, netease, sjtu, tencent, tuna or ustc 的注释(也就是启用 melpa 源), 再次打开 emacs , 不再出现警告, 等一会就安装完成了.

@seagle0128
Copy link
Owner

第一次启动会自动生成custom.el,package-archives也会自动测速选择最快的镜像源。如果不想用镜像,手动改为melpa即可。

@rif
Copy link

rif commented Mar 6, 2024

Every time I open a new file I get this Warning (emacs): ‘:events-buffer-scrollback-size’ deprecated. Use ‘events-buffer-config’.
So annoying. Is there a fix for it?

@seagle0128
Copy link
Owner

This warning is from jsonrpc. Try

  1. Upgrade jsonrpc.
  2. Customize warning-suppress-log-types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants