aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorRobert Pluim2019-10-31 10:52:20 +0100
committerRobert Pluim2019-10-31 10:53:05 +0100
commite168bb73865f64cc67f80f8b2599c826cbf9e957 (patch)
tree04001f4f952cff9fc150877584f388c95521b2c6 /etc
parente65be8cc5b623385ebe31aa0a1089e0de2b075b5 (diff)
downloademacs-e168bb73865f64cc67f80f8b2599c826cbf9e957.tar.gz
emacs-e168bb73865f64cc67f80f8b2599c826cbf9e957.zip
Rework vc stash bindings
This adds create/snapshot bindings to the stash button even when there are no stashes, and extends the stash menu bindings. * etc/NEWS: Announce the bindings. * lisp/vc/vc-git.el (vc-git-stash-shared-map): New keymap. Holds shared bindings between stash button and stash list. (vc-git-stash-map): Inherit from vc-git-stash-shared-map. (vc-git-stash-button-map): New keymap. Holds button bindings, inherit from vc-git-stash-shared-map. (vc-git-stash-shared-help, vc-git-stash-list-help): New defconsts. Abstract out list/button help texts. (vc-git--make-button-text): Set keymap property to vc-git-stash-button-map. (vc-git-make-stash-button): Use vc-git-stash-shared-help. (vc-git-stash-menu-map): Add items for vc-git-stash and vc-git-stash-snapshot. (vc-git-dir-extra-headers): Use vc-git-stash-list-help and vc-git-stash-shared-help. Add vc-git-stash and vc-git-stash-snapshot bindings to text shown when there are no stashes.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index cd1e46bb872..ee73d2414bd 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -879,6 +879,10 @@ When no files are marked, all modified files are stashed, as before.
879*** 'vc-git-stash' has now been bound to the 'C' keystroke in the 879*** 'vc-git-stash' has now been bound to the 'C' keystroke in the
880stash headers. 880stash headers.
881 881
882*** Some stash keybindings are now available in the stash button.
883'vc-git-stash' and 'vc-git-stash-snapshot' can now be run using 'C'
884and 'S' respectively, including when there are no stashes.
885
882*** The new hook 'vc-retrieve-tag-hook' runs after retrieving a tag. 886*** The new hook 'vc-retrieve-tag-hook' runs after retrieving a tag.
883 887
884--- 888---