unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Drew Adams <drew.adams@oracle.com>
Cc: 33446@debbugs.gnu.org
Subject: bug#33446: 26; `isearch-lazy-highlight-update' in MASTER today
Date: Wed, 21 Nov 2018 01:14:12 +0200	[thread overview]
Message-ID: <87h8gb5owm.fsf@mail.linkov.net> (raw)
In-Reply-To: <2c20f006-c54f-423e-ad4e-f1208f3fa179@default> (Drew Adams's message of "Tue, 20 Nov 2018 13:10:50 -0800 (PST)")

> The proximate cause of the error was likely due to
> my calling `isearch-lazy-highlight-update' outside
> searching (i.e., nil `isearch-mode').  But I think
> there might still be a bug in the Isearch code.

isearch-lazy-highlight-update is not intended
to be used in a window other than the window
where isearch-lazy-highlight-new-loop was called.
It has many dependencies on the original window
being selected.

> The `isearch-lazy-highlight-update' code does this:
>
> (save-selected-window
>   (if (and (window-live-p isearch-lazy-highlight-window)
>            (not (memq (selected-window)
>                 isearch-lazy-highlight-window-group)))
>       (select-window isearch-lazy-highlight-window))
>
> That causes the window in the other frame to be selected.

It should select the same window where
isearch-lazy-highlight-new-loop was called.

> The code then does this:
>
>   (setq window-start (window-group-start))
>   (setq window-end (window-group-end))
>
> This causes `window-end' to be nil.  Should `window-group-*' here
> be passed window `isearch-lazy-highlight-window'?

isearch-lazy-highlight-window should not be passed here
because it's guaranteed to be selected by the code above.





  reply	other threads:[~2018-11-20 23:14 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-20 19:47 bug#33446: 26; `isearch-lazy-highlight-update' in MASTER today Drew Adams
2018-11-20 21:10 ` Drew Adams
2018-11-20 23:14   ` Juri Linkov [this message]
2018-11-20 23:47     ` Drew Adams
2018-11-21 22:42       ` Juri Linkov
2018-11-21 22:50         ` Drew Adams

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=87h8gb5owm.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=33446@debbugs.gnu.org \
    --cc=drew.adams@oracle.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).