Subject: Re: bug#6854: 23.1; Highlighted region after dragging scrollbar

From: Jan Djärv <[email-masked]>
Date: Sat, 14 Aug 2010 08:57:30 +0200

This is a known problem with Emacs 23.1 and newer Gtk+ versions, it has been 
fixed in 23.2.

You can set GDK_NATIVE_WINDOWS to 1 in your environment, or just for Emacs:

% GDK_NATIVE_WINDOWS=1 emacs ...

to work around it if you can't upgrade to 23.2.

	Jan D.

John Smith skrev 2010-08-14 02.12:
> Dragging the scrollbar causes the region between where the cursor was and it's
> final position to be highlighted.
>
>
> In GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.0)
>   of 2010-03-29 on yellow, modified by Debian
> Windowing system distributor `The X.Org Foundation', version 11.0.10706000
> configured using `configure '--build=x86_64-linux-gnu'
> '--host=x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib'
> '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info'
> '--mandir=/usr/share/man' '--with-pop=yes'
> '--enable-locallisppath=/etc/emacs23:/etc/emacs:/usr/local/share/emacs/23.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/23.1/site-lisp:/usr/share/emacs/site-lisp:/usr/share/emacs/23.1/leim'
> '--with-x=yes' '--with-x-toolkit=gtk' '--with-toolkit-scroll-bars'
> 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN
> -g -O2' 'LDFLAGS=-g' 'CPPFLAGS=''
>
> Important settings:
>    value of $LC_ALL: nil
>    value of $LC_COLLATE: nil
>    value of $LC_CTYPE: nil
>    value of $LC_MESSAGES: nil
>    value of $LC_MONETARY: nil
>    value of $LC_NUMERIC: nil
>    value of $LC_TIME: nil
>    value of $LANG: en_US.utf8
>    value of $XMODIFIERS: nil
>    locale-coding-system: utf-8-unix
>    default-enable-multibyte-characters: t
>
> Major mode: Fundamental
>
> Minor modes in effect:
>    tooltip-mode: t
>    tool-bar-mode: t
>    mouse-wheel-mode: t
>    menu-bar-mode: t
>    file-name-shadow-mode: t
>    global-font-lock-mode: t
>    blink-cursor-mode: t
>    global-auto-composition-mode: t
>    auto-encryption-mode: t
>    auto-compression-mode: t
>    line-number-mode: t
>    transient-mark-mode: t
>
> Recent input:
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <down-mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <drag-mouse-1> <down-mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <drag-mouse-1> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <down-mouse-1> <mouse-1> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <down-mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <mouse-1>
> <mouse-1> <mouse-1> <mouse-1> <mouse-1> <drag-mouse-1>
> <help-echo> <down-mouse-1> <mouse-1> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
> <help-echo> <help-echo> <help-echo> M-x r e p o <tab>
> r t <tab> <return>
>
> Recent messages:
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Mark set [3 times]
> Making completion list...