From: "Gerd Möllmann" <gerd.moellmann@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 70573@debbugs.gnu.org
Subject: bug#70573: 30.0.50; Setting gud-gud-lldb-command-name does not take effect
Date: Thu, 25 Apr 2024 21:25:48 +0200 [thread overview]
Message-ID: <m24jbpp7lv.fsf@pro2.fritz.box> (raw)
In-Reply-To: <86ttjpz2p9.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Apr 2024 22:01:38 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: Gerd Möllmann <gerd.moellmann@gmail.com>
>> Date: Thu, 25 Apr 2024 19:56:12 +0200
>>
>>
>> 1. emacs -Q
>> 2. (setq gud-gud-lldb-command-name "hansi")
>> 3. M-x lldb RET
>>
>> The new command name "hansi" is not used when prompting the user.
>
> It looks like this part:
>
> (interactive (list (gud-query-cmdline 'lldb)))
>
> is the culprit: the minor-mode, which is the argument to
> gud-query-cmdline, should be 'gud-lldb, not 'lldb. Here's my
> evidence:
>
> (when (and gud-comint-buffer
> (buffer-name gud-comint-buffer)
> (get-buffer-process gud-comint-buffer)
> (with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gud-lldb)))
>
> Btw, this line seems also to be confused wrt the name of
> gud-minor-mode:
>
> (setq-local gud-minor-mode 'lldb)
I'm currently seriously confused by gud.el, I'm afraid. And I was
already confused when I tried to mimic gud-gdb here, which does
(interactive (list (gud-query-cmdline 'gud-gdb)))
(when (and gud-comint-buffer
(buffer-name gud-comint-buffer)
(get-buffer-process gud-comint-buffer)
(with-current-buffer gud-comint-buffer (eq gud-minor-mode 'gdbmi)))
(gdb-restore-windows)
(error
"Multiple debugging requires restarting in text command mode"))
(gud-common-init command-line nil 'gud-gdb-marker-filter)
(setq-local gud-minor-mode 'gdb)
Would you agree that the interactive form should use gud-lldb, but that
the setq-local is right? The setq-local is gud-gdb uses gdb, not
gud-gdb. Or am I confusing myself here?
(Sorry, it's probably too late in the evening for me, or I have compiled
too many LLVM versions today, or whatever.)
next prev parent reply other threads:[~2024-04-25 19:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-25 17:56 bug#70573: 30.0.50; Setting gud-gud-lldb-command-name does not take effect Gerd Möllmann
2024-04-25 19:01 ` Eli Zaretskii
2024-04-25 19:25 ` Gerd Möllmann [this message]
2024-04-26 6:29 ` Eli Zaretskii
2024-04-26 6:43 ` Gerd Möllmann
2024-04-26 10:30 ` Gerd Möllmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m24jbpp7lv.fsf@pro2.fritz.box \
--to=gerd.moellmann@gmail.com \
--cc=70573@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.