[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [AUCTeX-devel] Changing TeX-doc?

From: Mosè Giordano
Subject: Re: [AUCTeX-devel] Changing TeX-doc?
Date: Tue, 2 Feb 2016 22:43:50 +0100

Hi Arash,

2016-02-02 22:24 GMT+01:00 Arash Esbati <address@hidden>:
> Thanks for implementing this.  I tried it on a Win box with Emacs 25
> pretest and it doesn't work correctly when invoked with prefix.  I think
> the issue with the regexp in line 6128:
> --8<---------------cut here---------------start------------->8---
>   ;; XXX: XEmacs doesn't support character classes in
>   ;; regexps, like "[:alnum:]".
>   "^ *\\([0-9]+\\) +\\([-~/a-zA-Z0-9_.${}#%,:]+\\)" nil t)
> --8<---------------cut here---------------end--------------->8---
> On Win, texdoc -l returns the paths with `\' as separators.  I could fix
> it with adding `\\' to the regexp:
> --8<---------------cut here---------------start------------->8---
>   "^ *\\([0-9]+\\) +\\([-~/a-zA-Z0-9_.${}#%,:\\]+\\)" nil t)
> --8<---------------cut here---------------end--------------->8---

Thanks for testing!  I applied your patch.

> I wonder how it works for people with a space in their path to TeXLive.

On my system `call-process` correctly handles the case when args have
spaces.  For example I tried to open a file called "/tmp/foo bar.pdf"
with Okular, a PDF viewer for GNU/Linux, with

    (call-process "okular" nil 0 nil "/tmp/foo bar.pdf")

and it works like a charm.  Could you please test on Windows?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]