]> git.eshelyaron.com Git - emacs.git/commitdiff
Add bindings for vc-git-stash-delete-at-point, vc-git-stash-delete
authorSean Whitton <spwhitton@spwhitton.name>
Mon, 7 Apr 2025 03:28:13 +0000 (11:28 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 8 Apr 2025 05:47:12 +0000 (07:47 +0200)
* lisp/vc/vc-git.el (vc-git-stash-map): Bind "D" to
vc-git-stash-delete-at-point.
(vc-dir-git-mode-map): Bind "z d" to vc-git-stash-delete.
* etc/NEWS: Announce the new bindings.

(cherry picked from commit e9e11f7281899aa206ff6f62a183fa83cde48e95)

lisp/vc/vc-git.el

index 0b0b9449f5d258cdc023acadea3127811ff7e99d..2aabdf87c5f390add70c89b8588d63adf00621d9 100644 (file)
@@ -817,7 +817,8 @@ or an empty string if none."
   "="              #'vc-git-stash-show-at-point
   "RET"            #'vc-git-stash-show-at-point
   "A"              #'vc-git-stash-apply-at-point
-  "P"              #'vc-git-stash-pop-at-point)
+  "P"              #'vc-git-stash-pop-at-point
+  "D"              #'vc-git-stash-delete-at-point)
 
 (defvar-keymap vc-git-stash-button-map
   :parent vc-git-stash-shared-map
@@ -2448,7 +2449,8 @@ the function returns nil."
 (defvar-keymap vc-dir-git-mode-map
   "z c" #'vc-git-stash
   "z s" #'vc-git-stash-snapshot
-  "z p" #'vc-git-stash-pop)
+  "z p" #'vc-git-stash-pop
+  "z d" #'vc-git-stash-delete)
 
 (define-minor-mode vc-dir-git-mode
   "A minor mode for git-specific commands in `vc-dir-mode' buffers.