emacs
I'm trying to use the guess-TeX-master function (from emacswiki auctex) but I get this error:
Wrong type argument: stringp, nil
My elisp knowledge is quite poor. Does somebody know the problem?
[EDIT]
This error was because I forgot do it the latex hook.
Anyway I trying to do something different. I want to find the file (in the same directory) that has the "begin{document}". Because my elisp skills are poor, I do it in a script:
In my .emacs:
(add-hook 'LaTeX-mode-hook (lambda () (setq TeX-master (execvp "guess-TeX-master" (file-name-directory (buffer-file-name))))))
execvp defun is here: http://www.emacswiki.org/emacs/ExecuteExternalCommand
The guess-TeX-master script is:
grep "begin{document}" $1/*.tex | cut -d ':' -f 1 | tr -d 'n'
How to do the same using elisp only?
你可以粘贴你的代码(在paste.lisp.org并在这里分享链接),这样我们就可以发现它是否真的存在句法问题。基本上,根据我的理解,你试图为操作符使用一个错误的参数。
链接地址: http://www.djcxy.com/p/33392.html上一篇: 模式:找不到主文件
下一篇: emacs的