From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: "whether the global keymap C-x 4 will be replaced by a command," Date: Sun, 19 Jul 2020 17:45:04 +0000 (UTC) Message-ID: References: <83ft9woo68.fsf@gnu.org> <87wo377wxp.fsf_-_@mail.linkov.net> <7ny2nf8xrp.fsf@ecube.ecubist.org> <4efa37ae-8839-4c28-87d8-7286fef4ade9@default> <7n5zajfpdl.fsf@ecube.ecubist.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32356"; mail-complaints-to="usenet@ciao.gmane.io" To: Barry Fishman , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 19 19:47:56 2020 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 1jxDPn-0008Je-HK for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jul 2020 19:47:55 +0200 Original-Received: from localhost ([::1]:32788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxDPm-0004Zm-H0 for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jul 2020 13:47:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxDPA-0004Ai-Jt for emacs-devel@gnu.org; Sun, 19 Jul 2020 13:47:16 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:45852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxDP8-0003gY-Eg for emacs-devel@gnu.org; Sun, 19 Jul 2020 13:47:16 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 06JHgBcQ117854; Sun, 19 Jul 2020 17:47:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=NsR78dDBIKKYGAot3xg+ct+U9HxWLd9DloxHAY11xqM=; b=MQ3nWLQuDqCkKGTvmyMSKYzt+MZneZEd/LU1wg3wdkCcI+Dt5Zv6ixdxyvlFSa7dEcLS WG40HttiQVnAAG6ovYn0jH0taS8rtmDZ8pXsFCmHMU8jmtcDozutpuRAvTW0UIUcO3Nc qJMzqPgaZ6SPl4un5prLxEgxl66C+j1NT9VOMeZ3Vh1APoXl8ncqmt5lwtjRQdfHaQSr EkFTuzHOBZvEX/+2VQ5IsNMyCkuHrBKgxRZ7DEpIVprvBPqUTmpBp++JrlIQHc+aJO+7 dZpzGZjxkFenuhDFoiPCQnRBv4/LE1XCiaA90zKW44w30DlU6LVugtKjC30NBTmcTtqK VA== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2130.oracle.com with ESMTP id 32bpkautx6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sun, 19 Jul 2020 17:47:07 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 06JHhuv4173108; Sun, 19 Jul 2020 17:45:07 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 32ckm92f9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 19 Jul 2020 17:45:07 +0000 Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 06JHj56e022389; Sun, 19 Jul 2020 17:45:05 GMT In-Reply-To: <7n5zajfpdl.fsf@ecube.ecubist.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5017.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9687 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 mlxscore=0 spamscore=0 bulkscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007190138 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9687 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 bulkscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 adultscore=0 priorityscore=1501 impostorscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2007190138 Received-SPF: pass client-ip=141.146.126.79; envelope-from=drew.adams@oracle.com; helo=aserp2130.oracle.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/19 13:47:11 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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:253112 Archived-At: > > `C-h r C-h' already lists all of the `C-x 4' keys > > and their commands. And choosing any of those > > then shows you its complete help. >=20 > If you mean "C-x 4 C-h", yes=20 Yep. Finger-flunked; sorry. > but, "C-h k C-x 4" is left waiting for further input > and "C-h k C-x 4 C-h" just says there is no binding for it. > There is no universal way to get further information at that point. I guess the info you want at that point is the info you'd get from `C-x 4 C-h'. Is that right? > If "C-h k" had a solution it would apply uniformly and not require muckin= g > about which changing any (other) key bindings. OK. > Should there be a general rule than any partial key sequence have "C-h" > show the possible options? Maybe. Have you really found this to be a problem? I haven't. But I know that some users don't know about using `C-h' after a prefix key. And I do get your point, about not wanting to abandon `C-h k C-x 4' and use `C-x 4 C-h' at that point. That doesn't bother me, but OK. > And if so wouldn't it be more straight > forward to not have to manually define for each possible key sequence, > but still have any exi[s]ting such binding still work? Definitely. But only if implementing that doesn't remove/break something else (unlike what's being proposed in this thread). No one has to explicitly define a binding for `C-h' after a prefix key, for example. (And as you point out, there is in fact _no_ such key binding.) Yes, the same should apply for what you suggest. But I don't think the overall discussion is really about `C-h k' and its getting to the help for a prefix key (e.g. help like what `C-h 4 C-h' shows). But if it were, then my reply would be (besides perhaps doing something such as you suggest - which AFAIK doesn't require changes such as those proposed), to instead provide something like the help that key completion (library Key See or Icicles) or `which-key' provides. https://www.emacswiki.org/emacs/KeySee https://www.emacswiki.org/emacs/Icicles https://github.com/justbur/emacs-which-key Those all, like an appended `C-h', let you see the keys that complete a prefix key, as well as their commands. And unlike `C-h', they don't interrupt use of the prefix key. (In addition, Icicles lets you get the full doc string for any such completing key.)