From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie 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 18:23:36 +0000 Message-ID: References: <83mt5jghej.fsf@gnu.org> <83k00ngeu8.fsf@gnu.org> <83fsbbgcra.fsf@gnu.org> <838rh2hmbh.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26231"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acm@muc.de, 61453@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 12 19:24:17 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 1pRH1N-0006eP-GA for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 19:24:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRH1A-0006xx-TQ; Sun, 12 Feb 2023 13:24:04 -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 1pRH18-0006xM-IJ for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 13:24: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 1pRH18-0001m0-9H for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 13:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pRH18-0004An-4S for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2023 13:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Feb 2023 18:24: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.167622622516018 (code B ref 61453); Sun, 12 Feb 2023 18:24:02 +0000 Original-Received: (at 61453) by debbugs.gnu.org; 12 Feb 2023 18:23:45 +0000 Original-Received: from localhost ([127.0.0.1]:46713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRH0r-0004AH-94 for submit@debbugs.gnu.org; Sun, 12 Feb 2023 13:23:45 -0500 Original-Received: from mx3.muc.de ([193.149.48.5]:33191) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pRH0o-00049x-EQ for 61453@debbugs.gnu.org; Sun, 12 Feb 2023 13:23:43 -0500 Original-Received: (qmail 99962 invoked by uid 3782); 12 Feb 2023 19:23:36 +0100 Original-Received: from acm.muc.de (pd953a525.dip0.t-ipconnect.de [217.83.165.37]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 12 Feb 2023 19:23:36 +0100 Original-Received: (qmail 10998 invoked by uid 1000); 12 Feb 2023 18:23:36 -0000 Content-Disposition: inline In-Reply-To: <838rh2hmbh.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de 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:255431 Archived-At: Hello, Eli. On Sun, Feb 12, 2023 at 18:37:22 +0200, Eli Zaretskii wrote: > > Date: Sun, 12 Feb 2023 16:14:49 +0000 > > Cc: 61453@debbugs.gnu.org, acm@muc.de > > From: Alan Mackenzie > > > How will this help? You will ask people to deliberately remove any > > > delimiters from what they type? That's a terrible annoyance. It > > > means, for example, that you cannot simply copy/paste code fragments. > > It seems that the same problem exists with pp. > 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? -- Alan Mackenzie (Nuremberg, Germany).