GNU bug report logs -
#45052
27.1; GDB completion moves point
Previous Next
Reported by: "Philip K." <philipk <at> posteo.net>
Date: Sat, 5 Dec 2020 12:11:01 UTC
Severity: normal
Found in version 27.1
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: "Philip K." <philipk <at> posteo.net>
> Cc: 45052 <at> debbugs.gnu.org
> Date: Sat, 05 Dec 2020 15:48:01 +0100
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> It seems to work, and I can't see any unintended side-effects!
> >
> > Thanks. If you use gdb-mi.el a lot, how about if you run with this
> > change for a week and report back if you saw any adverse effects?
> > Then I'll install this if no problems are uncovered.
>
> Will do. And thanks for finding the bug!
Not a bug, more like an unintended consequence. The completion
machinery happens in this case to call the gdb-mi handlers for
processing responses to GDB commands, and those handlers force
redisplay to show the GUD window with the same window-start point,
which is impossible when the completions window pops up and point is
close to the bottom of the GUD window. So I made the window-start
setting less forceful. My fear is that when those handlers are called
in other situations, you will now see sub-optimal display after
sending GDB commands. So please pay attention to any such effects on
the gdb-mi related windows.
If my "simple" solution has adverse effects, we will need to come up
with a more thorough one, which will likely require changes on the C
level.
Martin, do we have any way of preventing the original problem via
display-buffer actions, per chance? I couldn't find anything to that
effect, FWIW.
This bug report was last modified 4 years and 154 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.