From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.bugs Subject: bug#16214: Consistency in dired-, occur-, and grep-mode Date: Sat, 28 Dec 2013 18:57:16 +0900 (JST) Message-ID: <20131228.185716.90990052.tkk@misasa.okayama-u.ac.jp> References: <87fvpj5voe.fsf@mail.jurta.org> <20131225.081539.476633610.tkk@misasa.okayama-u.ac.jp> <878uv8hco2.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1388224695 570 80.91.229.3 (28 Dec 2013 09:58:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Dec 2013 09:58:15 +0000 (UTC) Cc: 16214@debbugs.gnu.org, tkk@misasa.okayama-u.ac.jp, josh@foxtail.org, roland@hack.frob.com To: juri@jurta.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 28 10:58:21 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 1Vwqew-00041X-1X for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Dec 2013 10:58:18 +0100 Original-Received: from localhost ([::1]:51673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwqev-0004Ah-Me for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Dec 2013 04:58:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51227) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwqem-0004AW-Rv for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 04:58:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vwqeg-0003MJ-Me for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 04:58:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vwqeg-0003MF-Iq for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 04:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vwqeg-0004Zg-32 for bug-gnu-emacs@gnu.org; Sat, 28 Dec 2013 04:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tak Kunihiro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Dec 2013 09:58:01 +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.138822465417538 (code B ref 16214); Sat, 28 Dec 2013 09:58:01 +0000 Original-Received: (at 16214) by debbugs.gnu.org; 28 Dec 2013 09:57:34 +0000 Original-Received: from localhost ([127.0.0.1]:47852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwqeE-0004Yo-1M for submit@debbugs.gnu.org; Sat, 28 Dec 2013 04:57:34 -0500 Original-Received: from msmail2.misasa.okayama-u.ac.jp ([150.46.245.7]:40900 helo=msmail.misasa.okayama-u.ac.jp) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VwqeA-0004YZ-0F for 16214@debbugs.gnu.org; Sat, 28 Dec 2013 04:57:31 -0500 Original-Received: from localhost (p8181-ipbfp304tottori.tottori.ocn.ne.jp [114.155.19.181]) by msmail.misasa.okayama-u.ac.jp (Postfix) with ESMTP id A9C07AF8094; Sat, 28 Dec 2013 18:57:25 +0900 (JST) In-Reply-To: <878uv8hco2.fsf@mail.jurta.org> X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) 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:82684 Archived-At: Dear Juri, >> How about to add `E' to edit buffer? It is close to `e' on occur, and >> it seems that it is not used in any of dired/occur/wgrep yet. > > Maybe we could use the same key `C-x C-q' for `occur-edit-mode', and > improve it in such a way that it doesn't cause unexpected results > when the user intends to edit just the *Occur* buffer, and not its > associated source buffers. Thank you for the reply. Current proposed keys are summarized in Table 1. Honestly, I am not capable to improve *Occur* and even I do not know how I proceed for the next step including technical aspects as described on www.emacswiki.org/emacs/BzrForEmacsCasualDevs. Could you give me a suggestion? Best regards, Tak Table 1: A proposed mode, function, key-bind as-is, and key-bind plus to have consistency between dired-, occur-, and grep. |--------+-------------------------------------------+---------------+-----------| | mode | function | key-as-is | key-plus | |--------+-------------------------------------------+---------------+-----------| | ! | A. edit-buffer (enable/finish/abort) | | | |--------+-------------------------------------------+---------------+-----------| | wdired | (dired-toggle-read-only) | "C-x C-q" | | | | (wdired-finish-edit) | "C-c C-c" | | | | (wdired-abort-changes) | "C-c C-k" | | | occur | (occur-edit-mode)* | "e" | "C-x C-q" | | | (occur-cease-edit) | "C-c C-c" | | | | n/a | | "C-c C-k" | | wgrep | (wgrep-change-to-wgrep-mode) | "C-c C-p" | "C-x C-q" | | | (wgrep-finish-edit) | "C-c C-c" | | | | (wgrep-abort-changes) | "C-c C-k" | | |--------+-------------------------------------------+---------------+-----------| | ! | B. open-file-other-window | | | |--------+-------------------------------------------+---------------+-----------| | dired | (dired-find-file-other-window) | "o" | | | occur | (occur-mode-goto-occurrence-other-window) | and "o" | | | grep | (compile-goto-error) | | "o" | |--------+-------------------------------------------+---------------+-----------| | ! | C. open-file-other-window-no-select | | | |--------+-------------------------------------------+---------------+-----------| | dired | (dired-display-file) | "C-o" | | | occur | (occur-mode-display-occurrence) | "C-o" | | | grep | n/a | | "C-o" | |--------+-------------------------------------------+---------------+-----------| | ! | D. open-file-this-window | | | |--------+-------------------------------------------+---------------+-----------| | dired | (dired-find-file) | and "f" | | | occur | n/a | | "f" | | grep | n/a | | "f" | |--------+-------------------------------------------+---------------+-----------| | ! | Z. summary of function-assign-to- | | | |--------+-------------------------------------------+---------------+-----------| | dired | (dired-find-file) | and "f" | | | occur | (occur-mode-goto-occurrence-other-window) | and "o" | | | grep | (compile-goto-error) | | "o" | |--------+-------------------------------------------+---------------+-----------|