GNU logs - #72667, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72667: 31.0.50; gud-print moves the cursor after execution
Resent-From: TatriX <tatrics@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 16 Aug 2024 11:39:02 +0000
Resent-Message-ID: <handler.72667.B.1723808317971 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 72667
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 72667 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.1723808317971
          (code B ref -1); Fri, 16 Aug 2024 11:39:02 +0000
Received: (at submit) by debbugs.gnu.org; 16 Aug 2024 11:38:37 +0000
Received: from localhost ([127.0.0.1]:51788 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sevHw-0000Fa-L6
	for submit <at> debbugs.gnu.org; Fri, 16 Aug 2024 07:38:37 -0400
Received: from lists.gnu.org ([209.51.188.17]:54660)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tatrics@HIDDEN>) id 1sevHu-0000FP-I6
 for submit <at> debbugs.gnu.org; Fri, 16 Aug 2024 07:38:35 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <tatrics@HIDDEN>) id 1sevHI-0008MV-Mk
 for bug-gnu-emacs@HIDDEN; Fri, 16 Aug 2024 07:37:56 -0400
Received: from mail-pf1-x42c.google.com ([2607:f8b0:4864:20::42c])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <tatrics@HIDDEN>) id 1sevHG-0007Hl-Lt
 for bug-gnu-emacs@HIDDEN; Fri, 16 Aug 2024 07:37:56 -0400
Received: by mail-pf1-x42c.google.com with SMTP id
 d2e1a72fcca58-70d28023accso1531170b3a.0
 for <bug-gnu-emacs@HIDDEN>; Fri, 16 Aug 2024 04:37:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1723808273; x=1724413073; darn=gnu.org;
 h=to:subject:message-id:date:from:mime-version:from:to:cc:subject
 :date:message-id:reply-to;
 bh=B22dMt+NZTs2OwBr6EKQQJ7D7F5WpWmPos4Mb2RUGAk=;
 b=Coyvtzh1U0boJR6UOH/jFSuvRUMPDqFxQyJfk77C2uPdLMRf/VAAv5l+VHrvi186VE
 aUL1jO0Af1TK4JOUPV1OxlF6XuaHqTNoiGoa4aE9q9XDoO5PlklKs+Rp0lpTQdJWdVlT
 Rnbvdvf2hwMnWMu3dRe59ihgL3B62KM/8cUBSpTU8bBW+QXr5jNdcguquxfXgpCAJSyn
 0g0fHYjYSmLBTzZuDzJn+KhJwMNvoBt3foQ6GEvWh6waY+a9NxV+yd5fc0S6Kfmh3EGo
 G5563Hu9KPdCQCJggikga9+pJ8aIE45hWEF0b8Ri4yr5zliva1ZxSnYY4Sr9D8fMBqar
 JL8A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1723808273; x=1724413073;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=B22dMt+NZTs2OwBr6EKQQJ7D7F5WpWmPos4Mb2RUGAk=;
 b=JrH2GgyFeP77ig9TUElzBu/+Tti8PZ3nSp4PZUfILYPvelw3cqkbwC8bhO4e+RwQNP
 XOE4gW7gYyXOM9pyQcip/Zb3Np+RM69ip2sQwWhqtNZKNDjjHckODNT8WZ0JcKVkwZVH
 9l0c5eXlZvvQ22o7i5fMFRuXjB6qyupJxk/SclkkYDrJ18LWlMb2lDynBdAbMBhJfL/7
 0gGNiOnmQBLpfO7NbB6+ZQ5/ZMPLd17a4bmENjikcqYTG2eLjjq6Cpk1j8iek52K2Lyu
 r7vBfftdQQULR7mRXxfbSm4TLXWGOLGo7zoYqj+cw7mhxTdKkdIiJCgvFHeT+HNgiCkR
 6xJA==
X-Gm-Message-State: AOJu0Yx4zKup2K8Ms82bpPyQWrU92qDpDx/nutVVNOHO81ywIkmbpQSi
 OS9F45Ng4wbicMDS3ML3MPlj6usr4rS1zDnevuWX4QW5LiQ0bnSTnw6bGhavOycrrpEi7mNEkHc
 qoaYcgI/RjonJrQ2ACJ1eb0I4icFHOVK4
X-Google-Smtp-Source: AGHT+IHH3G4z5Vdi8X0n7q+hHZ43mApr7zh2IO6LYBXvr6TWurE6amv2a1AeMTicHdHb9yOFAfgLUjIFEWsrjub2i88=
X-Received: by 2002:a05:6a00:3c8d:b0:70d:1fbe:b96f with SMTP id
 d2e1a72fcca58-713c512799fmr3146323b3a.21.1723808272645; Fri, 16 Aug 2024
 04:37:52 -0700 (PDT)
MIME-Version: 1.0
From: TatriX <tatrics@HIDDEN>
Date: Fri, 16 Aug 2024 13:38:26 +0200
Message-ID: <CAG7LdX5uxYUx1VhuVTdPS2zXv7uBdzyTmS-WhjWaKoQ6qW50wA@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
Received-SPF: pass client-ip=2607:f8b0:4864:20::42c;
 envelope-from=tatrics@HIDDEN; helo=mail-pf1-x42c.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

When one runs `gud-print' with `C-x C-a C-p`, point moves to a line that
 is the debugger stopped at instead of staying where it was. I'm not
 sure if it is an intended behaviour. If it is, it would be very nice if
 one could override it, since I find that I want the point to keep it's
 position after I print a value. I can always run `C-x C-a C-l` to jump
 to the currently executing line.

Here's a an illustration. Suppose you have a program `test.c':

```
    int main() {
      int a = 42;
      int b = 13;
      int c = 69;
      return a + b + c;
    }
```

Which you can compile for example like this: `gcc -g -Wall -o test01 test.c'.
Now, if you stop execution at `int b', move the point to `int a' and run
`C-x C-a C-p' the point will jump back to `int b' instead of staying at
`int a'.

Thanks!

----------------------------------------------------------------------------


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.43, cairo version 1.18.0) of 2024-07-29 built on twork
Repository revision: e4d22abcab60ead179e7d114faa4c2def559cfbb
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101013
System Description: Arch Linux

Configured using:
 'configure --with-native-compilation=yes --with-xinput2
 --with-sound=alsa --without-compress-install --with-x-toolkit=gtk3
 --without-xaw3d --without-gconf --prefix=/usr --sysconfdir=/etc
 --libexecdir=/usr/lib --localstatedir=/var --mandir=/usr/share/man
 --with-gameuser=:games --with-modules --without-libotf
 --without-m17n-flt'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG
RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER
WEBP X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: C/*l

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr comp-run comp-common rx emacsbug message mailcap
yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache
epa derived epg rfc6068 epg-config gnus-util time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils gdb-mi
bindat byte-opt gv bytecomp byte-compile cl-seq gud files-x shell
pcomplete compile text-property-search comint ansi-osc ansi-color ring
make-mode subr-x cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles
cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib rmc iso-transl
tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd
touch-screen tool-bar dnd fontset image regexp-opt fringe tabulated-list
replace newcomment text-mode lisp-mode prog-mode register page tab-bar
menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse
jit-lock font-lock syntax font-core term/tty-colors frame minibuffer
nadvice seq simple cl-generic indonesian philippine cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop
case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar
make-network-process native-compile emacs)

Memory information:
((conses 16 123043 18359) (symbols 48 10095 0) (strings 32 28762 1928)
 (string-bytes 1 1007754) (vectors 16 15974)
 (vector-slots 8 212618 5364) (floats 8 34 1) (intervals 56 498 8)
 (buffers 992 20))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: TatriX <tatrics@HIDDEN>
Subject: bug#72667: Acknowledgement (31.0.50; gud-print moves the cursor
 after execution)
Message-ID: <handler.72667.B.1723808317971.ack <at> debbugs.gnu.org>
References: <CAG7LdX5uxYUx1VhuVTdPS2zXv7uBdzyTmS-WhjWaKoQ6qW50wA@HIDDEN>
X-Gnu-PR-Message: ack 72667
X-Gnu-PR-Package: emacs
Reply-To: 72667 <at> debbugs.gnu.org
Date: Fri, 16 Aug 2024 11:39:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 72667 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
72667: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72667
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72667: 31.0.50; gud-print moves the cursor after execution
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 17 Aug 2024 10:36:01 +0000
Resent-Message-ID: <handler.72667.B72667.172389092516869 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72667
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: TatriX <tatrics@HIDDEN>
Cc: 72667 <at> debbugs.gnu.org
Received: via spool by 72667-submit <at> debbugs.gnu.org id=B72667.172389092516869
          (code B ref 72667); Sat, 17 Aug 2024 10:36:01 +0000
Received: (at 72667) by debbugs.gnu.org; 17 Aug 2024 10:35:25 +0000
Received: from localhost ([127.0.0.1]:53590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sfGmL-0004O1-CD
	for submit <at> debbugs.gnu.org; Sat, 17 Aug 2024 06:35:25 -0400
Received: from eggs.gnu.org ([209.51.188.92]:45450)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sfGmI-0004Nj-Fw
 for 72667 <at> debbugs.gnu.org; Sat, 17 Aug 2024 06:35:23 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1sfGla-00045D-8b; Sat, 17 Aug 2024 06:34:38 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=qHlzmTwyT4wDrruJiyqteFfnofiYeK0nqp7C2uWQvjM=; b=RY36XQrkBNNA
 6nnySiA/dZIVHqpbhZ+wIru4sBjvxsxLZ10PJkagTkMXlblqrmGIDX9RqfpgAGW9n8AP9waac8wtj
 CH07vagjvRux8qfNbyUXznRFCh//C/TUXTUpSg+y0grHhykggWSvL+RazPHlawdozi4KG0803+QF6
 nuykWZHcqCj1iqLdawWXBZlJrtPYkReXFLUH6jOW1a6T2G3HA7fD8El/HLGsrbjWyCvF0oDLR/fID
 8WkJKz7sZi2kHFvb6xKs2q2Jg3bfxVqMbsTEedIgAESIV/IjuISnpoWUS+7PGeoSkTUC3oFFOXBEn
 7JYtJz6k+vr3UlN66YikVA==;
Date: Sat, 17 Aug 2024 13:34:26 +0300
Message-Id: <86jzgf30b1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <CAG7LdX5uxYUx1VhuVTdPS2zXv7uBdzyTmS-WhjWaKoQ6qW50wA@HIDDEN>
 (message from TatriX on Fri, 16 Aug 2024 13:38:26 +0200)
References: <CAG7LdX5uxYUx1VhuVTdPS2zXv7uBdzyTmS-WhjWaKoQ6qW50wA@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: TatriX <tatrics@HIDDEN>
> Date: Fri, 16 Aug 2024 13:38:26 +0200
> 
> When one runs `gud-print' with `C-x C-a C-p`, point moves to a line that
>  is the debugger stopped at instead of staying where it was. I'm not
>  sure if it is an intended behaviour. If it is, it would be very nice if
>  one could override it, since I find that I want the point to keep it's
>  position after I print a value. I can always run `C-x C-a C-l` to jump
>  to the currently executing line.
> 
> Here's a an illustration. Suppose you have a program `test.c':
> 
> ```
>     int main() {
>       int a = 42;
>       int b = 13;
>       int c = 69;
>       return a + b + c;
>     }
> ```
> 
> Which you can compile for example like this: `gcc -g -Wall -o test01 test.c'.
> Now, if you stop execution at `int b', move the point to `int a' and run
> `C-x C-a C-p' the point will jump back to `int b' instead of staying at
> `int a'.

I think this is an intentional feature: after each GUD command Emacs
returns point to the current line as indicated by the debugger.  The
intent is to keep the current line always visible on display.  Since
Emacs doesn't really understand the effect of debugger commands, it
must restore point after each such command.

May I ask why you use gud-print and not gud-tooltip-mode?  The latter
will allow you to show values of variables without moving point.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72667: 31.0.50; gud-print moves the cursor after execution
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 17 Aug 2024 14:19:01 +0000
Resent-Message-ID: <handler.72667.B72667.17239043169387 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72667
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: TatriX <tatrics@HIDDEN>
Cc: 72667 <at> debbugs.gnu.org
Received: via spool by 72667-submit <at> debbugs.gnu.org id=B72667.17239043169387
          (code B ref 72667); Sat, 17 Aug 2024 14:19:01 +0000
Received: (at 72667) by debbugs.gnu.org; 17 Aug 2024 14:18:36 +0000
Received: from localhost ([127.0.0.1]:54807 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sfKGJ-0002RL-Rp
	for submit <at> debbugs.gnu.org; Sat, 17 Aug 2024 10:18:36 -0400
Received: from eggs.gnu.org ([209.51.188.92]:42118)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sfKGI-0002R6-4l
 for 72667 <at> debbugs.gnu.org; Sat, 17 Aug 2024 10:18:34 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1sfKDT-0002eC-Mo; Sat, 17 Aug 2024 10:15:39 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=Mun3J+88JqQ+1yXyGzvxXl6bq0venFVrWDOPBxEr264=; b=KzgYvLdArcdg
 PcI/PV4Djb/kdpWSo2Zt8kcEWWOF3z/okInac++va7xBsQBU+hmcHeb8mrx0SjxAWGZ7kMJYuKRQH
 j702oCeHU3wjvWp3elNBnMG9X2se3WdNh0SYVJS/DRw3YMaZ2FTI90nZEcoRRw3k5X/rc74RUxe31
 4sz+/WVipQ1L2gRFI3W8MZxK3DFpM8lIVBxuGNY6Kehvnf/Sxmmrgg+S4NPIRAa8fUJ/u5vQBo6oT
 tk38j6UoXZq4yTZPzQFKnBx3v8PsvJY+gXGafk9K3h2gak9gfJhZAqls/guScd+szR5XfmumfVxLV
 Pe5G5mHvXt6YY8/DSXtSsg==;
Date: Sat, 17 Aug 2024 17:14:58 +0300
Message-Id: <86ttfj1bj1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <CAG7LdX7TYQRDag1Q4VPOLVGn5AsP8Y_OOvjp53Fssr19WjB-7g@HIDDEN>
 (message from TatriX on Sat, 17 Aug 2024 15:41:54 +0200)
References: <CAG7LdX5uxYUx1VhuVTdPS2zXv7uBdzyTmS-WhjWaKoQ6qW50wA@HIDDEN>
 <86jzgf30b1.fsf@HIDDEN>
 <CAG7LdX7TYQRDag1Q4VPOLVGn5AsP8Y_OOvjp53Fssr19WjB-7g@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

[Please use Reply All to reply, to keep the bug tracker CC'ed.]

> From: TatriX <tatrics@HIDDEN>
> Date: Sat, 17 Aug 2024 15:41:54 +0200
> 
> > May I ask why you use gud-print and not gud-tooltip-mode?  The latter
> > will allow you to show values of variables without moving point.
> 
> I do use it sometimes. Most of the time I just switch to *gud* buffer
> and print the values manually, which requires quite some window
> switching.
> 
> I suppose what I would prefer is to be able to run something similar to
> gud-print which would ask me for an expression, defaulting to whatever
> is near the point. Still, moving the point is undesirable since it
> changes what is in focus.
> 
> I tried to change the behavior myself, but couldn't find what actually
> moves the point.

I think it happens in gud-refresh.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72667: 31.0.50; gud-print moves the cursor after execution
Resent-From: TatriX <tatrics@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Sat, 17 Aug 2024 15:02:01 +0000
Resent-Message-ID: <handler.72667.B72667.172390688113731 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72667
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 72667 <at> debbugs.gnu.org
Received: via spool by 72667-submit <at> debbugs.gnu.org id=B72667.172390688113731
          (code B ref 72667); Sat, 17 Aug 2024 15:02:01 +0000
Received: (at 72667) by debbugs.gnu.org; 17 Aug 2024 15:01:21 +0000
Received: from localhost ([127.0.0.1]:54850 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sfKvg-0003ZO-MO
	for submit <at> debbugs.gnu.org; Sat, 17 Aug 2024 11:01:20 -0400
Received: from mail-pf1-f169.google.com ([209.85.210.169]:59760)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <tatrics@HIDDEN>) id 1sfKvd-0003Z9-Hg
 for 72667 <at> debbugs.gnu.org; Sat, 17 Aug 2024 11:01:19 -0400
Received: by mail-pf1-f169.google.com with SMTP id
 d2e1a72fcca58-710cad5778fso2462257b3a.3
 for <72667 <at> debbugs.gnu.org>; Sat, 17 Aug 2024 08:00:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1723906772; x=1724511572; darn=debbugs.gnu.org;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:from:to:cc:subject:date:message-id:reply-to;
 bh=FOF0SddKNoyUA+e6MiMSOBcEAAK8pz9BOlOR3XK9vP4=;
 b=T1e1n37csxsVkfvn1QydmFwfsuE6kSjOL05V9EN/PeeUU82+NmWuEnkG1SeXRK5H/5
 UcM7wuRfbyoqT22CoihfMRvGord2wYUHcLnla2nI8xfk9mL5bWITns79qhG400kr6DxK
 ZPEuq/Rxp4EYilOW7Lg2npCNSVv3jwxszok5E9EFIwHiBYu4Uq+7yIC2Eu+mPuKhy6GB
 1btyF2ZclIedcO+lbuutnsKkNnH79pMaFoG2aEvcZC/cbv4WuxYm0qL5T4FuwUvzGPwm
 63L4196WcDHrkpLl3YsRu6CEcNHYk6mXmhFVNQFDP8lzhkqwZVgqZKDILliARGC5U4zl
 Oo4w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1723906772; x=1724511572;
 h=cc:to:subject:message-id:date:from:in-reply-to:references
 :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to;
 bh=FOF0SddKNoyUA+e6MiMSOBcEAAK8pz9BOlOR3XK9vP4=;
 b=BFC5eXh/PVAcimsR+Cw1hNePrxBRuse/O5DGhUi2QlRKfbBIczgoK0Pooyw+Yj/uEK
 xhD+YTMxtCtB3q8rUfvlToj9u6y+BoS+5uyJXH8vwBJxoi/hrUwp7cry2f1KMZmAcs00
 FFbWlLkCvC5ICp8lvhNUx3MDvbfiSmAYwEjA7qIoYgUQcIMeMzLsMOxuNOcsgV017KgS
 mJ4sVkEYFWfxpbM0dDUyYt2YkqXKqPwF0jRk8MMF2ab4IH18dgv//VS2srHJxs1rQlfW
 F083b2U4PTjm7w/NFfwaQjOduvg+wzuWJv62oWFrjRT4WZRti4HqVg0Tojas5wHzghEe
 nv+Q==
X-Gm-Message-State: AOJu0Ywx8aMHmssup1crIYwIXMCgj3g4UV2ytYFpLkVrkMlcC/mZ6Xcp
 7lYBe/L4IezDqK8xmZWh7yMPBOnTtQ6Tt4UShppDrcSggXLzHW7YC4rhJ3xMKNdr5mq2mW/50Wg
 V/6oBqYbPiO4pI9CDAy7dcOg9vS0=
X-Google-Smtp-Source: AGHT+IEAgt/k8xNIKRbmBdujZRcpu+Zn6ZZinyZCfvk0Uf7mW1Xw5LfX+5xDkc6IJE5majxWXlRZ7YSKwbNLXbcNEbg=
X-Received: by 2002:a05:6a00:1a88:b0:70d:2621:5808 with SMTP id
 d2e1a72fcca58-713c4df20f1mr7402031b3a.9.1723906772503; Sat, 17 Aug 2024
 07:59:32 -0700 (PDT)
MIME-Version: 1.0
References: <CAG7LdX5uxYUx1VhuVTdPS2zXv7uBdzyTmS-WhjWaKoQ6qW50wA@HIDDEN>
 <86jzgf30b1.fsf@HIDDEN>
 <CAG7LdX7TYQRDag1Q4VPOLVGn5AsP8Y_OOvjp53Fssr19WjB-7g@HIDDEN>
 <86ttfj1bj1.fsf@HIDDEN>
In-Reply-To: <86ttfj1bj1.fsf@HIDDEN>
From: TatriX <tatrics@HIDDEN>
Date: Sat, 17 Aug 2024 16:59:21 +0200
Message-ID: <CAG7LdX4wTZjyvRymSXF7N7_jY5xQYxYSRObG8o_pJA7pjYqmaA@HIDDEN>
Content-Type: text/plain; charset="UTF-8"
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

> I think it happens in gud-refresh.

I thought that too, but at least when I edebug-it, debugger doesn't stop
in it.

It looks like it happens during one of the invocations of gud-filter
after gud-call send the data to the gdb.

Point moves when gud-marker-filter which is set to
gud-gdbmi-marker-filter is called.  Which in turns call gdbmi-bnf-output
and it seems that the point moves in gdbmi-bnf-out-of-band-record.

The callstack is quite deep and there are a lot of loops, so I wasn't
able to pin point a specific piece of code that actually moves the point
yet.





Last modified: Sun, 12 Jan 2025 05:45:02 UTC

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