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 20:33:07 +0200 Message-ID: <831qmuhgyk.fsf@gnu.org> References: <83mt5jghej.fsf@gnu.org> <83k00ngeu8.fsf@gnu.org> <83fsbbgcra.fsf@gnu.org> <838rh2hmbh.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33761"; 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 19:34: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 1pRHAy-0008X3-Pj for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 19:34:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRHAp-0000XX-PT; Sun, 12 Feb 2023 13:34: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 1pRHAo-0000XA-R9 for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 13:34: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 1pRHAo-0003PP-GM for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 13:34:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRHAo-0004Ui-CK for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 13:34:02 -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 18:34:02 +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.167622682117231 (code B ref 61453); Sun, 12 Feb 2023 18:34:02 +0000 Original-Received: (at 61453) by debbugs.gnu.org; 12 Feb 2023 18:33:41 +0000 Original-Received: from localhost ([127.0.0.1]:46724 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRHAS-0004Tr-OG for submit@debbugs.gnu.org; Sun, 12 Feb 2023 13:33:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57610) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRHAR-0004Ta-9E for 61453@debbugs.gnu.org; Sun, 12 Feb 2023 13:33:39 -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 1pRHAL-0003N6-Py; Sun, 12 Feb 2023 13:33:33 -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=x7ai9NzvQUwzeLfZg2djBi0lmSGWBhHq1/JAUC1KZUI=; b=qxCDj8An0Kq8 J0Mn8TohvSLMtF5LK2IzxN2TP6lL+ayfgzDxfkBcoHydWXYZq+eYCAUMdWKzR30zTh2ALCFS0qAl0 eo/Sd69PZdgGJ0DuqShhm52FBSa/33gecvcPpVhKbLYdh28yNs1UZ2Wt3OYE070JCGk6nynzWCLQC i3qxIrQbO2Xlm9oFeV4P9QVCEf7PpxovJkx2d6fuDzLaU1xj5pt2W/2gnE2csp5QFL8lyDAPck9hi TpiQK3t9Cd3Aial2h/RLTlUQB48kBuJQ7r3sZNAuYkpPRByIstdjbkfNt+eqxVNnx2tbsgXlnOY2K ofFmj6YPQLUuMUCjy48nmg==; 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 1pRHAL-0007eT-9j; Sun, 12 Feb 2023 13:33:33 -0500 In-Reply-To: (message from Alan Mackenzie on Sun, 12 Feb 2023 18:23:36 +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:255433 Archived-At: > Date: Sun, 12 Feb 2023 18:23:36 +0000 > Cc: 61453@debbugs.gnu.org, acm@muc.de > From: Alan Mackenzie > > > Which is why we also have "pr". > > OK, but that doesn't help with the annoyance in xpr and friends. > Anybody typing an expression with spaces into xpr can continue to use > print followed by xpr without arguments. For the usual case, when > there's exactly one argument, my patch resolves the annoyance. It now > handles the $argc > 1 case as an error. > > So, why not install this patch in master, now? I don't like it, sorry. It is not clean enough, and it goes against the overall consistency of the commands we have in src/.gdbinit. You can always have any commands you want in your own ~/.gdbinit.