all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: occitan@esperanto.org
Cc: 12419@debbugs.gnu.org
Subject: bug#12419: Mouse click changes layout
Date: Tue, 25 Sep 2012 11:58:25 +0200	[thread overview]
Message-ID: <50618041.9040607@gmx.at> (raw)
In-Reply-To: <5060DCAF.9030106@t-online.de>

 >> So I have to fix this regardless of the topic we're discussing here.
 >
 > Good!  Though it wouldn't annoy me so much, if it weren't that it
 > slightly breaks your patch.  What is important to me, is that when I
 > click and let go, the point is where I initially clicked, and since I
 > didn't move the mouse, I don't want to mark anything.

I installed a fix by now.  Please try it.

 > As for going the "opposite" direction, I wonder if it's worth while to
 > keep a history of the last n implicitly changed window configurations
 > and try to revert to them wherever possible.  Might be huge task
 > admittedly...

Indeed.  And it might not help when the user wants a configuration that
didn't exist yet.  That's why shrinking the minibuffer shrinks it to one
line.  Anything else would require proportional resizing which people
don't like.

 > A somewhat related annoyance is that scrolling looses the point:
 > scrolling back to where you were before, doesn't revert that. Whenever I
 > scroll to somewhere, the point should go where it was last visible
 > within those lines, if it had been visible there before!  This should be
 > quite straightforward.  Though with sideways scrolling it might be more
 > tricky...

Eli already cited a corresponding thread.  As far as sideways scrolling
is concerned do you mean the disabled commands `scroll-left' and
`scroll-right'?  `scroll-restore' doesn't handle these yet but there
should be no problem doing that.

 > The "disturbing new" is that (in our C-x 2 scenario) by clicking
 > somewhere, the point ends up somewhere else, and without moving the
 > mouse I've marked some text.  I'm fairly confident that this is a recent
 > degradation.  (Though I don't have an old Emacs to try against to be
 > sure.)  Your patch improved it, but not quite fixed it.

Please come up with a precise scenario so I can reproduce it.

 > I don't C-x 3 so much, so this might have been there before – I don't
 > remember when it first annoyed me.  Just the occasional glitch, which on
 > its own never merited heckling anybody about. Actually sideways
 > scrolling is only neat when I click near the edge wanting it.  When I
 > don't think about it, it's usually a hassle to get things like they were
 > before.  Probably it should only sideways scroll when I drag the mouse
 > over the window edge, like vertical scrolling.

I suppose the problem with automatic sideways scrolling you see is that
the positions of `point' and the mouse cursor do not coincide after an
autscroll.  But something like this happens all the time.  Start
mouse-marking text somewhere in the middle of a line and move the mouse
down until you encounter an empty line.  `point' will be at the
beginning of the line and the mouse cursor around the column where it
was before.  IIUC, the primary importance here is to keep the mouse
cursor from jumping around.

martin






  parent reply	other threads:[~2012-09-25  9:58 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-11 22:04 bug#12419: Mouse click changes layout Daniel Pfeiffer
2012-09-12  2:59 ` Eli Zaretskii
2012-09-12  8:09 ` martin rudalics
2012-09-13 20:41   ` Daniel Pfeiffer
2012-09-14  9:00     ` martin rudalics
2012-09-14 10:36       ` Eli Zaretskii
2012-09-14 13:38         ` martin rudalics
2012-09-14 14:10           ` Drew Adams
2012-09-14 15:08             ` martin rudalics
2012-09-14 16:18               ` Drew Adams
2012-09-14 19:14                 ` martin rudalics
2012-09-14 19:40                   ` Drew Adams
2012-09-15  9:51                     ` martin rudalics
2012-09-15 10:31                       ` martin rudalics
2012-09-14 14:53           ` Eli Zaretskii
2012-09-14 15:16             ` martin rudalics
2012-09-14 16:20               ` Drew Adams
2012-09-14 19:14                 ` martin rudalics
2012-09-14 16:56               ` Eli Zaretskii
2012-09-14 19:15                 ` martin rudalics
2012-09-14 20:16                   ` Eli Zaretskii
2012-09-15  9:54                     ` martin rudalics
2012-09-15 10:23                       ` Eli Zaretskii
2012-09-15 10:39                         ` martin rudalics
2012-09-15 11:14                           ` Eli Zaretskii
2012-09-15 12:44                             ` martin rudalics
2012-09-15 13:35                               ` Eli Zaretskii
2012-09-15 14:34                                 ` martin rudalics
2012-09-14 15:45             ` Stefan Monnier
2012-09-14 19:14               ` martin rudalics
2012-09-14 19:56                 ` Stefan Monnier
2012-09-15  9:51                   ` martin rudalics
     [not found]       ` <5055D769.1060804@t-online.de>
2012-09-16 17:45         ` martin rudalics
2012-09-22 20:29           ` Daniel Pfeiffer
2012-09-23  9:21             ` martin rudalics
2012-09-23 21:56               ` Daniel Pfeiffer
2012-09-24  8:17                 ` martin rudalics
2012-09-24 14:33                   ` Eli Zaretskii
2012-09-25  9:58                     ` martin rudalics
2012-09-25 12:09                       ` Eli Zaretskii
2012-09-25 14:12                         ` martin rudalics
2012-09-26  8:22                           ` Eli Zaretskii
2012-09-26 11:03                             ` martin rudalics
2012-09-26 11:55                               ` Eli Zaretskii
2012-09-26 12:43                                 ` martin rudalics
2012-09-26 13:17                                   ` Eli Zaretskii
2012-09-26 13:44                                     ` martin rudalics
2012-09-26 13:57                                       ` Eli Zaretskii
2012-09-24 22:20                   ` Daniel Pfeiffer
2012-09-25  6:32                     ` Eli Zaretskii
2012-09-25  9:58                     ` martin rudalics [this message]
2020-09-13 17:06               ` Lars Ingebrigtsen
2020-12-07 16:43                 ` Lars Ingebrigtsen

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=50618041.9040607@gmx.at \
    --to=rudalics@gmx.at \
    --cc=12419@debbugs.gnu.org \
    --cc=occitan@esperanto.org \
    /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.