bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#19450: 25.0.50; In vc-dir display file in other window


From: Juri Linkov
Subject: bug#19450: 25.0.50; In vc-dir display file in other window
Date: Sun, 28 Dec 2014 02:55:59 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (x86_64-pc-linux-gnu)

>> +(defun vc-dir-display-file (&optional event)
>> +  "Display the file on the current line, in another window."
>> +  (interactive (list last-nonmenu-event))
>> +  (if event (posn-set-point (event-end event)))
>> +  (display-buffer (find-file-noselect (vc-dir-current-file))
>> +              t))
>
> Why not use `vc-dir-find-file-other-window'?

`vc-dir-display-file' is intended to provide consistency with
all other similar commands:

dired-display-file
occur-mode-display-occurrence
Buffer-menu-switch-other-window
...





reply via email to

[Prev in Thread] Current Thread [Next in Thread]