From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Howard Melman Newsgroups: gmane.emacs.bugs Subject: bug#16214: Consistency in dired-, occur-, and grep-mode Date: Sat, 12 Feb 2022 15:43:27 -0500 Message-ID: References: <20131221.224043.270400015.tkk@misasa.okayama-u.ac.jp> <87sitl51un.fsf@mail.jurta.org> <20131222.204850.283027925.tkk@misasa.okayama-u.ac.jp> <87ppoo8srl.fsf@mail.jurta.org> <87sfsr9leb.fsf@gnus.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="4705"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (darwin) To: 16214@debbugs.gnu.org Cancel-Lock: sha1:vF3gXakCDP2DZGAsyxjus5aFSbs= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 12 21:44:10 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 1nIzFa-00012W-CK for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 21:44:10 +0100 Original-Received: from localhost ([::1]:58474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nIzFY-0005su-RH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 12 Feb 2022 15:44:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42700) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIzFS-0005sl-PA for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 15:44:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41846) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nIzFS-0000We-Fu for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 15:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nIzFS-0003gh-Bu for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 15:44:02 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: <20131221.224043.270400015.tkk@misasa.okayama-u.ac.jp> Resent-From: Howard Melman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 12 Feb 2022 20:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16214 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.164469862214139 (code B ref -1); Sat, 12 Feb 2022 20:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Feb 2022 20:43:42 +0000 Original-Received: from localhost ([127.0.0.1]:35743 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIzF8-0003fz-C4 for submit@debbugs.gnu.org; Sat, 12 Feb 2022 15:43:42 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37512) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nIzF5-0003fq-Sv for submit@debbugs.gnu.org; Sat, 12 Feb 2022 15:43:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42652) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIzF5-0005sU-Ga for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 15:43:39 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:50760) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nIzF4-0000Tq-5f for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 15:43:39 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nIzEx-0000Cy-Tg for bug-gnu-emacs@gnu.org; Sat, 12 Feb 2022 21:43:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 5 X-Spam_score: 0.5 X-Spam_bar: / X-Spam_report: (0.5 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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" Xref: news.gmane.io gmane.emacs.bugs:226747 Archived-At: Howard Melman writes: > I'd also love to see one common way of entering wdired, > occur-edit and wgrep. The burden of maintaining this muscle > memory is IMHO silly. Actually, I this think is still viable: > To have consistency on edition of buffer at dired-/occur-/grep-mode, > (1) addition of two key-binds, "e" to both (dired-toggle-read-only) > and (wgrep-change-to-wgrep-mode) In occur-mode `e` already enters `occur-edit mode`. In grep-mode `e` is unbound. `wgrep` is in nongnu elpa so I don't know if `grep-mode` can reference it. But if not, perhaps it could reserve this key for a wgrep-like function with a comment. `wgrep` could be updated to add the binding or just document it as a possibility. In dired-mode `dired-toggle-read-only` is bound to `C-x C-q` and `dired-find-file` is bound to `e`, `f` *and* `RET` (and `f` is the one the emacs manual mentions first). If just `e` were changed to invoke `dired-toggle-read-only` then existing users in `dired-mode` can still use `f` and `RET` to edit a file or rebind `e`. Changing just one binding which already has two other equally convenient (single key) and intuitive bindings doesn't seem too invasive IMHO to fix something that, as you say, if it were designed today would indeed be a priority. -- Howard