From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Adding a "quick-help" menu Date: Mon, 19 Sep 2022 05:08:23 -0400 Message-ID: References: <87v8pn4968.fsf@posteo.net> <87h7156lg5.fsf@gnus.org> <878rmhdkc9.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38160"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Philip Kaludercic , Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 19 11:38:10 2022 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 1oaDEA-0009mK-MC for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Sep 2022 11:38:10 +0200 Original-Received: from localhost ([::1]:56406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oaDE9-0000O6-18 for ged-emacs-devel@m.gmane-mx.org; Mon, 19 Sep 2022 05:38:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaClP-0004Lx-0E for emacs-devel@gnu.org; Mon, 19 Sep 2022 05:08:27 -0400 Original-Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]:41528) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oaClN-0000ZS-Hj for emacs-devel@gnu.org; Mon, 19 Sep 2022 05:08:26 -0400 Original-Received: by mail-ot1-x330.google.com with SMTP id t8-20020a9d5908000000b0063b41908168so19327239oth.8 for ; Mon, 19 Sep 2022 02:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date; bh=YbzqOBoZhpX/+w+wh4sowz4BaftUmbTW+G26Nrkhais=; b=HxE21VJ5GmgOdVLzsnacipdpiUEH74xWVjGHjl/4iZboH1RuNhH8CKEo5UEWiBmmJ5 tQBVm7nDtTKmCTPczvfBvF5ofrG1tHNZ1WcVAGNOxx2d12VHufsp0q6nHTnc9DGdLceU 81ffeTZVWu2qFv20Gx78569RkJV7smIWvVMVVt1CYsDTEToq/WkV/BPT2N9MMu2Cppqr HhmInW9b/ra9dkd/aHSlqmP7MasgSX8nWJ2iC86mK5z8rIqqt7EkbXR3GKPz5SNdy5eF ySIENw9HVncMLkl2BiyfaIwovHuQ55kU0As8v9QSmWb+d3sDrPtSwy1ktIEREEpSpyYW iWfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date; bh=YbzqOBoZhpX/+w+wh4sowz4BaftUmbTW+G26Nrkhais=; b=F0CtyWj1DOYzpaElfWHwpemPdD9wMVpXqNJWfEduO1lTVTO+RAHkpDQN7tv+KTG2Al wpdbWsz4wVFLJ4Vg7WBwHx2NklsrE4ismxDTMXojXKyf4rR0h1VGoJp7heO37xKsiF+F yJW+yQms0GoxFFw2C6PLocAfgfOPnDxHcmB2rSV5/GVrr+QhR9J5lUbLfA1AKQfrEfdh mwinhKvsuYk1BRsNtASNjB2KkD2dR4t5BNQYqemaJnN+Zf+sr0sEkapXwxNRkgrU+CCU 3IBWkECZ+CKQan+5c9pxjNvOigmcmQNRoILR8ktVlAojk8I29a83DUhtf8czvWXTZbE6 XdiA== X-Gm-Message-State: ACrzQf09T2BK3oEX8aiBzD1Lz0Y+nxJ1NytfNSy/faWFdzJyYvbz/Yta /A0ify/TWrq7sXxJeiz4gGNyHHj3fAoDV+STZxc= X-Google-Smtp-Source: AMsMyM4D6f+CZTi7V3ClY7QffGH1OWbqDIHiKsVJOGZ9yXdbf8tkeRa+es1hjA8MVhzvUgo+Hwv0MLYyfyR3RZwDnPg= X-Received: by 2002:a9d:7c89:0:b0:655:dfb1:331c with SMTP id q9-20020a9d7c89000000b00655dfb1331cmr7304575otn.224.1663578503857; Mon, 19 Sep 2022 02:08:23 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 19 Sep 2022 05:08:23 -0400 In-Reply-To: <878rmhdkc9.fsf@posteo.net> X-Hashcash: 1:20:220919:philipk@posteo.net::WszaV+uMHGBEL/kp:BH+K Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=stefankangas@gmail.com; helo=mail-ot1-x330.google.com 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, 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-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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:295651 Archived-At: Philip Kaludercic writes: > Lars Ingebrigtsen writes: > >> Philip Kaludercic writes: >> >>> There is a fork of mg (MicroEmacs)[0] that binds C-h q to a command that >>> pops up a buffer with these contents: >> >> I think having a "cheat sheet" like this would be useful. > > Calling it a "cheat sheet" sounds like a good idea. I've added > `cheat-sheet' as an alias: Thanks, this looks great. Some comments after testing it: - I think we should use `help-for-help-header' for the headlines, not capitalize them, and align them with :align-to. - Should it be modal, like `C-h C-h'? - If not, I think it would be nice if you could remove it by typing "q" again. Perhaps point should be moved to the new buffer by default? (But then again, it doesn't do that with "*Help*" by default, sadly.) So maybe a repeat-map is appropriate? Just some ideas. - The keys should be linked to the corresponding command docstrings. - Wishlist: It would be great if it had an optional vertical view, perhaps that you could toggle with both a command and defcustom. Perhaps the vertical view could even be the default if the window width is too narrow to fit it all? Also, some nits: - "other" should be "other win." or "other window". - "rev. search" should be "search backwards". - "replace" could be "search & replace" or "search&replace"