GNU bug report logs - #51343
27.2; Xaw3d scrollbar thumb doesn't update while dragged

Previous Next

Package: emacs;

Reported by: Po Lu <luangruo <at> yahoo.com>

Date: Sat, 23 Oct 2021 07:34:01 UTC

Severity: normal

Tags: confirmed

Found in version 27.2

To reply to this bug, email your comments to 51343 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sat, 23 Oct 2021 07:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Po Lu <luangruo <at> yahoo.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 23 Oct 2021 07:34:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
Date: Sat, 23 Oct 2021 15:32:48 +0800
Previously, in an Emacs built with Xaw3d scroll bars, the thumb
proportion would update as the scrollbar was dragged.  Now it doesn't
update until the scrollbar is released, and something that makes the
scrollbar position change happens.

Thanks.

In GNU Emacs 27.2 (build 2, i386-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2021-10-21 built on vendetta
Windowing system distributor 'The X.Org Foundation', version 11.0.12101001

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.

Configured using:
'configure --prefix=/opt/gsb'

Configured features:
XAW3D XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GCONF GLIB ACL
LIBSELINUX LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS LUCID X11 XDBE
XIM MODULES THREADS PDUMPER 




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sat, 23 Oct 2021 08:25:02 GMT) Full text and rfc822 format available.

Message #8 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2;
 Xaw3d scrollbar thumb doesn't update while dragged
Date: Sat, 23 Oct 2021 11:24:18 +0300
> Date: Sat, 23 Oct 2021 15:32:48 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Previously, in an Emacs built with Xaw3d scroll bars, the thumb
> proportion would update as the scrollbar was dragged.  Now it doesn't
> update until the scrollbar is released, and something that makes the
> scrollbar position change happens.

Could you please bisect to find the commit which changed that?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sat, 23 Oct 2021 09:58:01 GMT) Full text and rfc822 format available.

Message #11 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Sat, 23 Oct 2021 17:56:52 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> Could you please bisect to find the commit which changed that?

Do you mean `git bisect'?  I tried using it for Emacs not long ago, but
after a while odd build errors started cropping up.

Eventually, I got to a point where I had to run `make bootstrap' before
each build, and it started taking too long.

Is there anything in particular that I'm missing and can be used to
speed up the build?  Thanks in advance.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sat, 23 Oct 2021 11:51:02 GMT) Full text and rfc822 format available.

Message #14 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Sat, 23 Oct 2021 14:50:00 +0300
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: 51343 <at> debbugs.gnu.org
> Date: Sat, 23 Oct 2021 17:56:52 +0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Could you please bisect to find the commit which changed that?
> 
> Do you mean `git bisect'?

Yes.

> I tried using it for Emacs not long ago, but after a while odd build
> errors started cropping up.
> 
> Eventually, I got to a point where I had to run `make bootstrap' before
> each build, and it started taking too long.
> 
> Is there anything in particular that I'm missing and can be used to
> speed up the build?  Thanks in advance.

"make -j10 bootstrap", perhaps?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sat, 23 Oct 2021 12:36:01 GMT) Full text and rfc822 format available.

Message #17 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Sat, 23 Oct 2021 20:35:28 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> "make -j10 bootstrap", perhaps?

Sadly, I don't have the luxury of a processor with 10 execution units,
at least on the machine that exhibited the problem.  Plain -j2 will have
to do.

But I will bisect tomorrow and let you know the results.  Thanks :)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sat, 23 Oct 2021 14:18:02 GMT) Full text and rfc822 format available.

Message #20 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 51343 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#51343: 27.2;
 Xaw3d scrollbar thumb doesn't update while dragged
Date: Sat, 23 Oct 2021 10:16:51 -0400
Po Lu wrote:

> Is there anything in particular that I'm missing and can be used to
> speed up the build?

You don't need to compile all the lisp files for this kind of problem.
For bisecting, I use:

make maintainer-clean >& /dev/null
autoreconf -fi -I m4
./configure [...] --cache-file=/tmp/ccache
make -C lib [-j #] all
make -C src [-j #] emacs




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sun, 24 Oct 2021 02:16:02 GMT) Full text and rfc822 format available.

Message #23 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 51343 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Sun, 24 Oct 2021 10:15:02 +0800
Glenn Morris <rgm <at> gnu.org> writes:

> You don't need to compile all the lisp files for this kind of problem.
> For bisecting, I use:
>
> make maintainer-clean >& /dev/null
> autoreconf -fi -I m4
> ./configure [...] --cache-file=/tmp/ccache
> make -C lib [-j #] all
> make -C src [-j #] emacs

Thanks, this helped a lot.

This problem exists all the way back to Emacs 25, and probably earlier.
However, at that point, I wasn't able to continue building Emacs on my
system, probably due to some functions for peeking at file streams being
removed from glibc.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sun, 24 Oct 2021 06:17:02 GMT) Full text and rfc822 format available.

Message #26 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: rgm <at> gnu.org, 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Sun, 24 Oct 2021 09:16:27 +0300
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  51343 <at> debbugs.gnu.org
> Date: Sun, 24 Oct 2021 10:15:02 +0800
> 
> This problem exists all the way back to Emacs 25, and probably earlier.

Thanks.  Can you try figuring out in which released Emacs version this
started happening?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sun, 24 Oct 2021 06:29:02 GMT) Full text and rfc822 format available.

Message #29 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rgm <at> gnu.org, 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Sun, 24 Oct 2021 14:28:35 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> Thanks.  Can you try figuring out in which released Emacs version this
> started happening?

Sometime between 23.4 and 25.1.  I built 23.4 with the Gentoo patches
(strictly limited to resolving build problems), and it seems to work
fine, but this functionality is broken in 25.1.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sun, 24 Oct 2021 07:02:01 GMT) Full text and rfc822 format available.

Message #32 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Sun, 24 Oct 2021 10:01:18 +0300
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: rgm <at> gnu.org,  51343 <at> debbugs.gnu.org
> Date: Sun, 24 Oct 2021 14:28:35 +0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > Thanks.  Can you try figuring out in which released Emacs version this
> > started happening?
> 
> Sometime between 23.4 and 25.1.  I built 23.4 with the Gentoo patches
> (strictly limited to resolving build problems), and it seems to work
> fine, but this functionality is broken in 25.1.

Thanks, I guess this means you have to step with a debugger into
x_set_toolkit_scroll_bar_thumb and see when it is called and what
values it produces, and perhaps compare between 23.4 and the current
code base.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sun, 24 Oct 2021 09:48:01 GMT) Full text and rfc822 format available.

Message #35 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Sun, 24 Oct 2021 17:47:39 +0800
Eli Zaretskii <eliz <at> gnu.org> writes:

> Thanks, I guess this means you have to step with a debugger into
> x_set_toolkit_scroll_bar_thumb and see when it is called and what
> values it produces, and perhaps compare between 23.4 and the current
> code base.

The Athena code in x_set_toolkit_scroll_bar_thumb has stayed the same
over those releases, and they are called under almost the same
circumstances in both releases.  IOW, XawScrollbarSetThumb is called
with the appropriate value in both releases, so that's not the problem
here.

I'm at a loss, and I don't know what else could possibly be affecting
this.  Perhaps someone else knows what the problem might be?

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Sun, 19 Dec 2021 17:08:01 GMT) Full text and rfc822 format available.

Message #38 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Sun, 19 Dec 2021 12:07:27 -0500
Po Lu [2021-10-23 15:32:48] wrote:
> Previously, in an Emacs built with Xaw3d scroll bars, the thumb
> proportion would update as the scrollbar was dragged.  Now it doesn't
> update until the scrollbar is released, and something that makes the
> scrollbar position change happens.

To give you some context:

Many years ago, I spent a fair bit of time trying to get scrollbars
working "right".  It's a major pain in the ass, because most toolkits
don't support our requirements: once the bottom of the thumb hits the
bottom of its course it stops there, but the corresponding top part of
the thumb may correspond to a window-start which leads to a screen where
point-max is not visible (in response to which we'd reduce the size of
the thumb, but that happens too late (either because the toolkit has
already decided not to tell us that the user's mouse was trying to go
further, or because the toolkit doesn't support updating the thumb size
while dragging it).

There was a simple patch to Xaw3d which made it behave more like Xaw (by
making the Xaw3d more like Xaw's) and made the whole thing work
perfectly for us, but it was never accepted upstream because it went
against their philosophy of what "the metaphor should be".


        Stefan





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Mon, 20 Dec 2021 01:08:01 GMT) Full text and rfc822 format available.

Message #41 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Mon, 20 Dec 2021 09:07:20 +0800
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> Po Lu [2021-10-23 15:32:48] wrote:
>> Previously, in an Emacs built with Xaw3d scroll bars, the thumb
>> proportion would update as the scrollbar was dragged.  Now it doesn't
>> update until the scrollbar is released, and something that makes the
>> scrollbar position change happens.
>
> To give you some context:
>
> Many years ago, I spent a fair bit of time trying to get scrollbars
> working "right".  It's a major pain in the ass, because most toolkits
> don't support our requirements: once the bottom of the thumb hits the
> bottom of its course it stops there, but the corresponding top part of
> the thumb may correspond to a window-start which leads to a screen where
> point-max is not visible (in response to which we'd reduce the size of
> the thumb, but that happens too late (either because the toolkit has
> already decided not to tell us that the user's mouse was trying to go
> further, or because the toolkit doesn't support updating the thumb size
> while dragging it).
>
> There was a simple patch to Xaw3d which made it behave more like Xaw (by
> making the Xaw3d more like Xaw's) and made the whole thing work
> perfectly for us, but it was never accepted upstream because it went
> against their philosophy of what "the metaphor should be".

This particular feature used to work in Emacs 23 though, so that can't
be the entirety of the problem.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Tue, 21 Dec 2021 01:05:02 GMT) Full text and rfc822 format available.

Message #44 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Tue, 21 Dec 2021 09:04:04 +0800
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> My crystal ball suggests 6ca5360192fbe50abd5e43ba2ed28aa115af4d65 as the
> cause for this change.

That worked for old versions of Xaw3d, but setting scroll_mode manually
is enough to make recent versions of Xaw3d crash.

Besides, it worked in Emacs 23, which that code wasn't in.
Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#51343; Package emacs. (Tue, 13 Sep 2022 15:02:02 GMT) Full text and rfc822 format available.

Message #47 received at 51343 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 51343 <at> debbugs.gnu.org
Subject: Re: bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while
 dragged
Date: Tue, 13 Sep 2022 17:00:54 +0200
Po Lu <luangruo <at> yahoo.com> writes:

> Previously, in an Emacs built with Xaw3d scroll bars, the thumb
> proportion would update as the scrollbar was dragged.  Now it doesn't
> update until the scrollbar is released, and something that makes the
> scrollbar position change happens.

I can reproduce this in Emacs 29 with

./configure --with-x-toolkit=athena

and a buffer that contains alternating blocks of short/long lines.




Added tag(s) confirmed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Tue, 13 Sep 2022 15:02:02 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 283 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.