From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs 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 Message-ID: References: <86ttjpz2p9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37692"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 70573@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 25 21:27:24 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1s04kd-0009Z1-R0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Apr 2024 21:27:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s04kF-00014R-3B; Thu, 25 Apr 2024 15:26:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s04kB-00013V-Sl for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2024 15:26:55 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s04k9-00055R-Bx for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2024 15:26:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s04kQ-0003G5-HX for bug-gnu-emacs@gnu.org; Thu, 25 Apr 2024 15:27:10 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Apr 2024 19:27:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70573 X-GNU-PR-Package: emacs Original-Received: via spool by 70573-submit@debbugs.gnu.org id=B70573.171407319412090 (code B ref 70573); Thu, 25 Apr 2024 19:27:09 +0000 Original-Received: (at 70573) by debbugs.gnu.org; 25 Apr 2024 19:26:34 +0000 Original-Received: from localhost ([127.0.0.1]:33283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s04ji-00037u-Pn for submit@debbugs.gnu.org; Thu, 25 Apr 2024 15:26:32 -0400 Original-Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]:45427) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s04jW-00034Y-8j for 70573@debbugs.gnu.org; Thu, 25 Apr 2024 15:26:22 -0400 Original-Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-56e1f3462caso1909892a12.3 for <70573@debbugs.gnu.org>; Thu, 25 Apr 2024 12:25:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714073150; x=1714677950; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=BwjbUCki0MMnE3VHRy27kxrlKU/KS1p/Q0gqxsx3484=; b=BcYLAc+g+MTL4zilq/ptflVp5jx/2dfVZqQ9wZ1UlLpozIPK+/RI47moQ6kNsCjpcp NncWw6h9+NsbsB1veAOTLy2OfwEQOzr7aP0oFSm/ikTq9byMTrvedeKae8Zsbj2HHrDT /E3joLxQMVm3uGnH7pflzJyByW1nMv+s7oqKXYcorcEQE/elmxKzE/w+3Fi+kToPkd53 WemNGDGWM6523RYPbJgp0xcoJtP06cEAWAF5+tGZTMQhIlKRTo3Fj7rw8rnKKoLvAQBT piot3dGbmrg98zw1Az3SgyDHla6pBkVvAcTbJG5PsD4YptlxBiaFZl4nVpDfQoBaI/Yf ztcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714073150; x=1714677950; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=BwjbUCki0MMnE3VHRy27kxrlKU/KS1p/Q0gqxsx3484=; b=DDQhjAQy1yZVlEOtdQ8IARYR39VBqsgPqjayew9M/XjJzPlgmLjiyYPAth5IREGME6 5DRFCwQmFRlxgdnu73UBNNiDA3JXQ0YqJE4+Z2+OhqkA93CmuLa++zu6k4nmOekqgGQd +UUAe6JF38pZRNqZQWadky5dKKzrZRMiFNpvYsArZ1SJ+LKqdrsd7IVeMOBtQzZm4QUj jQF5E8lFUaw/zQr4nPvSzukmMLXyuUDL6lVYLpVYVG1Eqx8iO/Xn+zpoOmDo270D0H6N C7pYALMzegxwIKjt8999I3roN1qHkkzSRccanMkbUUOSQp31Ih63AlN+0TAYpRpXZGpw A12A== X-Gm-Message-State: AOJu0YwlVYEAPI+NBG1s/jb9IlLjjOo4WA/FUONH2qtrOQspi5wBs5ln KRYjlWVPLkg2fAF18vbJ8X2Uff39gilzDDYLxAjw4shv3CJU4sBoLmtSJQ== X-Google-Smtp-Source: AGHT+IH6mFDnBpjt0lvDYRkqJ9H0EFTP1OpkDth/j42fnVmC0XY9jcYccHQSPZffM7RtKAKk4wMZlA== X-Received: by 2002:a05:6402:26c1:b0:572:5285:6dc2 with SMTP id x1-20020a05640226c100b0057252856dc2mr211756edd.12.1714073149702; Thu, 25 Apr 2024 12:25:49 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a1c7.dip0.t-ipconnect.de. [79.227.161.199]) by smtp.gmail.com with ESMTPSA id fe3-20020a056402390300b00572326cbe79sm1963272edb.61.2024.04.25.12.25.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 12:25:49 -0700 (PDT) In-Reply-To: <86ttjpz2p9.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Apr 2024 22:01:38 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:283958 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Date: Thu, 25 Apr 2024 19:56:12 +0200 >>=20 >>=20 >> 1. emacs -Q >> 2. (setq gud-gud-lldb-command-name "hansi") >> 3. M-x lldb RET >>=20 >> 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.)