all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: C-x 3  C-s foo  Only window with cursor "lights up" foo
Date: Fri, 04 Feb 2005 18:49:17 -0500	[thread overview]
Message-ID: <877jlnlwia.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: 866518yycx.fsf@pallotta.studby.uio.no

> | > It is also marked in all windows (i.e. the highlighting of the
> | > "future marks" is also applied to the buffer, not just the window),
> | > AFAIK.  But it's only applied to the region of the buffer that's
> | > visible in the main window, so other windows won't see any of it
> | > unless they show an overlapping part of the buffer.
> | 
> | In my Emacs it is not the case. I'm running CVS Emacs from July 2004
> | in Windows XP. Not that it is very important for me, I just wanted to
> | present this fact.

> [ snip ]
 
> | The highligting for the "future" marks is only visible in one of the
> | windows.

> Same behavior here, Emacs 21.3.50 on FreeBSD, built 15 minutes ago.

Oops, you're right, isearch actually goes to the trouble to make the
"lazy hilighting" only active in the main window.
This was done apparently on-purpose, by RMS in the following change:

   revision 1.172
   date: 2001/01/03 00:18:53;  author: rms;  state: Exp;  lines: +76 -86
   Do highlighting of alternative matches all at once,
   but only do it in the text that's visible in the selected window.
   
   (isearch-lazy-highlight-cleanup): Arg now says
   to remove all the current alternative-match highlighting.
   If nil, remove only what's outside the current window.
   (isearch-lazy-highlight-remove-overlays): Take optional
   region within which NOT to remove them.
   (isearch-lazy-highlight-new-loop): Greatly simplified.
   (isearch-lazy-highlight-update): Find all the other occurrences
   visible in the window, in just one call.
   
   (isearch-lazy-highlight-start): Now holds start of region to scan.
   (isearch-lazy-highlight-end): Now holds end of region to scan.
   (isearch-lazy-highlight-wrapped): Variable deleted.
   (isearch-lazy-highlight-search): Function deleted.
   ----------------------------

The relevant pat of the corresponding diff is:

@@ -1989,26 +1995,10 @@
 		  (overlay-put ov 'face isearch-lazy-highlight-face))
 
 		(overlay-put ov 'priority 0)
+		;; Don't highlight on any other windows.
+		(overlay-put ov 'window isearch-lazy-highlight-window)
 

This code has changed, but the `window' property on the overlay has been
preserved since.

If you don't like it, you should send a bug report about it with M-x
report-emacs-bug.


        Stefan

  reply	other threads:[~2005-02-04 23:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-29  6:38 C-x 3 C-s foo Only window with cursor "lights up" foo David Combs
2005-01-29 11:27 ` Peter Dyballa
     [not found] ` <mailman.16030.1106999971.27204.help-gnu-emacs@gnu.org>
2005-01-31 16:07   ` Stefan Monnier
2005-02-01 13:25     ` Mathias Dahl
2005-02-01 19:10       ` Stefan Monnier
2005-02-03  8:39         ` Mathias Dahl
2005-02-03 15:17           ` Stefan Monnier
2005-02-04 10:36             ` Mathias Dahl
2005-02-04 18:27               ` Steinar Børmer
2005-02-04 23:49                 ` Stefan Monnier [this message]
2005-02-05  0:21                   ` David Kastrup

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=877jlnlwia.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.