在emacs中使用命令 cscope-find-file 尝试查找文件时,会显示以下消息
"File does not have expected format"
但是当在cygwin中使用cscope命令提示符尝试相同时,将显示以下消息。在按回车键时,文件被打开。
"/cygdrive/x/src/lib/proxy/controller.h" [dos format] 201 lines, 64
47 characters
Press ENTER or type command to continue
如何在emacs中模拟相同的行为,以下是elisp代码。
(defun cscope-find-this-file (symbol)
"Locate a file."
(interactive (list
(let (cscope-no-mouse-prompts)
(cscope-prompt-for-symbol "Find this file: " t))
))
(let ( (cscope-adjust nil) ) ;; Disable fuzzy matching.
(setq cscope-symbol symbol)
(cscope-call (format "Finding file: %s" symbol)
(list "-7" symbol) nil 'cscope-process-filter
'cscope-process-sentinel)
))
赞赏上述代码中有关修改内容的任何指示。感谢