【发布时间】:2014-12-13 20:42:01
【问题描述】:
我有一个默认 compilation-error-regexp-* 匹配带有两个单独列的任何行作为错误代码的问题
示例:file:15: 将链接到路径 file 中的行 15
但不幸的是,# file:15: 现在链接到不存在的路径 # file。
请尝试在 perl 或 python 模式下编译以下内容(这两种语言都有效),你就会明白我的问题:
print "# file:15:";
我不能忽略这一点,因为我激活了compilation-auto-jump-to-first-error,这非常方便,但现在它会弹出一个文件浏览器,试图打开这个不存在的文件# file:15:。
我已经检查了compilation-error-regexp-alist 和compilation-error-regexp-alist-alist,但我的 perl 设置不包括这样的正则表达式,我什至没有任何 python 设置。
我检查了“emacs -Q”以确保它不是我的任何设置。
M-x compile RET python /tmp/py.py RET
上面的代码将突出显示 #file:15: 作为错误行
问题:我怎样才能重新定义这个正则表达式或摆脱它?
干杯 局域网
【问题讨论】:
-
在 gnu-emacs-help groups.google.com/d/msg/gnu.emacs.help/FHwkCeThDzQ/CYtN8j8A9VQJ 的 crosspost 的更好链接
标签: regex perl emacs compilation error-list