GNU bug report logs -
#19450
25.0.50; In vc-dir display file in other window
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Sat, 27 Dec 2014 01:12:02 UTC
Severity: normal
Found in version 25.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 19450 in the body.
You can then email your comments to 19450 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19450
; Package
emacs
.
(Sat, 27 Dec 2014 01:12:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Juri Linkov <juri <at> linkov.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Sat, 27 Dec 2014 01:12:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This patch adds the standard keybinding `C-o' to vc-dir:
diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el
index 54496b9..c90bf1c 100644
--- a/lisp/vc/vc-dir.el
+++ b/lisp/vc/vc-dir.el
@@ -169,6 +169,9 @@ (defvar vc-dir-menu-map
(define-key map [ise]
'(menu-item "Isearch Files..." vc-dir-isearch
:help "Incremental search a string in the marked files"))
+ (define-key map [display]
+ '(menu-item "Display in Other Window" vc-dir-display-file
+ :help "Display the file on the current line, in another window"))
(define-key map [open-other]
'(menu-item "Open in Other Window" vc-dir-find-file-other-window
:help "Find the file on the current line, in another window"))
@@ -273,6 +276,7 @@ (defvar vc-dir-mode-map
(define-key map "e" 'vc-dir-find-file) ; dired-mode compatibility
(define-key map "\C-m" 'vc-dir-find-file)
(define-key map "o" 'vc-dir-find-file-other-window)
+ (define-key map "\C-o" 'vc-dir-display-file)
(define-key map "\C-c\C-c" 'vc-dir-kill-dir-status-process)
(define-key map [down-mouse-3] 'vc-dir-menu)
(define-key map [mouse-2] 'vc-dir-toggle-mark)
@@ -755,6 +759,13 @@ (defun vc-dir-find-file-other-window (&optional event)
(if event (posn-set-point (event-end event)))
(find-file-other-window (vc-dir-current-file)))
+(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))
+
(defun vc-dir-isearch ()
"Search for a string through all marked buffers using Isearch."
(interactive)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19450
; Package
emacs
.
(Sat, 27 Dec 2014 08:47:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 19450 <at> debbugs.gnu.org (full text, mbox):
On 12/27/2014 03:10 AM, Juri Linkov wrote:
> +(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'?
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19450
; Package
emacs
.
(Sun, 28 Dec 2014 00:57:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 19450 <at> debbugs.gnu.org (full text, mbox):
>> +(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
...
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#19450
; Package
emacs
.
(Sun, 28 Dec 2014 01:27:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 19450 <at> debbugs.gnu.org (full text, mbox):
On 12/28/2014 02:55 AM, Juri Linkov wrote:
> `vc-dir-display-file' is intended to provide consistency with
> all other similar commands:
Ok, that makes sense.
Reply sent
to
Juri Linkov <juri <at> linkov.net>
:
You have taken responsibility.
(Mon, 29 Dec 2014 00:48:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Juri Linkov <juri <at> linkov.net>
:
bug acknowledged by developer.
(Mon, 29 Dec 2014 00:48:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 19450-done <at> debbugs.gnu.org (full text, mbox):
>> `vc-dir-display-file' is intended to provide consistency with
>> all other similar commands:
>
> Ok, that makes sense.
So let it be.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 26 Jan 2015 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 10 years and 150 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.