From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#60101: 29.0.60; help-quick should use C-/ for undo Date: Sat, 17 Dec 2022 18:04:47 +0000 Message-ID: <87pmch6h4w.fsf@posteo.net> References: <87sfhgtqv5.fsf@posteo.net> <86tu1w31hq.fsf@mail.linkov.net> <87tu1v2m4f.fsf@posteo.net> <86cz8i11a9.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11119"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60101@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 17 19:05:13 2022 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 1p6bYf-0002jG-6F for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 17 Dec 2022 19:05:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6bYW-0006d6-FT; Sat, 17 Dec 2022 13:05:04 -0500 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 1p6bYU-0006aZ-JT for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2022 13:05:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6bYT-0000UH-S7 for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2022 13:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6bYT-0008P7-LP for bug-gnu-emacs@gnu.org; Sat, 17 Dec 2022 13:05:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Dec 2022 18:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60101 X-GNU-PR-Package: emacs Original-Received: via spool by 60101-submit@debbugs.gnu.org id=B60101.167130029232293 (code B ref 60101); Sat, 17 Dec 2022 18:05:01 +0000 Original-Received: (at 60101) by debbugs.gnu.org; 17 Dec 2022 18:04:52 +0000 Original-Received: from localhost ([127.0.0.1]:57232 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6bYJ-0008On-Uy for submit@debbugs.gnu.org; Sat, 17 Dec 2022 13:04:52 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:50701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6bYI-0008Oh-0m for 60101@debbugs.gnu.org; Sat, 17 Dec 2022 13:04:50 -0500 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 794FC240026 for <60101@debbugs.gnu.org>; Sat, 17 Dec 2022 19:04:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1671300284; bh=Kdxvkn8zrWnPm7GaP8oigyogq8MuB5/tclHh4RPDiQI=; h=From:To:Cc:Subject:Date:From; b=W63zjyZcwnJ6ed+ayosy0OuPztpsKO6hp0y2UfREsVtSiP0q9hT7NIcvW3cUXJU8s HJm0G4eWr344Ho2QU3mm1KI79KI6NEUW52bdh92KsDzAU8ZO65xgwCJUkYmC554FiO 2WC+t0w1l9AKTsKU3C+G7pTnx3ThHdiUcR3U4uESzV7uaz9nFnPhVEnLvMXZ+LSWje Br1yULx6B4Rojep0Ytn3Zs/Hnd9xXvo8iDJxhsnZ6uNInlROWKJBbU6nEO+TikUNxs 7fYV51gRCfIWXFYKImii5juWYrBg/AemJyBHP463n89LxEQlsOpqaNUFWSp46FzV7x k10P9fJ5Sp2Kg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NZDQ36mfWz6tnD; Sat, 17 Dec 2022 19:04:43 +0100 (CET) In-Reply-To: <86cz8i11a9.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 17 Dec 2022 19:16:06 +0200") 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:251305 Archived-At: Juri Linkov writes: >>> In lisp/bindings.el its preferred binding is defined by this line: >>> >>> (put 'undo :advertised-binding [?\C-x ?u]) >> >> That is good, but it only solves the problem by providing the means. >> The other issue is figuring out how the advertised binding can >> automatically be set to whatever is preferred on the current system. Is >> there a way to find out what keyboard layout is being used, or at least >> what modifiers have to be pressed for a key to be input? > > If a key would be unbound on a tty, this could help to exclude it > from the preferred keybindings. For example, if C-/ was unbound > depending on a tty type, then this would fall back to 'C-x u': > > (put 'undo :advertised-binding '([?\C-/] [?\C-x ?u])) > > But otherwise, could you formulate a clear criteria for excluding > some keys from the set of preferred keys? Do you know how to > query the current keyboard layout, or to find the preferred modifiers? No, I don't know. What I had in mind was a sort of ordering to find the key with the fewest modifiers, depending on the keyboard layout.