--- Begin Message ---
Subject: |
25.0.50 pdb shuns init |
Date: |
Sat, 14 Mar 2015 10:47:59 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.5.0 |
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
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#20106: 25.0.50 pdb shuns init |
Date: |
Sun, 15 Dec 2019 21:11:46 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Lars Ingebrigtsen <address@hidden> writes:
> Andreas Röhler <address@hidden> 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
--- End Message ---