From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Current mode command discovery Date: Sun, 21 Feb 2021 16:44:06 +0100 Message-ID: <87ft1pjuih.fsf@gnus.org> References: <87v9aubm96.fsf@gnus.org> <87r1laomak.fsf@gnus.org> <83pn0uzubj.fsf@gnu.org> <87im6molnq.fsf@gnus.org> <83o8geztvt.fsf@gnu.org> <871rdaokhi.fsf@gnus.org> <83mtvyzscl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35830"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Feb 21 16:45:40 2021 Return-path: Envelope-to: ged-emacs-devel@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 1lDqvT-0009BC-QI for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Feb 2021 16:45:39 +0100 Original-Received: from localhost ([::1]:56886 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDqvS-0003zt-Qv for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Feb 2021 10:45:38 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDqu9-0003MG-V8 for emacs-devel@gnu.org; Sun, 21 Feb 2021 10:44:17 -0500 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:54826) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDqu8-0006rr-AS; Sun, 21 Feb 2021 10:44:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=qnNOdjvHSvV3bItGZtAgifUlW1W239063+YBVnqVPg4=; b=KbeMFruqZEdszxtz6l/Dfp+tJO wemT5NVRiAC8MmxahQzyuWziAY36NfQFD4wkLAjvHnwb77eF2F8GxAxZPy1QDquoUK6xm4w1lkk+p QBQYZa2AbYwgk5FjrgxQUGwsa1zv4tHMdSWPTBGH/doBKbSObiPekdhdv6rp/6EpMXDM=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lDqu0-0001dy-86; Sun, 21 Feb 2021 16:44:10 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEVCMDimTFitl4L/ ///CA72vAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UCFQ8rBO0bqhEAAAG5SURBVCjPPZBBa9tAEIWf hFfYe3KCFVIdA4XUv2JS7B5yWhmNIbq11CHVr9gcDMUny0TB9kkpspD2V3bWLh1YmI95896wwNIW J3euAripI5u30rp3IHIWm01b5R7CGj02p+QCznbq8bReuhzQAqtvpYADph0+mAbm6OHRYs1kkHvr O4u4zeih6GUidfNeZYFEw6LG8+Lpc+QqJ60NDhTzRu5BJ0mHSca5BxcMo1+x4aUch87V0csPksmq gmuKUfN9xsueGXCdbj6yUdWThEzrpD5xxYVPVDYp32Ju3VAgRFKWKTs38isCTR8UThOOWyRNH504 1w4Di6QruGhi/QeOwmSvuLll3cJZmxzG6tlU+g7XX7W2yrS7Uk9lMtQ2aOojhaG3Fs+fixb6WlK1 VmZldoXVIAxVYFa7Q2FD+YN7BCbd7fGvlDHlfmX/w+73kC69wPbcyddPAg8vZxnPAhK4R4wApAKk F1kNmgALrxnLiwXSV9/44RwgS2yuMBAHKHpAlY2h8i1jYEpak8BMzZGZV6q2sYDsUJZi9pZCPRGL +wIwIqOrTCBi+mQEYpENIsJEduYkoEKmL/QX+SqirXh/okEAAAAldEVYdGRhdGU6Y3JlYXRlADIw MjEtMDItMjFUMTU6NDM6MDMrMDA6MDD/coXsAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTAyLTIx VDE1OjQzOjAzKzAwOjAwji89UAAAAABJRU5ErkJggg== X-Now-Playing: Little Annie's _Soul Possession_: "Waiting For The Fun" In-Reply-To: <83mtvyzscl.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 20 Feb 2021 17:11:54 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:265396 Archived-At: Eli Zaretskii writes: >> ;; because "M-x" is a well-known prompt to read a command >> ;; and it serves as a shorthand for "Extended command: ". >> "M-x ") >> >> in `read-extended-command'. Hm. Anybody got an opinion on what the >> best fix here would be? The obvious fix is to do what the comment says, >> which would also make this be more consistent if the user has rebound >> the command. > > Or you could kludge it by looking at the modifiers. It's possible, but that's certainly adding one kludge on top of another. Are there any drawbacks to just using (key-description (this-single-command-keys)) here and normalising this command in this regard? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no