NEWS里面确实说set-local是一个新增的函数。我搜索了一下compat-31这个文件里有set-local的定义,但是不知道为啥就是找不到。我在外面重新写这个函数就正常了。
(defun set-local (variable value) ;; compat-tests:set-local
“Make VARIABLE buffer local and set it to VALUE.”
(set (make-local-variable variable) value))
这个写法我看其他函数也是这样,也没看出那里错了;
不知道是哪里出错了。。。。
你的emacs应该是31版本且代码库较旧,换到最新的31或者回退30/升级32就好了。
hi dm, after updating, vertico is broken with this error. i saw #668 and prev discussion. i use use-package/straight.el, have nuked all vertico-related packages then restarted emacs. (locate-libary...
Most likely your Emacs is outdated, 31.0.50 without set-local. Pull and recompile Emacs and it will be fine.