From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#16214: Consistency in dired-, occur-, and grep-mode Date: Sat, 21 Dec 2013 23:30:08 +0200 Organization: JURTA Message-ID: <87sitl51un.fsf@mail.jurta.org> References: <20131221.224043.270400015.tkk@misasa.okayama-u.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1387661779 7334 80.91.229.3 (21 Dec 2013 21:36:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Dec 2013 21:36:19 +0000 (UTC) Cc: 16214@debbugs.gnu.org, Tak Kunihiro , Roland McGrath To: Josh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 21 22:36:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VuUDa-00021x-Mr for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Dec 2013 22:36:18 +0100 Original-Received: from localhost ([::1]:55690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuUDa-0007f4-9z for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Dec 2013 16:36:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuUDR-0007dp-BQ for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2013 16:36:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VuUDL-0000iv-Ar for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2013 16:36:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VuUDL-0000iq-70 for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2013 16:36:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VuUDL-0005Fw-16 for bug-gnu-emacs@gnu.org; Sat, 21 Dec 2013 16:36:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Dec 2013 21:36: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: Original-Received: via spool by 16214-submit@debbugs.gnu.org id=B16214.138766171520114 (code B ref 16214); Sat, 21 Dec 2013 21:36:02 +0000 Original-Received: (at 16214) by debbugs.gnu.org; 21 Dec 2013 21:35:15 +0000 Original-Received: from localhost ([127.0.0.1]:33697 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VuUCY-0005EE-Do for submit@debbugs.gnu.org; Sat, 21 Dec 2013 16:35:15 -0500 Original-Received: from [69.163.184.122] (port=41206 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VuUCV-0005Dw-CQ for 16214@debbugs.gnu.org; Sat, 21 Dec 2013 16:35:11 -0500 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.184.122]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 8123532D742324; Sat, 21 Dec 2013 13:35:09 -0800 (PST) In-Reply-To: (josh@foxtail.org's message of "Sat, 21 Dec 2013 12:15:05 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82374 Archived-At: > I'd also like to see these modes' interfaces for similar functionality > become more consistent. They already have similarities such as > binding `g' to logical refresh operations and further harmonization > would be great. Then help-mode could bind `g' to `revert-buffer' too, but the problem is that then help-mode will be inconsistent with Info-mode where `g' is bound to `Info-goto-node'. > Another difference between their interfaces that I'd like to see > reconciled is the key binding to make these buffers editable, i.e. to > enable the functionality provided by Emacs' `wdired-mode' and > `occur-edit-mode', and the third-party wgrep library[0]. Though the > bindings to commit and abort edits are consistent between the three, > the enablement bindings are not. I haven't managed to keep them > straight yet so I sometimes hit `e' in a dired buffer and end up > visiting the file at point instead of enabling wdired, and similarly > sometimes hit C-x C-q in an occur buffer which calls the standard > `read-only-mode' instead of enabling `occur-edit-mode'. The difference is because it's more useful to type `C-x C-q' to change read-onlyness of an occur buffer and edit it textually than to do the same in a dired buffer where random edits (other than renaming file names) make less sense. > In regard to your proposed C-o and SPC bindings, I wonder if it would > be worthwhile to extend `next-error-follow-minor-mode' to support > dired, perhaps including the ability to restrict which files were > displayed via regexps or a function. This is possible, and then `M-g n' could visit the next file in a sequence, and maybe the same key prefix could be used also for other binding to make them more consistent, e.g. `M-g o' for `dired-find-file-other-window', `M-g C-o' for `dired-display-file', etc. > Users can always customize bindings to suit their taste, but a > consistent set of defaults makes Emacs more accessible to new users > and makes guesses about where to find desired functionality more > likely to be correct. I'd also add the vc-dir mode to the list of modes to share the same keybindings.