From: Juri Linkov <juri@jurta.org>
Cc: emacs-devel@gnu.org
Subject: Info-search-whitespace (Was: Improvements to `(emacs)File Variables')
Date: Fri, 19 Nov 2004 03:23:29 +0200 [thread overview]
Message-ID: <87fz36h90m.fsf_-_@jurta.org> (raw)
In-Reply-To: <jwvr7mrqbka.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Thu, 18 Nov 2004 13:04:26 -0500")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
> Go to the Emacs manual and do a M-s search for "unibyte: *t".
Out of curiosity I looked at what the Emacs manual does say about
unibyte mode and noticed such a problem: Emacs hangs with "unibyte: *t"
Info search string. This is because Info-search expands it with
Info-search-whitespace to "unibyte:\\(?:\\s-+\\)*t" and on the line
* --unibyte: Initial Options. (line 101)
Emacs goes into a long loop because it tries to match whitespace
\\(?:\\s-+\\)* in extremely many ways.
Perhaps Info-search should search for a string only, not a regexp:
i.e. preprocess a search string with `regexp-quote' before replacing
whitespace with Info-search-whitespace and re-searching for it.
Anyway, the standalone Info reader already doesn't search for a regexp
with the `s' key, and the Emacs Info reader should not differ from it.
Of course, this doesn't prohibit from adding a new command
`Info-search-regexp' (without keybinding) to the Emacs Info reader,
which won't expand whitespace to Info-search-whitespace and will
use a search regexp exactly as specified by the user.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2004-11-19 1:23 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-14 19:02 Improvements to `(emacs)File Variables' Reiner Steib
2004-11-14 21:12 ` Stefan Monnier
2004-11-14 23:26 ` Miles Bader
2004-11-14 23:46 ` Stefan Monnier
2004-11-14 23:55 ` Miles Bader
2004-11-15 0:18 ` Stefan Monnier
2004-11-15 4:53 ` Miles Bader
2004-11-15 5:15 ` Stefan Monnier
2004-11-16 16:48 ` Richard Stallman
2004-11-16 16:49 ` Richard Stallman
2004-11-16 16:59 ` Stefan Monnier
2004-11-18 2:55 ` Richard Stallman
2004-11-18 16:47 ` Stefan Monnier
2004-11-18 17:07 ` Simon Krahnke
2004-11-18 18:04 ` Stefan Monnier
2004-11-19 1:23 ` Juri Linkov [this message]
2004-11-19 5:06 ` Info-search-whitespace Stefan Monnier
2004-11-19 17:48 ` Info-search-whitespace Juri Linkov
2004-11-19 20:04 ` Info-search-whitespace Richard Stallman
2004-11-19 20:41 ` Info-search-whitespace David Kastrup
2004-11-21 15:39 ` Info-search-whitespace Richard Stallman
2004-11-21 16:09 ` Info-search-whitespace David Kastrup
2004-11-22 0:18 ` Info-search-whitespace Stefan Monnier
2004-11-23 16:30 ` Info-search-whitespace Richard Stallman
2004-11-19 7:15 ` Info-search-whitespace (Was: Improvements to `(emacs)File Variables') Eli Zaretskii
2004-11-19 2:25 ` Improvements to `(emacs)File Variables' Richard Stallman
2004-11-29 19:04 ` Reiner Steib
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=87fz36h90m.fsf_-_@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.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).