unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
       [not found] <878ryk9owv.fsf.ref@yahoo.com>
@ 2021-10-23  7:32 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23  8:24   ` Eli Zaretskii
                     ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-23  7:32 UTC (permalink / raw)
  To: 51343


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 





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-23  7:32 ` bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-23  8:24   ` Eli Zaretskii
  2021-10-23  9:56     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-19 17:07   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13 15:00   ` Lars Ingebrigtsen
  2 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2021-10-23  8:24 UTC (permalink / raw)
  To: Po Lu; +Cc: 51343

> 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@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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-23  8:24   ` Eli Zaretskii
@ 2021-10-23  9:56     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23 11:50       ` Eli Zaretskii
  2021-10-23 14:16       ` Glenn Morris
  0 siblings, 2 replies; 15+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-23  9:56 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 51343

Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-23  9:56     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-23 11:50       ` Eli Zaretskii
  2021-10-23 12:35         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23 14:16       ` Glenn Morris
  1 sibling, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2021-10-23 11:50 UTC (permalink / raw)
  To: Po Lu; +Cc: 51343

> From: Po Lu <luangruo@yahoo.com>
> Cc: 51343@debbugs.gnu.org
> Date: Sat, 23 Oct 2021 17:56:52 +0800
> 
> Eli Zaretskii <eliz@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?





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-23 11:50       ` Eli Zaretskii
@ 2021-10-23 12:35         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 15+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-23 12:35 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 51343

Eli Zaretskii <eliz@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 :)





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-23  9:56     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23 11:50       ` Eli Zaretskii
@ 2021-10-23 14:16       ` Glenn Morris
  2021-10-24  2:15         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 15+ messages in thread
From: Glenn Morris @ 2021-10-23 14:16 UTC (permalink / raw)
  To: Po Lu; +Cc: 51343

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





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-23 14:16       ` Glenn Morris
@ 2021-10-24  2:15         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-24  6:16           ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-24  2:15 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 51343, Eli Zaretskii

Glenn Morris <rgm@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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-24  2:15         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-24  6:16           ` Eli Zaretskii
  2021-10-24  6:28             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2021-10-24  6:16 UTC (permalink / raw)
  To: Po Lu; +Cc: rgm, 51343

> From: Po Lu <luangruo@yahoo.com>
> Cc: Eli Zaretskii <eliz@gnu.org>,  51343@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?





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-24  6:16           ` Eli Zaretskii
@ 2021-10-24  6:28             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-24  7:01               ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-24  6:28 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: rgm, 51343

Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-24  6:28             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-10-24  7:01               ` Eli Zaretskii
  2021-10-24  9:47                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2021-10-24  7:01 UTC (permalink / raw)
  To: Po Lu; +Cc: 51343

> From: Po Lu <luangruo@yahoo.com>
> Cc: rgm@gnu.org,  51343@debbugs.gnu.org
> Date: Sun, 24 Oct 2021 14:28:35 +0800
> 
> Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-24  7:01               ` Eli Zaretskii
@ 2021-10-24  9:47                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 15+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-10-24  9:47 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: 51343

Eli Zaretskii <eliz@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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-23  7:32 ` bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23  8:24   ` Eli Zaretskii
@ 2021-12-19 17:07   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-12-20  1:07     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-09-13 15:00   ` Lars Ingebrigtsen
  2 siblings, 1 reply; 15+ messages in thread
From: Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-19 17:07 UTC (permalink / raw)
  To: Po Lu; +Cc: 51343

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






^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-12-19 17:07   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2021-12-20  1:07     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
       [not found]       ` <jwvv8zj8jb1.fsf-monnier+emacs@gnu.org>
  0 siblings, 1 reply; 15+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-20  1:07 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 51343

Stefan Monnier <monnier@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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
       [not found]       ` <jwvv8zj8jb1.fsf-monnier+emacs@gnu.org>
@ 2021-12-21  1:04         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 15+ messages in thread
From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2021-12-21  1:04 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: 51343

Stefan Monnier <monnier@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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

* bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged
  2021-10-23  7:32 ` bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2021-10-23  8:24   ` Eli Zaretskii
  2021-12-19 17:07   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-09-13 15:00   ` Lars Ingebrigtsen
  2 siblings, 0 replies; 15+ messages in thread
From: Lars Ingebrigtsen @ 2022-09-13 15:00 UTC (permalink / raw)
  To: Po Lu; +Cc: 51343

Po Lu <luangruo@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.





^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-09-13 15:00 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <878ryk9owv.fsf.ref@yahoo.com>
2021-10-23  7:32 ` bug#51343: 27.2; Xaw3d scrollbar thumb doesn't update while dragged Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23  8:24   ` Eli Zaretskii
2021-10-23  9:56     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 11:50       ` Eli Zaretskii
2021-10-23 12:35         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 14:16       ` Glenn Morris
2021-10-24  2:15         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-24  6:16           ` Eli Zaretskii
2021-10-24  6:28             ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-24  7:01               ` Eli Zaretskii
2021-10-24  9:47                 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-19 17:07   ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-20  1:07     ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
     [not found]       ` <jwvv8zj8jb1.fsf-monnier+emacs@gnu.org>
2021-12-21  1:04         ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-13 15:00   ` Lars Ingebrigtsen

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).