[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#13402: 24.2.92 pretest: bugs in isearch-yank-line in info page
From: |
Juri Linkov |
Subject: |
bug#13402: 24.2.92 pretest: bugs in isearch-yank-line in info page |
Date: |
Wed, 13 Feb 2013 19:53:28 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) |
> I think it should either skip it properly, or not at all. There is an
> inconsistency here between parts of isearch.
This can be fixed by the patch below that takes into account
the default value `open' of `search-invisible' and treats it the same
as its value `t', i.e. matches hidden text (but it still can't "open" it
in a meaningful way).
> C-s C-w also produces these error messages, and the "[end of node]"
> is just wierd, from a user's point of view.
I have no idea for a better error message.
> I think this should be fixed, somehow, for Emacs 24.3. I would agree
> with your suggestion that isearch should simply yank the invisible text.
This is not a regression, so this patch is intended for trunk:
=== modified file 'lisp/info.el'
--- lisp/info.el 2013-02-12 07:57:04 +0000
+++ lisp/info.el 2013-02-13 17:52:53 +0000
@@ -2162,7 +2162,7 @@ (defun Info-isearch-filter (beg-found fo
(let ((backward (< found beg-found)))
(not
(or
- (and (not (eq search-invisible t))
+ (and (null search-invisible)
(if backward
(or (text-property-not-all found beg-found 'invisible nil)
(text-property-not-all found beg-found 'display nil))