[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6206: 23.1; docstring info node links with newlines
From: |
Juri Linkov |
Subject: |
bug#6206: 23.1; docstring info node links with newlines |
Date: |
Fri, 21 May 2010 02:57:52 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) |
>> Should this also handle indentation? (Info generally does.)
>
> I suppose indentation would be unusual in a docstring, but it could be
> worth letting anything help-xref-info-regexp matches work. Perhaps runs
> of whitespace,
>
> (replace-regexp-in-string "\\s-+" " " data t t)
This doesn't work because `help-make-xrefs' uses
`emacs-lisp-mode-syntax-table' where \n is not whitespace.
You can try to eval in a buffer with emacs-lisp-mode:
(replace-regexp-in-string "\\s-+" " " "(gnus)Group\nLevels" t t)
=> "(gnus)Group\nLevels"
So I installed your patch with "[ \t\n]+".
--
Juri Linkov
http://www.jurta.org/emacs/