[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] Changing TeX-doc?
From: |
Arash Esbati |
Subject: |
Re: [AUCTeX-devel] Changing TeX-doc? |
Date: |
Tue, 02 Feb 2016 22:24:18 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 |
Hi Mosè,
Mosè Giordano <address@hidden> writes:
> Anyway, I rewrote `TeX-documentation-texdoc' to parse the output of
>
> texdoc --list --nointeract <pkg>
>
> and then prompt for the number with `TeX-read-string'. This should be
> more efficient, as it lets texdoc do the search for the manuals.
[...]
> I've installed the new function, and now C-c ? is bound by default to
> it. Please report any problem you may encounter.
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---
I wonder how it works for people with a space in their path to TeXLive.
Best, Arash