GNU bug report logs - #77345
30.1; "C-h w" doesn't detect binding in the midst of an M-x invocation

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Suhail Singh <suhailsingh247@HIDDEN>; dated Fri, 28 Mar 2025 19:15:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 77345 <at> debbugs.gnu.org:


Received: (at 77345) by debbugs.gnu.org; 29 Mar 2025 15:42:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 29 11:42:48 2025
Received: from localhost ([127.0.0.1]:60902 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tyYKe-00063R-0Z
	for submit <at> debbugs.gnu.org; Sat, 29 Mar 2025 11:42:48 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55914)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tyYKY-000637-La
 for 77345 <at> debbugs.gnu.org; Sat, 29 Mar 2025 11:42:46 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tyYKT-00039y-6K; Sat, 29 Mar 2025 11:42:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=wXE9EgbRzj8s8BL5k7Fz6HdBhYPzVio75UrguKN8J+8=; b=I5RNPpIe0DNC
 Twe/lO3r53VEYzjmlOPiT/yTltDS29e56Y8DPPxy8QTtXuqS/zKmq9VWwgca38OdHWtmrgyXrJZaC
 YmC2E6sfLik9gixHLYENP2ls8gukRmg6+evOGX39n5bWoOnabfJ0pjjI026bbta5ZJAqq0izKcq3o
 1xPRzG/uKeWb7+Dn3rzo6DAVb4ZLOdiKMbfBWo2AnsT3NzjqDBxpq3R9H/0HaT6FdM620aAfRSt/t
 j2dLrNxye9B9QT1DmfIbJ36yD3MLoE3cenvBc+fCdaqx7nup4IU93ImAyUwbh+NLU7b3w9pB5YXsM
 3QWf3jBU8JK47Frb1sSHQA==;
Date: Sat, 29 Mar 2025 18:42:32 +0300
Message-Id: <86zfh36dxz.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Suhail Singh <suhailsingh247@HIDDEN>
In-Reply-To: <87wmc7g8u8.fsf@HIDDEN> (message from Suhail Singh on Sat, 29
 Mar 2025 11:22:39 -0400)
Subject: Re: bug#77345: 30.1; "C-h w" doesn't detect binding in the midst of
 an M-x invocation
References: <87pli1j7d9.fsf@HIDDEN> <867c489toc.fsf@HIDDEN>
 <87wmc7g8u8.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77345
Cc: 77345 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Suhail Singh <suhailsingh247@HIDDEN>
> Cc: Suhail Singh <suhailsingh247@HIDDEN>,  77345 <at> debbugs.gnu.org
> Date: Sat, 29 Mar 2025 11:22:39 -0400
> 
> Sometimes, I know (roughly) the name of the command, but not the
> keybinding for it.  So I begin my journey by invoking M-x and rely on
> TAB completion.  Having found the right command, I want to do two
> things: one, invoke it; two, learn the keybinding if there is one
> present.

Unless you turn OFF suggest-key-bindings, "M-x" will always show you
in the echo-area the key binding of the last command you invoked.  Why
is that not enough?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77345; Package emacs. Full text available.

Message received at 77345 <at> debbugs.gnu.org:


Received: (at 77345) by debbugs.gnu.org; 29 Mar 2025 15:22:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 29 11:22:57 2025
Received: from localhost ([127.0.0.1]:60835 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tyY1Q-00022s-Q6
	for submit <at> debbugs.gnu.org; Sat, 29 Mar 2025 11:22:57 -0400
Received: from mail-qv1-xf41.google.com ([2607:f8b0:4864:20::f41]:42239)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <suhailsingh247@HIDDEN>)
 id 1tyY1M-00022T-Hd
 for 77345 <at> debbugs.gnu.org; Sat, 29 Mar 2025 11:22:53 -0400
Received: by mail-qv1-xf41.google.com with SMTP id
 6a1803df08f44-6ecf0e07947so29908046d6.0
 for <77345 <at> debbugs.gnu.org>; Sat, 29 Mar 2025 08:22:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743261766; x=1743866566; darn=debbugs.gnu.org;
 h=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=WvPsuneUhiLE6w9unmxwpyULpnX9vZ0GYiQe+nQmQXI=;
 b=Qw2p+d5aXYBl25zWGhv/6uz1EFAx9LLmI7Wq/CsVGT4LQCsoH6OMxM5kBFv56qHlyz
 b2+Z/7zyVaynfbLQPcc1rKji5RPYQ94/3g2tkNqA4xofSOxt1tNMzSbFNzN23PpnO6G4
 1KTU4rHJf50tkhcsOTA7Txe5RFD0/8DFZujdT/IOCEx/mgOJKfUdrnSsXXL+j7aesvco
 lKNMRH8Qo5bzhAM5M65BD8AeEMYBc1932CVs9HZW2MFw16Wpo8kS761Q9Dr355GCpYh5
 969T7YNHLzYs+qmwdPEGLrfLzrUeV+q+NO8gbxuoqgQHAAElUfzAh7dO970AfML2BQTu
 l5sw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743261766; x=1743866566;
 h=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=WvPsuneUhiLE6w9unmxwpyULpnX9vZ0GYiQe+nQmQXI=;
 b=Sbn+VIANXuI188vSxMkk9h5OIDN8NqHV4uZRldpKvLf6foS1ctagxAjtQF3kC1G2wl
 kLFC5C+kWKFeDQyoEu34erFWVKUNp9159ty3nLkfIj+XsNYO/WHcpwEzMb0XmovVJ7w2
 RFfZwKNO1eCabDDpL6JjFuBByJ4YChQnj1FZgjoGQFVgiKoYoK/hgMFBQy09PRkotJt8
 lz+fEztQzi9c5IcNVwWqeCrRdKbC+dd/Rj+lmuAdusY0RwdpPhV7Dig7CTRNyaPDLTYs
 R5yv06NijQYfB//B/FURRxuyFVef+9OkYxbsMBjK6md+LRK/nxmUPhNkAzm3fkrW7r7t
 aRyQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCWxTJYGXYYEXmf1diYlqikNo4GsF6i+XrVJ5W1yNr9z4W/JIiZ3aeFfIEXTnLFaWsUQYsB/dQ==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxvZkwi6UjKg64/HYT0x3gG4t0tNbBdiLlcmhZ7N2p/Uw2s81tO
 VDvxtsjdPw6IHXra0VDEGdXOVWkYIGkVQ3nhAGgabm4wM912DfVf1FoKsPeh
X-Gm-Gg: ASbGncs6pXL+6xLB3CM4w9xqs4YTWU5AyaF4R2xI9YZubMztvLortKiQ6v1kXOU+Z0m
 /MvWXEDQiiL41YBO85B8GxTv0e5nBPbTIoJ+k4218gpsdJ/0lDagpQ3M8tjCViTq7d7lTlw1GxO
 0stO2OrneRnOyiAtZfjtfxNZO2NnoeCcJX6GmNXNPoqUlrwAouKOELI3P0iiO6uHtjjSiGZtHya
 wPrK65yBAF29bHLDi2HPHG/zPdSxEIvHGZzVE4Wb9iogpYcoIO++7QgrksyT1yj6T6b18wkNzCj
 QajMIBxOGE7TNNVZ2pZaaGuYBLfL80Tb8rzoLF3bFnU=
X-Google-Smtp-Source: AGHT+IF3V86nNp3q9RFeht4hlB8CPPNzYR4nyXXf4JwRWKtyfXxEFxTWnAnirrjeMStqyOvEHGCxJg==
X-Received: by 2002:a05:6214:1c4d:b0:6e4:2479:d59b with SMTP id
 6a1803df08f44-6eed5243541mr44539076d6.16.1743261766117; 
 Sat, 29 Mar 2025 08:22:46 -0700 (PDT)
Received: from gnus ([192.197.121.128]) by smtp.gmail.com with ESMTPSA id
 6a1803df08f44-6eec979734dsm23555736d6.114.2025.03.29.08.22.44
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Sat, 29 Mar 2025 08:22:45 -0700 (PDT)
From: Suhail Singh <suhailsingh247@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#77345: 30.1; "C-h w" doesn't detect binding in the midst of
 an M-x invocation
In-Reply-To: <867c489toc.fsf@HIDDEN> (Eli Zaretskii's message of "Sat, 29 Mar
 2025 10:34:27 +0300")
References: <87pli1j7d9.fsf@HIDDEN> <867c489toc.fsf@HIDDEN>
Date: Sat, 29 Mar 2025 11:22:39 -0400
Message-ID: <87wmc7g8u8.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.3 (/)
X-Debbugs-Envelope-To: 77345
Cc: 77345 <at> debbugs.gnu.org, Suhail Singh <suhailsingh247@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)

Eli Zaretskii <eliz@HIDDEN> writes:

> C-j in the minibuffer is not bound to eval-print-last-sexp ...
>
> If you try the same with eval-last-sexp, you will see the result you
> expect, because "C-x C-e" _is_ bound in the minibuffer.
>
> Why do you think there's a bug here?

Yes, it's clear that it's looking for bindings in the minibuffer.  This
was unexpected because I was expecting to be able to look up the binding
in the original buffer (lisp-interaction-mode in this case).  Thinking
some more about it, perhaps this isn't a bug as much as it is a feature
request.  I'll describe my use-case below.

Sometimes, I know (roughly) the name of the command, but not the
keybinding for it.  So I begin my journey by invoking M-x and rely on
TAB completion.  Having found the right command, I want to do two
things: one, invoke it; two, learn the keybinding if there is one
present.

To accomplish the latter, I have `marginalia' installed from ELPA, and
it adds annotations for keybindings in the completions buffer.  However,
if a completion is a sole completion then the completions buffer doesn't
show (see `minibuffer-completion-help').  The result is that for sole
completions, marginalia's keybinding annotations aren't accessible.

Running into this obstacle, I reached for the venerable `where-is'.
However, C-h w results in the lookup of bindings in the minibuffer
instead (as opposed to the original buffer where the M-x was invoked
from).

Of course completing the M-x invocation (or aborting it) and looking up
the binding of the command via C-h w in the original buffer works, but
it's a two-step process.

Some thoughts on possible ways this could be addressed:

- adding a user configuration which allows the completions buffer to be
  displayed even for sole completions
- adding an optional parameter for C-h w to be able to consult the
  binding in the original buffer (assuming the result reported by
  something like src_elisp{(window-buffer (minibuffer-selected-window))}
  is reliable for this purpose).

-- 
Suhail




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77345; Package emacs. Full text available.

Message received at 77345 <at> debbugs.gnu.org:


Received: (at 77345) by debbugs.gnu.org; 29 Mar 2025 07:34:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 29 03:34:38 2025
Received: from localhost ([127.0.0.1]:56565 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tyQiE-0006qj-Bg
	for submit <at> debbugs.gnu.org; Sat, 29 Mar 2025 03:34:38 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:56570)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tyQiC-0006qM-N0
 for 77345 <at> debbugs.gnu.org; Sat, 29 Mar 2025 03:34:37 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1tyQi6-00028F-Cw; Sat, 29 Mar 2025 03:34:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=xTG/9Pv04j3lRHOaCvcMhZmU5FcnB5BAoKEeL7L8/YI=; b=O9dyV2Bw/dWX
 oU7BCU79tXR1J/1aLFdOr4Erh5slFDfRmmZkwVzwN1fFnWD1/vvalStltb9z/cTjD4QPXC9axWm8p
 sb2JqhUpMj7TcfgP2wL5JTfEOVUUKQAWmWsFlRuPSjiGdERPLmzR+nA/BLdpePUGT/lDAxfPf0QjK
 YYHHNVof3ZbzR4gF+HIDYXrT/ddmcFRXYFrST6u7042XY9Owur2oA8zlnUp5Wxw7+ruxAJ4QDm4hM
 LChA8SjpPwtIO9rPnW3c7ZHl2hCGhIDdIjnZQDBQJROy/oSxs7B3IiNeVJoV9d/ghkn2psBxVJs42
 BKEyLd8GDmgrQu3DUaz+dQ==;
Date: Sat, 29 Mar 2025 10:34:27 +0300
Message-Id: <867c489toc.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Suhail Singh <suhailsingh247@HIDDEN>
In-Reply-To: <87pli1j7d9.fsf@HIDDEN> (message from Suhail Singh on Fri, 28
 Mar 2025 15:13:54 -0400)
Subject: Re: bug#77345: 30.1;
 "C-h w" doesn't detect binding in the midst of an M-x invocation
References: <87pli1j7d9.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 77345
Cc: 77345 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Suhail Singh <suhailsingh247@HIDDEN>
> Date: Fri, 28 Mar 2025 15:13:54 -0400
> 
> 
> 1. Invoke "emacs -Q".
> 2. Switch to *scratch* buffer.
> 3. Do M-x and then type "eval-print-last-sexp", but don't press RET.
> 4. Do "C-h w RET" (i.e., select the default option of
>    eval-print-last-sexp).
> 5. Expected: Message in the echo area noting that "eval-print-last-sexp"
>    is bound to "C-j".  Observed: "eval-print-last-sexp is not on any
>    key".

C-j in the minibuffer is not bound to eval-print-last-sexp, and
eval-print-last-sexp is not bound to any key in the minibuffer.  So I
don't see any bug here.

If you try the same with eval-last-sexp, you will see the result you
expect, because "C-x C-e" _is_ bound in the minibuffer.

Why do you think there's a bug here?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77345; Package emacs. Full text available.

Message received at 77345 <at> debbugs.gnu.org:


Received: (at 77345) by debbugs.gnu.org; 29 Mar 2025 07:05:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 29 03:05:56 2025
Received: from localhost ([127.0.0.1]:56511 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tyQGS-0005UW-4B
	for submit <at> debbugs.gnu.org; Sat, 29 Mar 2025 03:05:56 -0400
Received: from mail.eshelyaron.com ([107.175.124.16]:39520 helo=eshelyaron.com)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <me@HIDDEN>) id 1tyQGP-0005UO-Uk
 for 77345 <at> debbugs.gnu.org; Sat, 29 Mar 2025 03:05:54 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eshelyaron.com;
 s=mail; t=1743231953;
 bh=AZvIgGkwylmeoIRAEfkh2B88ZY2tSQ/sxumZcHfMuag=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=l333IZjHKDyWBAh9Gde4YLR91GdKFbc/DoSGaQqVFw74AqJbY2XPq5WxZwBBzzytT
 yZe/Mr6i5EaK1q31eHqxHLjoV3KgEstnTyvyx/EdRTmgEyzDWruF+hyI2NCDvl5gju
 7mlkqTjRqzF/h1sMlMa8nBEg19OOLHTPQ98D4QbqG5U/9WHbb+tr5z9h/w15RCmv5u
 y+OgoXB/zntjBXhO1X1vYwe0VlJTB8JzqjJybg3pHujPoSWaXE4mXo0fVHlohDUQX6
 7ovbU/9sjCVchl609gTOi1XHMmGBYmd98T8XarpfFccdOp3r9T3zSwtZizKkCsmymH
 uI2dNxbhfH9wA==
From: Eshel Yaron <me@HIDDEN>
To: Suhail Singh <suhailsingh247@HIDDEN>
Subject: Re: bug#77345: 30.1; "C-h w" doesn't detect binding in the midst of
 an M-x invocation
In-Reply-To: <87pli1j7d9.fsf@HIDDEN>
References: <87pli1j7d9.fsf@HIDDEN>
Date: Sat, 29 Mar 2025 08:05:50 +0100
Message-ID: <m134ewco4x.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 77345
Cc: 77345 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hi,

Suhail Singh <suhailsingh247@HIDDEN> writes:

> 1. Invoke "emacs -Q".
> 2. Switch to *scratch* buffer.
> 3. Do M-x and then type "eval-print-last-sexp", but don't press RET.
> 4. Do "C-h w RET" (i.e., select the default option of
>    eval-print-last-sexp).
> 5. Expected: Message in the echo area noting that "eval-print-last-sexp"
>    is bound to "C-j".  Observed: "eval-print-last-sexp is not on any
>    key".

You're asking "where is eval-print-last-sexp" in the minibuffer, not in
the original buffer.  So the observed response, "nowhere", is expected.
To see the binding in the original buffer, invoke C-h w in that buffer.


Best regards,

Eshel




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77345; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 28 Mar 2025 19:14:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 28 15:14:12 2025
Received: from localhost ([127.0.0.1]:55530 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tyF9g-0002JO-2N
	for submit <at> debbugs.gnu.org; Fri, 28 Mar 2025 15:14:12 -0400
Received: from lists.gnu.org ([2001:470:142::17]:34484)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <suhailsingh247@HIDDEN>)
 id 1tyF9d-0002IX-BS
 for submit <at> debbugs.gnu.org; Fri, 28 Mar 2025 15:14:10 -0400
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 <suhailsingh247@HIDDEN>)
 id 1tyF9V-0002Hr-AU
 for bug-gnu-emacs@HIDDEN; Fri, 28 Mar 2025 15:14:01 -0400
Received: from mail-qv1-xf44.google.com ([2607:f8b0:4864:20::f44])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <suhailsingh247@HIDDEN>)
 id 1tyF9S-0001kX-2i
 for bug-gnu-emacs@HIDDEN; Fri, 28 Mar 2025 15:14:00 -0400
Received: by mail-qv1-xf44.google.com with SMTP id
 6a1803df08f44-6e8fc176825so19580506d6.0
 for <bug-gnu-emacs@HIDDEN>; Fri, 28 Mar 2025 12:13:57 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1743189236; x=1743794036; darn=gnu.org;
 h=mime-version:user-agent:message-id:date:subject:to:from:from:to:cc
 :subject:date:message-id:reply-to;
 bh=N2IhKlIgQKjaHycmkHlpIdxp6AH2ftbBJNj2xoMyFGQ=;
 b=efdQEaupDeHoOz+F18f5TeQpxahFHljVFjrM5Jk4RSPhIWvaCZVGWo5qTzFnfqfmsI
 nLkC13H3+CwxbGhh5MwOtjjIQZX0JeQOzfPoX/zJMphQ/0LOUMeqdkr7/dPL0LLgO1t0
 FVzf4fvab0XMGKMNxT77R2Kgr3gpTS2POORpbsvpPVKM96BftX/Pu+Axtv/dmb8umCJ0
 JZapAo7oINhb+CMCoPZ7xFRI+NkFw+L270iGE0A0WpmRS5fLwO9zwx3Bc6am51ZhN05f
 k8b5d/rtiCbPMPX14zbO2xVS2fJ9EsbKaWxSkMtpnRADgM5ZP24gqQP40ATwR09aS26N
 0S1Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1743189236; x=1743794036;
 h=mime-version:user-agent:message-id:date:subject:to:from
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=N2IhKlIgQKjaHycmkHlpIdxp6AH2ftbBJNj2xoMyFGQ=;
 b=GmAk2ZuaQL2fRzshp8BKFNUp6OYkwbmnMq8gm2ur2LPaEGjYk3TY9M8UJNVl05BkSx
 D0yxEQJtXKIHYBQ4fkVcme2mEIDKeEs9BdESoZPjiwhMMqwcpuxI/MfoWjMUFhUc7m+S
 morzS3Y3l3yYX6AMHrWdQTLoRFb2UvE0xwaP/Qu8RlxsLudSsDoOJqs0NCKGSjr1mk04
 tLZDf5v/OhgGc1F/2oV2P5DVhnL5nIgb21OpExrkG3ocZKFWu7aGtieHqKXc/bMxUH5J
 AhRGMydMohfoscs2E74mjKYBNo9GTbO43qVbljlnz2fqw6rr14qLrLf6dF+Yh+fdBvDF
 2UqQ==
X-Gm-Message-State: AOJu0YxDGEmese4DR7x/V/lrKKzKa/Tb50gnjVsD1ZweCC71/GqMwk8l
 ilGAg1C+iobIMMmh5sz6JIa33Cn9nfZ3CXHJfHioHxU23Cp8uQuvuJe6lBjx
X-Gm-Gg: ASbGncsWSdJTWjNE3o9sEQHQDS6EgoFqceQeOkSdeWvjbqVakmzoZUg3BFXJT/wwJRV
 QKWNjS+8Bf1MzoI/6FZGdPjn8vT+IFVYMfTDOV20X8+ynYpOopmbHzNZf40osVshEUPBGE8AMAY
 BNwNkmiZ1BMP36qsi32EsazkN1AWdu3BZVvw5B93mxSbhEZIkti4MhFC/LQd74NvB4cvKCCffiN
 5xRaFNUpBfTQ6TN6plUa4MTNt/qRhfsNXyAMp7GY4exulzl/vdoidDOSygmfugGTbmw3fzgL+Et
 HS6f5ysnAS+f9H/rKwXDt24681Jt2wOo/kgpbC0RpwNXlJRrw5oVHqhmOVxanyxXoIJrH5YaxTG
 C8uY5co1EQYfd564jC4p8aqe84PVeHQ==
X-Google-Smtp-Source: AGHT+IH5nj47iB9nx+XthtYT0Go9Mk3yEJ7ndfGhbkRd5IWSL33HMwKthFqQnDFjyGzMCLZ8ag89LQ==
X-Received: by 2002:a05:6214:b61:b0:6e4:4011:9dff with SMTP id
 6a1803df08f44-6eed663f810mr851696d6.1.1743189235860; 
 Fri, 28 Mar 2025 12:13:55 -0700 (PDT)
Received: from gnus (lnsm2-montreal01-69-158-82-155.internet.virginmobile.ca.
 [69.158.82.155]) by smtp.gmail.com with ESMTPSA id
 6a1803df08f44-6eec964687esm14583056d6.44.2025.03.28.12.13.55
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 28 Mar 2025 12:13:55 -0700 (PDT)
From: Suhail Singh <suhailsingh247@HIDDEN>
To: Emacs bugs <bug-gnu-emacs@HIDDEN>
Subject: 30.1; "C-h w" doesn't detect binding in the midst of an M-x invocation
Date: Fri, 28 Mar 2025 15:13:54 -0400
Message-ID: <87pli1j7d9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::f44;
 envelope-from=suhailsingh247@HIDDEN; helo=mail-qv1-xf44.google.com
X-Spam_score_int: -17
X-Spam_score: -1.8
X-Spam_bar: -
X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.2 (+)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview:  1. Invoke "emacs -Q". 2. Switch to *scratch* buffer. 3. Do
 M-x and then type "eval-print-last-sexp", but don't press RET. 4. Do "C-h
 w RET" (i.e., select the default option of eval-print-last-sexp). 5 [...]
 Content analysis details:   (1.2 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (suhailsingh247[at]gmail.com)
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends
 in digit (suhailsingh247[at]gmail.com)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.2 (/)


1. Invoke "emacs -Q".
2. Switch to *scratch* buffer.
3. Do M-x and then type "eval-print-last-sexp", but don't press RET.
4. Do "C-h w RET" (i.e., select the default option of
   eval-print-last-sexp).
5. Expected: Message in the echo area noting that "eval-print-last-sexp"
   is bound to "C-j".  Observed: "eval-print-last-sexp is not on any
   key".


In GNU Emacs 30.1 (build 2, x86_64-suse-linux-gnu, GTK+ Version 3.24.49,
cairo version 1.18.4)
System Description: openSUSE Tumbleweed

Configured using:
 'configure --disable-build-details --without-pop --with-mailutils
 --with-native-compilation --without-hesiod --with-gameuser=:games
 --with-kerberos --with-kerberos5 --with-file-notification=inotify
 --with-modules --enable-autodepend --prefix=/usr
 --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
 --localstatedir=/var --sharedstatedir=/var/lib
 --libexecdir=/usr/libexec --with-file-notification=yes
 --libdir=/usr/lib64
 --enable-locallisppath=/usr/share/emacs/30.1/site-lisp:/usr/share/emacs/site-lisp
 --with-x --with-xim --with-sound --with-xpm --with-jpeg --with-tiff
 --with-gif --with-png --with-rsvg --with-dbus --with-webp --with-xft
 --with-imagemagick --without-gpm --with-x-toolkit=gtk3 --with-pgtk
 --with-toolkit-scroll-bars --x-includes=/usr/include
 --x-libraries=/lib64 --with-libotf --with-m17n-flt --with-cairo
 --build=x86_64-suse-linux --with-dumping=pdumper 'CFLAGS=-O2 -Wall
 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -fstack-protector-strong
 -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection
 -Werror=return-type -flto=auto -g -D_GNU_SOURCE
 -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS
 -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label
 -fno-optimize-sibling-calls -DPDMP_BASE='\''"emacs-wayland"'\'''
 'LDFLAGS=-Wl,-O2 -Wl,--copy-dt-needed-entries''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ
IMAGEMAGICK JPEG LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 MODULES
NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3
THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM GTK3 ZLIB

Important settings:
  value of $LC_NUMERIC: POSIX
  value of $LC_TIME: en_US.UTF-8
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util time-date mm-decode mm-bodies mm-encode mail-parse
rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045
ietf-drums mm-util mail-prsvr mail-utils noutline outline icons kmacro
byte-opt gv bytecomp byte-compile facemenu two-column subr-x cl-extra
shortdoc text-property-search comp-common rx help-fns radix-tree
help-mode cl-loaddefs cl-lib thingatpt delsel lpr easy-mmode pcase rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/pgtk-win pgtk-win
term/common-win touch-screen pgtk-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs
theme-loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify
dynamic-setting system-font-setting font-render-setting cairo gtk pgtk
lcms2 multi-tty move-toolbar make-network-process native-compile emacs)

Memory information:
((conses 16 125733 13605) (symbols 48 19500 0) (strings 32 35330 1870)
 (string-bytes 1 988883) (vectors 16 16938)
 (vector-slots 8 640335 88836) (floats 8 92 2) (intervals 56 16146 9)
 (buffers 992 14))




Acknowledgement sent to Suhail Singh <suhailsingh247@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#77345; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 29 Mar 2025 15:45:01 UTC

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