unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* blue marked region appears in other window of C-x 2
@ 2002-03-28 13:13 Dan Jacobson
  2002-03-29 17:46 ` Richard Stallman
  2002-04-06  3:11 ` Miles Bader
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Jacobson @ 2002-03-28 13:13 UTC (permalink / raw)


Gentlemen, I have emacs set up so regions I mark are highlighted in
blue.  When I split the file into 2 windows and make a mark and
proceed to move downwards, creating a region, why does some blue
activity occur in the other window?
$ emacs
C-x i / e t c / t e r m c a p <return> C-x 2 C-v 
C-v C-v C-v C-v C-v C-v C-v C-v C-2 C-n C-n C-n C-n 
C-n C-n C-n

[The C-2 sets a mark for me.]

By the way, I left that other emacs in that state while writing this
message and now suddenly minutes later it begins munching CPU, so I
got rid of it.
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: blue marked region appears in other window of C-x 2
  2002-03-28 13:13 blue marked region appears in other window of C-x 2 Dan Jacobson
@ 2002-03-29 17:46 ` Richard Stallman
  2002-04-06  9:44   ` Dan Jacobson
  2002-04-06  3:11 ` Miles Bader
  1 sibling, 1 reply; 5+ messages in thread
From: Richard Stallman @ 2002-03-29 17:46 UTC (permalink / raw)
  Cc: bug-gnu-emacs

    Gentlemen, I have emacs set up so regions I mark are highlighted in
    blue.

Please say exactly how to do this setup, starting with a bare Emacs,
so as to give us a self-contained specific test case.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: blue marked region appears in other window of C-x 2
  2002-03-28 13:13 blue marked region appears in other window of C-x 2 Dan Jacobson
  2002-03-29 17:46 ` Richard Stallman
@ 2002-04-06  3:11 ` Miles Bader
  2002-04-06 17:32   ` Richard Stallman
  1 sibling, 1 reply; 5+ messages in thread
From: Miles Bader @ 2002-04-06  3:11 UTC (permalink / raw)


jidanni@deadspam.com (Dan Jacobson) writes:
> Gentlemen, I have emacs set up so regions I mark are highlighted in
> blue.  When I split the file into 2 windows and make a mark and
> proceed to move downwards, creating a region, why does some blue
> activity occur in the other window?

The highlight that happens _while your dragging the mouse_ is actually
different than the highlight from a marked region (note that the former
exists even when you have transient-mark-mode turned off).  For some
reason the `other window behavior' of these two types of highlight is
different.

Personally, I'm not bothered by the fact that a `mouse drag highlight'
happens in all windows showing a buffer, because it only happens until I
stop dragging, and so isn't particularly annoying...

-Miles
-- 
A zen-buddhist walked into a pizza shop and
said, "Make me one with everything."

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: blue marked region appears in other window of C-x 2
  2002-03-29 17:46 ` Richard Stallman
@ 2002-04-06  9:44   ` Dan Jacobson
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Jacobson @ 2002-04-06  9:44 UTC (permalink / raw)


>>>>> "RMS" == Richard Stallman <rms@gnu.org> writes:

RMS>     Gentlemen, I have emacs set up so regions I mark are highlighted in
RMS>     blue.

RMS> Please say exactly how to do this setup, starting with a bare Emacs,
RMS> so as to give us a self-contained specific test case.

I would but lets try this: OK, in the following discussion let's
forget about mouses.  I was not using a mouse at the moment.  OK, make
your emacs so that areas between point and mark are highlighted.  How
I do this is in http://jidanni.org/comp/emacs.txt but maybe we don't
need to look at that.

>>>>> "Miles" == Miles Bader <miles@gnu.org> writes:

Miles> jidanni@deadspam.com (Dan Jacobson) writes:
>> Gentlemen, I have emacs set up so regions I mark are highlighted in
>> blue.  When I split the file into 2 windows and make a mark and
>> proceed to move downwards, creating a region, why does some blue
>> activity occur in the other window?

Miles> The highlight that happens _while your dragging the mouse_ is actually

no mouses, just old fashioned setting a mark.  Anyways as I write this
I do C-x 2 then I sent a mark and move down so I start scrolling.  All
ok so far.  OK, I start repeatedly hitting the set mark [C-@ for you]
command, etc.  Anyways, sooner or later I get some "unauthorized
activity" in the other window.  Mainly as I just do something that
caused the highlighting to go away rightly in this window, all the
sudden there is highlighting getting turned on in the other window.
Hopefully my description will get you on the trail so I don't have to
dig deeper.
-- 
http://jidanni.org/ Taiwan(04)25854780

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: blue marked region appears in other window of C-x 2
  2002-04-06  3:11 ` Miles Bader
@ 2002-04-06 17:32   ` Richard Stallman
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Stallman @ 2002-04-06 17:32 UTC (permalink / raw)
  Cc: gnu-emacs-bug

Does this change fix it?

*** mouse.el.~1.239.~	Tue Mar  5 17:06:15 2002
--- mouse.el	Sat Apr  6 07:36:16 2002
***************
*** 739,745 ****
      (setq start-point (point))
      (let ((range (mouse-start-end start-point start-point click-count)))
        (move-overlay mouse-drag-overlay (car range) (nth 1 range)
! 		    (window-buffer start-window)))
      (deactivate-mark)
      ;; end-of-range is used only in the single-click case.
      ;; It is the place where the drag has reached so far
--- 739,746 ----
      (setq start-point (point))
      (let ((range (mouse-start-end start-point start-point click-count)))
        (move-overlay mouse-drag-overlay (car range) (nth 1 range)
! 		    (window-buffer start-window))
!       (overlay-put mouse-drag-overlay 'window (selected-window)))
      (deactivate-mark)
      ;; end-of-range is used only in the single-click case.
      ;; It is the place where the drag has reached so far

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-04-06 17:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-28 13:13 blue marked region appears in other window of C-x 2 Dan Jacobson
2002-03-29 17:46 ` Richard Stallman
2002-04-06  9:44   ` Dan Jacobson
2002-04-06  3:11 ` Miles Bader
2002-04-06 17:32   ` Richard Stallman

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).