From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tak Kunihiro Newsgroups: gmane.emacs.bugs Subject: bug#27435: patch for dired-mouse-find-file-other-window Date: Sun, 27 Aug 2017 18:02:43 +0900 (JST) Message-ID: <20170827.180243.351755072000785818.tkk@misasa.okayama-u.ac.jp> References: <83ziam698h.fsf@gnu.org> <20170826.182658.1910804375178800263.tkk@misasa.okayama-u.ac.jp> <83o9r262uc.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1503824661 26481 195.159.176.226 (27 Aug 2017 09:04:21 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Aug 2017 09:04:21 +0000 (UTC) Cc: 27435@debbugs.gnu.org, tkk@misasa.okayama-u.ac.jp To: eliz@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 27 11:04:14 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dltUF-00061g-3a for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 11:04:07 +0200 Original-Received: from localhost ([::1]:60084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dltUI-0003sS-W4 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Aug 2017 05:04:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54110) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dltUD-0003sM-Gr for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 05:04:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dltUA-0007hX-Bz for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 05:04:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48335) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dltUA-0007hT-8H for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 05:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dltU9-0006M2-Sj for bug-gnu-emacs@gnu.org; Sun, 27 Aug 2017 05:04:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tak Kunihiro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Aug 2017 09:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 27435 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 27435-submit@debbugs.gnu.org id=B27435.150382458524366 (code B ref 27435); Sun, 27 Aug 2017 09:04:01 +0000 Original-Received: (at 27435) by debbugs.gnu.org; 27 Aug 2017 09:03:05 +0000 Original-Received: from localhost ([127.0.0.1]:57015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dltTE-0006Kv-MQ for submit@debbugs.gnu.org; Sun, 27 Aug 2017 05:03:04 -0400 Original-Received: from mxl065v65.mxlogic.net ([208.81.65.65]:33684 helo=s14p02o142.mxlogic.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dltTB-0006KU-Qu for 27435@debbugs.gnu.org; Sun, 27 Aug 2017 05:03:03 -0400 Original-Received: from unknown [42.127.236.175] (EHLO mlsec.cc.okayama-u.ac.jp) by s14p02o142.mxlogic.net(mxl_mta-8.5.0-1834) over TLS secured channel with ESMTP id fba82a95.0.66812.00-396.137015.s14p02o142.mxlogic.net (envelope-from ); Sun, 27 Aug 2017 03:02:56 -0600 (MDT) X-MXL-Hash: 59a28ac07b0e1a47-9d3e0441dd8175c56fd117d92c5b32587ed8fc07 Original-Received: from alml002.ouadm.okayama-u.ac.jp (unknown [42.127.236.168]) by mlsec.cc.okayama-u.ac.jp with smtp id 1b1b_3b2b_48c531b6_acbc_45a7_a285_2e54266bf5fd; Sun, 27 Aug 2017 18:02:53 +0900 Original-Received: from localhost (p219225-ipngn200207tottori.tottori.ocn.ne.jp [153.182.218.225]) by alml002.ouadm.okayama-u.ac.jp (Postfix) with ESMTPSA id D42374C092E; Sun, 27 Aug 2017 18:02:47 +0900 (JST) In-Reply-To: <83o9r262uc.fsf@gnu.org> X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO) X-NAI-Spam-Flag: NO X-NAI-Spam-Level: ********** X-NAI-Spam-Threshold: 11 X-NAI-Spam-Score: 10.1 X-NAI-Spam-Rules: 6 Rules triggered TS_MSG_REP_80_512=10, RCVD_BAD_SIP=0.1, EDT_SA_AU_PASS=0, EDT_SA_DN_PASS=0, EDT_SA_TS_FAIL=0, RV6102=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6102> : inlines <6038> : streams <1760379> : uri <2490513> X-AnalysisOut: [v=2.2 cv=DI//22Fb c=1 sm=1 tr=0 a=8LLPK8U+aGQ6qN8QlyMYtQ==] X-AnalysisOut: [:117 a=8LLPK8U+aGQ6qN8QlyMYtQ==:17 a=kj9zAlcOel0A:10 a=KeK] X-AnalysisOut: [AF7QvOSUA:10 a=Q2zgcNCPUS8WusbPfT0A:9 a=CjuIK1q_8ugA:10] X-Spam: [F=0.5000000000; CM=0.500; MH=0.500(2017082703); S=0.309(2015072901)] X-MAIL-FROM: X-SOURCE-IP: [42.127.236.175] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:136249 Archived-At: >> On dired I use `RET', `o', and `C-o' on different occasions and I >> prefer mouse click to work as `RET' instead of `C-o'. This is >> especially true when there are more than three windows in a frame. >> >> The patch lets mouse click on dired visit a file or directory in >> not in with following customization. >> >> (setq dired-mouse-find-file-func 'find-file) > > But you could have the same effect by rebinding mouse-2 to another > function. We just need to add such a function, which should work like > dired-mouse-find-file-other-window, but visit the file in the same > window. That sounds like a better alternative for this use case, > because customizing a function-valued variable is trickier for users > than rebinding keys. I agree. Then the new function `dired-mouse-find-file-this-window' will look very similar to `dired-mouse-find-file-other-window' but two lines. Is that OK?