From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#73744: 26.1; Feature: helpful message from global-set-key giving Lisp Date: Fri, 11 Oct 2024 16:05:38 +0300 Message-ID: <86iktyzt5p.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9278"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 73744@debbugs.gnu.org To: Edward Avis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 11 19:17:28 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 1szJGZ-0002CS-Nv for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 11 Oct 2024 19:17:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1szJEk-0003QU-Ub; Fri, 11 Oct 2024 13:15:36 -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 1szJ7L-0001hX-SW for bug-gnu-emacs@gnu.org; Fri, 11 Oct 2024 13:07:56 -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 1szFM2-0002mz-4B for bug-gnu-emacs@gnu.org; Fri, 11 Oct 2024 09:06:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=eiE3bzaASZQZH4WAvVICXfxAEor0dshmTu0GJ/xS9LM=; b=BU8fpXkyesiN79iDoVWUdQSZcEEW9NUhaR+KXsQ4esJ2cTEA2S8FTjKI/i+IMurIZrXyds917c+h5H3y9bYbXyVB5UDcK6z76i8wYjmiKmzrNhcra1P3yha8f3SjUkanDCDRPB/qxZIoW7jIqpLriy7TFjtm/xU9KYrqOcYyLDhYqMUxuME6rm2pqjEScgqgjzJyNYDhfA4QLy4MwHqoIuVIYl8uqOYTsM5YWigNIrjKF3ExRzujFhHbGoSgmFctAvs8fSaunZcO0ImXSwyvbbOgOC1GBLSdVIjTFdC2gRbsq8r8yPhM0gpdD9w/Rs8RFDsTac1kIgE+Sp/95b9ibQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1szFME-0001I3-9w for bug-gnu-emacs@gnu.org; Fri, 11 Oct 2024 09:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 11 Oct 2024 13:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73744 X-GNU-PR-Package: emacs Original-Received: via spool by 73744-submit@debbugs.gnu.org id=B73744.17286519634878 (code B ref 73744); Fri, 11 Oct 2024 13:07:02 +0000 Original-Received: (at 73744) by debbugs.gnu.org; 11 Oct 2024 13:06:03 +0000 Original-Received: from localhost ([127.0.0.1]:33748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szFLH-0001Gb-62 for submit@debbugs.gnu.org; Fri, 11 Oct 2024 09:06:03 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:34798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1szFLF-0001G8-68 for 73744@debbugs.gnu.org; Fri, 11 Oct 2024 09:06:02 -0400 Original-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 ) id 1szFKw-0002ap-Jg; Fri, 11 Oct 2024 09:05:42 -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=eiE3bzaASZQZH4WAvVICXfxAEor0dshmTu0GJ/xS9LM=; b=P95fBuVvZRKA vWkbaKpJzj6yB/kt6DJrDiLo6cHA75F1fc32zfIEHusWAF5tLOPJDvsF5MGCSSOv43hRktNHaVelV nH0Xo/mxQ3vzpSbGjul9eR2AqmhzS+bL/2++kKlwX52u8g3s9b6r9w/QGHMA03c9kecRH/rN1kOL1 +SItGiHHg+FN6Mu9M8DqyrM60FqGvQk1IxzTanuJ5DdrWnZUncpT8F3X8Fo2D7+IML8aJ7B1ls3cb uiB9GVr/0INnw4oO5ExQR/3FFlpZWGiRHvWuPeSfAcDB6NfGzy8wx+mcvUdyGrh2UVGYvLgLHir/3 QWenchD2BqOBRe0NmYXr1w==; In-Reply-To: (bug-gnu-emacs@gnu.org) 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:293367 Archived-At: > Date: Fri, 11 Oct 2024 09:02:10 +0000 > From: Edward Avis via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > M-x global-set-key > Enter some key sequence and the command to bind to it. > For example I entered C-c v and find-file-at-point. > The following message is printed in the minibuffer and the *Messages* > buffer: > > You can run the command 'global-set-key' with M-x gl-se RET > > Which is helpful and all, but I think it would be great also to show > the Lisp expression you could use to bind that key. For example > > To set this key binding in Lisp, > (global-set-key (kbd "C-c v") 'find-file-at-point) > > This could go only to *Messages* and not clutter the minibuffer. You should be able to see the Lisp expression by typing "C-x z".