[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r99885: (vc-dir-kill-line): New comma
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r99885: (vc-dir-kill-line): New command. |
Date: |
Mon, 12 Apr 2010 15:14:16 -0400 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99885
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Mon 2010-04-12 15:14:16 -0400
message:
(vc-dir-kill-line): New command.
(vc-dir-mode-map): Bind it to C-k.
modified:
lisp/ChangeLog
lisp/vc-dir.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2010-04-12 19:12:36 +0000
+++ b/lisp/ChangeLog 2010-04-12 19:14:16 +0000
@@ -1,5 +1,8 @@
2010-04-12 Stefan Monnier <address@hidden>
+ * vc-dir.el (vc-dir-kill-line): New command.
+ (vc-dir-mode-map): Bind it to C-k.
+
* bookmark.el (bookmark-insert-location): Handle a nil filename.
* woman.el: Add bookmark declarations to silence the compiler.
=== modified file 'lisp/vc-dir.el'
--- a/lisp/vc-dir.el 2010-03-24 17:33:39 +0000
+++ b/lisp/vc-dir.el 2010-04-12 19:14:16 +0000
@@ -263,6 +263,7 @@
(define-key map [mouse-2] 'vc-dir-toggle-mark)
(define-key map [follow-link] 'mouse-face)
(define-key map "x" 'vc-dir-hide-up-to-date)
+ (define-key map [?\C-k] 'vc-dir-kill-line)
(define-key map "S" 'vc-dir-search) ;; FIXME: Maybe use A like dired?
(define-key map "Q" 'vc-dir-query-replace-regexp)
(define-key map (kbd "M-s a C-s") 'vc-dir-isearch)
@@ -1088,6 +1089,13 @@
(ewoc-delete vc-ewoc crt))
(setq crt prev)))))
+(defun vc-dir-kill-line ()
+ "Remove the current line from display."
+ (interactive)
+ (let ((crt (ewoc-locate vc-ewoc))
+ (inhibit-read-only t))
+ (ewoc-delete vc-ewoc crt)))
+
(defun vc-dir-printer (fileentry)
(vc-call-backend vc-dir-backend 'dir-printer fileentry))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r99885: (vc-dir-kill-line): New command.,
Stefan Monnier <=