From: Juri Linkov <juri@jurta.org>
Cc: yamaoka@jpl.org, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: Slow Info startup
Date: Fri, 02 Dec 2005 02:03:23 +0200 [thread overview]
Message-ID: <87zmnkcqk8.fsf@jurta.org> (raw)
In-Reply-To: <87iru8wi3v.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 01 Dec 2005 17:46:44 -0500")
> Actually, we only need to use file-name-nondirectory for Info node
> names specifying other info files. This way, links within info files
> will always be highlighted correctly, even for info session started
> with Info-on-current-buffer (external links will still have the flaw
> discussed previously).
> [...]
> ! (external-link-p
> ! (string-match "(\\([^)]+\\))\\([^)]*\\)" node))
> ! (file (if external-link-p
> ! (match-string 1 node)
You need `file-name-nondirectory' around `match-string' here (and in
another similar place below). But generally your patch should work
correctly for links in the same Info file, so I think it is a good
improvement. (And I'd prefer one loop with `if external-link-p' inside
for clarity, because two separate loops wouldn't get significant
speedup here).
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2005-12-02 0:03 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-30 1:40 Slow Info startup Katsumi Yamaoka
2005-11-30 2:38 ` Chong Yidong
2005-11-30 2:41 ` Chong Yidong
2005-11-30 2:48 ` Juri Linkov
2005-11-30 3:19 ` Katsumi Yamaoka
2005-12-01 6:05 ` Richard M. Stallman
2005-12-01 21:47 ` Juri Linkov
2005-12-01 22:46 ` Chong Yidong
2005-12-02 0:03 ` Juri Linkov [this message]
2005-12-02 18:21 ` Richard M. Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zmnkcqk8.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
--cc=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).