还有些函数本身也会有变化,比如下面这个表达式,Emacs 25 正常执行,而 Emacs 24.5 会报错
(pcase nil
('nil t))
Emacs 24 只能用:
(pcase nil
(`nil t))
因为 pcase 从 Emacs 25 才开始支持 QUOTE Pattern。
不像上面提到的函数没定义或者参数数目多余,这样的问题 byte compiler 无法检查出来。
还有些函数本身也会有变化,比如下面这个表达式,Emacs 25 正常执行,而 Emacs 24.5 会报错
(pcase nil
('nil t))
Emacs 24 只能用:
(pcase nil
(`nil t))
因为 pcase 从 Emacs 25 才开始支持 QUOTE Pattern。
不像上面提到的函数没定义或者参数数目多余,这样的问题 byte compiler 无法检查出来。