Originally Posted by studioj
try it like this
see if that will work
unfortunately, neither works.
No such file or directory: c:\'%d.dvi
No such file or directory: c:\`%d`.dvi
And I even tried to move everything (emacs, miktex, and .dvi)
to c:\GNU which does not have space in its path name.
Now the problem is the yap window only starts after I close emacs.
But if in emacs I use M-! then type yap a.dvi, then no matter
where a.dvi locates, I can always open a.dvi.
Should "M-! yap a.dvi" and "M-x shell" + "shell command line: yap a.dvi"
be so much different?
Maybe we should figure out how to use global key
to make "C-c C-v" equal to "M-! yap filename"
BTW, how to implement this in emacs? I don't know
how to obtain the current file/buffer name.