一、背景:
在XUbuntu22.04上使用emacs27.1和cscope,查找函数时报错.
process-kill-without-query
process-kill-without-query is a compiled Lisp function in `subr.el'.
(process-kill-without-query PROCESS &optional FLAG)
This function is obsolete since 22.1;
use `process-query-on-exit-flag' or `set-process-query-on-exit-flag'.
Say no query needed if PROCESS is running when Emacs is exited.
Optional second argument if non-nil says to require a query.
Value is t if a query was formerly required.
二、解决方案
解决思路:
将所有含(process-kill-without-query xxx)替换为
如下所示:
(process-query-on-exit-flag xxx)
或者
(set-process-query-on-exit-flag xxx nil)
1.将/usr/share/dictionaries-common/site-elisp目录下所有含process-kill-without-query替换
debian-ispell.el flyspell.el ispell.el
2.将~/.emacs.d下所有含process-kill-without-query替换
3.删除所有含process-kill-without-query的.elc文件