From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61453: It is annoying to have to type 'print foo' before each .gdbinit command. Date: Sun, 12 Feb 2023 15:08:52 +0200 Message-ID: <83mt5jghej.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12141"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61453@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 12 14:10:13 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRC7R-0002zs-JP for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 14:10:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRC7H-0007pw-Hg; Sun, 12 Feb 2023 08:10:03 -0500 Original-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 ) id 1pRC7G-0007pg-Bh for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 08:10:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pRC7G-0008Sn-14 for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 08:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRC7F-0003iv-Ni for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 08:10:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Feb 2023 13:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61453 X-GNU-PR-Package: emacs Original-Received: via spool by 61453-submit@debbugs.gnu.org id=B61453.167620736514248 (code B ref 61453); Sun, 12 Feb 2023 13:10:01 +0000 Original-Received: (at 61453) by debbugs.gnu.org; 12 Feb 2023 13:09:25 +0000 Original-Received: from localhost ([127.0.0.1]:44351 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRC6f-0003hi-5w for submit@debbugs.gnu.org; Sun, 12 Feb 2023 08:09:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRC6d-0003hU-Qk for 61453@debbugs.gnu.org; Sun, 12 Feb 2023 08:09:24 -0500 Original-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 ) id 1pRC6Y-0008KT-D8; Sun, 12 Feb 2023 08:09:18 -0500 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=Kt3MLzavzQVypF7qgV4EJqEypKYQ7W8xSabTDWGII5E=; b=lgr0+wF7trHc wWkbT8jE4YFHzUK0li07iyPE7FOJMlWLg6Kz1/BNxsDJYaWwkwVEm3mSCLQQ7qeJYh+gAKAqcY6Pl gSAvp5xEzy0U+u9Vy7K83ogA17Fwp39xLfRhaiZ379e4W8pnBJvuRaAz3/Rvpq3Uoc3/nwJvuzXll jinWVT/YyUfCbgSEHzObmES5VJAS2MjvR7yrsT5MsI/E7jZPIJvsa2EFPbFfxs6Rwd4jepApKd6u2 AAAefPx88f80haOmzc7Wko47QdZ5Bvrb8ZjdVfSXzWWJCawqcY2BaP2+szEHd5kF60kZKWUTYqeHJ qZfxfM4DyFBc0U/KirDsEw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRC6X-0005IR-TV; Sun, 12 Feb 2023 08:09:18 -0500 In-Reply-To: (message from Alan Mackenzie on Sun, 12 Feb 2023 13:01:57 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255409 Archived-At: > Date: Sun, 12 Feb 2023 13:01:57 +0000 > From: Alan Mackenzie > > In a GDB session, whilst debugging Emacs, it is common to want to print, > for example, the current value of Lisp variable foo. At the moment, one > has to type > > p foo > xpr > > .. This need, continually to type p (or print) is irritating. It should > be possible simply to type > > xpr foo > > .. The same applies to many other commands in .gdbinit. > > The following patch fixes this irritation. It allows a user to type xpr > foo, yet also preserves the old version with no arguments, which can be > handy, sometimes. > > I propose this patch be applied to the master branch. What's wrong with the existing "pp" command? I think it covers all your needs, and doesn't need any changes to existing xFOO commands.