From: Lars Ingebrigtsen <larsi@gnus.org>
To: Juri Linkov <juri@linkov.net>
Cc: 20092@debbugs.gnu.org, "N. Jackson" <nljlistbox2@gmail.com>,
Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#20092: 24.4.91; False matches with incremental search in Info
Date: Tue, 25 Aug 2020 11:40:37 +0200 [thread overview]
Message-ID: <87wo1ncbca.fsf@gnus.org> (raw)
In-Reply-To: <878uf2dmow.fsf@mail.linkov.net> (Juri Linkov's message of "Thu, 12 Mar 2015 21:45:33 +0200")
Juri Linkov <juri@linkov.net> writes:
> Since Info doesn't open invisible text, then maybe `Info-mode' should
> set the buffer-local value of `search-invisible' to nil?
>
> diff --git a/lisp/info.el b/lisp/info.el
[...]
> + (setq-local search-invisible nil)
Makes sense to me, but this was never applied?
>> I'm not sure what's the best and/or simplest way to fix it.
>> Maybe a first step would be to emit a message explaining that the match
>> is inside hidden text (at least so the user gets a clue about what's
>> going on).
[...]
> Or maybe better in the message suffix?
>
> diff --git a/lisp/isearch.el b/lisp/isearch.el
> index 191ec82..4bc2129 100644
> --- a/lisp/isearch.el
> +++ b/lisp/isearch.el
> @@ -2544,6 +2545,7 @@ (defun isearch-message-suffix (&optional c-q-hack)
> (if isearch-error
> (concat " [" isearch-error "]")
> "")
> + (if isearch-hidden " [hidden]" "")
> (or isearch-message-suffix-add "")))
I think that would be a good idea, but I tried the patch, and I could
never get it to actually show the [hidden] suffix. I tried debugging
this, but... it seems like isearch-hidden is never set? At least not
in my test cases here? Is there another bug in this area?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2020-08-25 9:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-12 0:57 bug#20092: 24.4.91; False matches with incremental search in Info N. Jackson
2015-03-12 3:31 ` N. Jackson
2015-03-12 14:29 ` N. Jackson
2015-03-12 19:16 ` Stefan Monnier
2015-03-12 19:45 ` Juri Linkov
2015-03-13 1:12 ` Stefan Monnier
2020-08-25 9:40 ` Lars Ingebrigtsen [this message]
2020-08-25 18:32 ` Juri Linkov
2021-05-10 11:26 ` Lars Ingebrigtsen
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=87wo1ncbca.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=20092@debbugs.gnu.org \
--cc=juri@linkov.net \
--cc=monnier@iro.umontreal.ca \
--cc=nljlistbox2@gmail.com \
/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).