unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20106: 25.0.50 pdb shuns init
@ 2015-03-14  9:47 Andreas Röhler
  2019-08-02 12:44 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Röhler @ 2015-03-14  9:47 UTC (permalink / raw)
  To: 20106

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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#20106: 25.0.50 pdb shuns init
  2015-03-14  9:47 bug#20106: 25.0.50 pdb shuns init Andreas Röhler
@ 2019-08-02 12:44 ` Lars Ingebrigtsen
  2019-12-15 20:11   ` Stefan Kangas
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2019-08-02 12:44 UTC (permalink / raw)
  To: Andreas Röhler; +Cc: 20106

Andreas Röhler <andreas.roehler@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#20106: 25.0.50 pdb shuns init
  2019-08-02 12:44 ` Lars Ingebrigtsen
@ 2019-12-15 20:11   ` Stefan Kangas
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Kangas @ 2019-12-15 20:11 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 20106-done

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Andreas Röhler <andreas.roehler@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





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-12-15 20:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-14  9:47 bug#20106: 25.0.50 pdb shuns init Andreas Röhler
2019-08-02 12:44 ` Lars Ingebrigtsen
2019-12-15 20:11   ` Stefan Kangas

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).