Hi Arash and Yuri, >>>>> Arash Esbati <[email protected]> writes: > Yuri Lensky <[email protected]> writes: >> I would like to suggest the following patch, that fixes the use of >> texdoc in general, but especially when emacs itself is used as the PDF >> viewer. Please let me know if there is some more standard way (through >> git or otherwise) to make a pull request.
> I have only one question, though: Your patch turns the current > synchronous process (`call-process') into an asynchronous one > (`make-process'). I don't see a problem with this, but: > @Keita: You touched `TeX-documentation-texdoc', can you remember the > reason for `call-process'? The reason is that asynchronous call to texdoc terminates immediately and doesn't launch pdf viewer at all for my setup. Let me explain the detail. I set PDFVIEWER environment variable to "evince %s &". I attach the final ampersand so that I can freely use shell prompt after "texdoc SOMENAME" on a terminal (outside of emacs) while evince shows the pdf document. Though it is possible to omit the ampersand in PDFVIEWER and add one to texdoc call like "texdoc SOMENAME &" on a terminal, it fails when texdoc can't find a match for SOMENAME like this: ,---- | Unfortunately, there are no good matches for "xxxyyyzzz". | | There may be online documentation available for "xxxyyyzzz" at | https://texdoc.org/serve/xxxyyyzzz/0 | This documentation may be for a different version than you have installed. | | Would you like to search online? (y/N) fish: Job 1, 'env PDFVIEWER="evince %s" texdo…' has stopped `---- Thus I don't want to take that way. Regards, Ikumi Keita #StandWithUkraine #StopWarInUkraine #Gaza #StopMassiveKilling #CeasefireNOW
