GNU bug report logs - #27435
patch for dired-mouse-find-file-other-window

Previous Next

Package: emacs;

Reported by: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>

Date: Wed, 21 Jun 2017 02:04:02 UTC

Severity: wishlist

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
Cc: 27435 <at> debbugs.gnu.org
Subject: bug#27435: patch for dired-mouse-find-file-other-window
Date: Sat, 26 Aug 2017 13:27:39 +0300
> Date: Sat, 26 Aug 2017 18:26:58 +0900 (JST)
> Cc: 27435 <at> debbugs.gnu.org, tkk <at> misasa.okayama-u.ac.jp
> From: Tak Kunihiro <tkk <at> misasa.okayama-u.ac.jp>
> 
> > Can you describe a use case where you need to customize the function
> > used to visit a file from Dired?
> 
> 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
> <this-window> not in <other-window> 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.




This bug report was last modified 7 years and 262 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.