emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/xdisp.c,v


From: Kim F. Storm
Subject: [Emacs-diffs] Changes to emacs/src/xdisp.c,v
Date: Sat, 10 Mar 2007 01:07:05 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Kim F. Storm <kfstorm>  07/03/10 01:07:05

Index: xdisp.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/xdisp.c,v
retrieving revision 1.1141
retrieving revision 1.1142
diff -u -b -r1.1141 -r1.1142
--- xdisp.c     22 Feb 2007 16:58:48 -0000      1.1141
+++ xdisp.c     10 Mar 2007 01:07:05 -0000      1.1142
@@ -13134,8 +13134,15 @@
 
       /* If first window line is a continuation line, and window start
         is inside the modified region, but the first change is before
-        current window start, we must select a new window start.*/
+        current window start, we must select a new window start.
+
+        However, if this is the result of a down-mouse event (e.g. by
+        extending the mouse-drag-overlay), we don't want to select a
+        new window start, since that would change the position under
+        the mouse, resulting in an unwanted mouse-movement rather
+        than a simple mouse-click.  */
       if (NILP (w->start_at_line_beg)
+         && NILP (do_mouse_tracking)
          && CHARPOS (startp) > BEGV)
        {
          /* Make sure beg_unchanged and end_unchanged are up to date.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]