cscope-in​​dex-files总是显示“不匹配”

时间:2013-09-07 04:54:03

标签: emacs cscope

我已经在emacs中安装了cscope并使用了xcscope.el。

我想用cscope-index-files在Emacs中索引我的文件。但是在设置目录时,它总是显示No match

1 个答案:

答案 0 :(得分:0)

cscope-index-files命令要求用户在交互式调用时通过迷你缓冲区提供有效目录。您可以在xcscope.el中的源代码中通过提供给interactive函数的字符串的第一个字符来判断,在这种情况下,“D”表示目录:

(defun cscope-index-files (top-directory)
  (interactive "DIndex files in directory: ")
...

当我运行M-x cscope-index-files时,如果我提供的目录不存在,我会看到emacs说No match,例如~/aaaaa;在这种情况下,emacs不接受它,迷你缓冲区显示~/aaaaa[No match]。您在调用cscope-index-files时提供了有效的目录吗?

格雷厄姆