GNU bug report logs - #20106
25.0.50 pdb shuns init

Previous Next

Package: emacs;

Reported by: Andreas Röhler <andreas.roehler <at> easy-emacs.de>

Date: Sat, 14 Mar 2015 09:38:02 UTC

Severity: wishlist

Tags: moreinfo

Found in version 25.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20106 in the body.
You can then email your comments to 20106 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20106; Package emacs. (Sat, 14 Mar 2015 09:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 14 Mar 2015 09:38:02 GMT) Full text and rfc822 format available.

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

From: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50 pdb shuns init
Date: Sat, 14 Mar 2015 10:47:59 +0100
gud.el


While gud-query-cmdline would accept the file-name to debug as argument

(defun gud-query-cmdline (minor-mode &optional init)

don't see how to hand it over from pdb

 (defun pdb (command-line)
  "[...]"
  (interactive
   (list (gud-query-cmdline 'pdb)))


Cheers,

Andreas




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#20106; Package emacs. (Fri, 02 Aug 2019 12:45:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Cc: 20106 <at> debbugs.gnu.org
Subject: Re: bug#20106: 25.0.50 pdb shuns init
Date: Fri, 02 Aug 2019 14:44:19 +0200
Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:

> gud.el
>
> While gud-query-cmdline would accept the file-name to debug as argument
>
> (defun gud-query-cmdline (minor-mode &optional init)
>
> don't see how to hand it over from pdb
>
>  (defun pdb (command-line)
>   "[...]"
>   (interactive
>    (list (gud-query-cmdline 'pdb)))

(I'm going through old bug reports that unfortunately have not received
any responses yet.)

(defun pdb (command-line)
  "Run pdb on program FILE in buffer `*gud-FILE*'.
The directory containing FILE becomes the initial working directory
and source-file directory for your debugger."
  (interactive
   (list (gud-query-cmdline 'pdb)))

That's a confusing doc string.  I think it means to say that it'll
prompt for a pdb command line, and that command line will include a file
name?  Testing seems to say that that's the case, and I'll adjust the
doc string in Emacs 27.

But I'm not quite sure what you want to have done here.  Do you want to
pass a file name to `gud-query-cmdline'?  That's what INIT in that
function is used for, but I'm not sure that really makes much sense --
when used interactively, you're prompted for the entire command, and
when called noninteractively, you can just pass in whatever command you
want, including the file.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) moreinfo. Request was from Stefan Kangas <stefan <at> marxist.se> to control <at> debbugs.gnu.org. (Fri, 13 Sep 2019 11:08:01 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefan <at> marxist.se>:
You have taken responsibility. (Sun, 15 Dec 2019 20:12:01 GMT) Full text and rfc822 format available.

Notification sent to Andreas Röhler <andreas.roehler <at> easy-emacs.de>:
bug acknowledged by developer. (Sun, 15 Dec 2019 20:12:02 GMT) Full text and rfc822 format available.

Message #15 received at 20106-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 20106-done <at> debbugs.gnu.org,
 Andreas Röhler <andreas.roehler <at> easy-emacs.de>
Subject: Re: bug#20106: 25.0.50 pdb shuns init
Date: Sun, 15 Dec 2019 21:11:46 +0100
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Andreas Röhler <andreas.roehler <at> easy-emacs.de> writes:
>
>> gud.el
>>
>> While gud-query-cmdline would accept the file-name to debug as argument
>>
>> (defun gud-query-cmdline (minor-mode &optional init)
>>
>> don't see how to hand it over from pdb
>>
>>  (defun pdb (command-line)
>>   "[...]"
>>   (interactive
>>    (list (gud-query-cmdline 'pdb)))
>
> (I'm going through old bug reports that unfortunately have not received
> any responses yet.)
>
> (defun pdb (command-line)
>   "Run pdb on program FILE in buffer `*gud-FILE*'.
> The directory containing FILE becomes the initial working directory
> and source-file directory for your debugger."
>   (interactive
>    (list (gud-query-cmdline 'pdb)))
>
> That's a confusing doc string.  I think it means to say that it'll
> prompt for a pdb command line, and that command line will include a file
> name?  Testing seems to say that that's the case, and I'll adjust the
> doc string in Emacs 27.
>
> But I'm not quite sure what you want to have done here.  Do you want to
> pass a file name to `gud-query-cmdline'?  That's what INIT in that
> function is used for, but I'm not sure that really makes much sense --
> when used interactively, you're prompted for the entire command, and
> when called noninteractively, you can just pass in whatever command you
> want, including the file.

More information was requested, but none was given within 19 weeks, so
I'm closing this bug.  If this is still an issue, please reply to this
email (use "Reply to all" in your email client) and we can reopen the
bug report.

Best regards,
Stefan Kangas




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 13 Jan 2020 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 103 days ago.

Previous Next


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