unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, "N. Jackson" <nljlistbox2@gmail.com>
Cc: 18590@debbugs.gnu.org
Subject: bug#18590: 24.3.93; Scrolling changes/forgets selection
Date: Tue, 30 Sep 2014 08:06:48 -0700 (PDT)	[thread overview]
Message-ID: <69d7a976-96b7-49c6-bb96-e69f2fa8c93e@default> (raw)
In-Reply-To: <<83ppedkwrs.fsf@gnu.org>>

> > 4. Scroll the window with the scroll bar or the mouse.
> > The selection changes as the window is scrolled up and down.
> 
> Yes, there's a good reason: a selection in Emacs is always between
> point and the mark, and when scrolling causes it to go off the
> displayed portion of the buffer, Emacs moves point to bring it back
> into view, which changes the selected portion of the text.

Yes, it's well known.  But IMO not ideal behavior.

The same thing does not happen if you select with the mouse (e.g.
drag the selection past the window bottom.  And it does not happen
if you set mark and then use C-v to move past the window bottom.

The problem is not that point is kept in the window - that is
desirable.  The point is the lack of a mark at the other end, so
the selected text shrinks (that's not really a problem, since what
is no longer selected is off-screen anyway), and you cannot use
C-x C-x to get back the region you had.  That loss of the original
region is the problem.  With the other methods I just mentioned,
you can use C-x C-x to get the region back.

I see the problem only when the scroll bar is used.  Not sure
what the OP meant by "or with the mouse".  Perhaps he meant
a window-scrolling mouse.  I don't see the problem when I drag
the selection using the mouse, at least.

And if I select a bit of text and then use the mouse wheel to
scroll the window I don't see the problem either.  In that case,
the scrolling immediately deselects the text, unlike the case
when I use the scroll bar.





       reply	other threads:[~2014-09-30 15:06 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<87k34li7ex.fsf@moondust.localdomain>
     [not found] ` <<83ppedkwrs.fsf@gnu.org>
2014-09-30 15:06   ` Drew Adams [this message]
2014-09-30 15:30     ` bug#18590: 24.3.93; Scrolling changes/forgets selection Eli Zaretskii
     [not found] <<69d7a976-96b7-49c6-bb96-e69f2fa8c93e@default>
     [not found] ` <<83fvf9ktwd.fsf@gnu.org>
2014-09-30 16:43   ` Drew Adams
2014-09-30 17:00     ` Eli Zaretskii
     [not found]   ` <<4a1fd296-dc2f-4fb3-a854-0b4acea62f72@default>
     [not found]     ` <<8361g5kpqb.fsf@gnu.org>
2014-09-30 17:10       ` Drew Adams
2014-09-30 17:44         ` Eli Zaretskii
2014-09-30 13:07 N. Jackson
2014-09-30 14:28 ` Eli Zaretskii
2014-09-30 17:42   ` N. Jackson
2014-09-30 17:56     ` martin rudalics
2014-09-30 19:22       ` Stefan Monnier
2014-09-30 17:59     ` Eli Zaretskii
2014-09-30 18:09     ` Stefan Monnier
     [not found]   ` <mailman.10089.1412098998.1147.bug-gnu-emacs@gnu.org>
2014-10-01 13:29     ` Alan Mackenzie
2014-10-01 14:42       ` Stefan Monnier
2014-10-01 14:59         ` Drew Adams
2022-04-13  0:37 ` Lars Ingebrigtsen
2022-04-13  0:50   ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=69d7a976-96b7-49c6-bb96-e69f2fa8c93e@default \
    --to=drew.adams@oracle.com \
    --cc=18590@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --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).