GNU bug report logs - #61453
It is annoying to have to type 'print foo' before each .gdbinit command.

Previous Next

Package: emacs;

Reported by: Alan Mackenzie <acm <at> muc.de>

Date: Sun, 12 Feb 2023 13:03:01 UTC

Severity: normal

Tags: wontfix

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


Message #32 received at 61453 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Alan Mackenzie <acm <at> muc.de>
Cc: 61453 <at> debbugs.gnu.org
Subject: Re: bug#61453: It is annoying to have to type 'print foo' before
 each .gdbinit command.
Date: Sun, 12 Feb 2023 20:33:07 +0200
> Date: Sun, 12 Feb 2023 18:23:36 +0000
> Cc: 61453 <at> debbugs.gnu.org, acm <at> muc.de
> From: Alan Mackenzie <acm <at> muc.de>
> 
> > 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.




This bug report was last modified 2 years and 102 days ago.

Previous Next


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