aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2010-01-03 22:40:30 -0800
committerDan Nicolaescu2010-01-03 22:40:30 -0800
commit8e7e22861ed0543f9934dcba83f04aec5d92e6a3 (patch)
treeffff072bc783e6b606d9d82527452b13a7a4f113
parent3d5d0aa92fcc051e46badde9742870a0aa3f66b6 (diff)
downloademacs-8e7e22861ed0543f9934dcba83f04aec5d92e6a3.tar.gz
emacs-8e7e22861ed0543f9934dcba83f04aec5d92e6a3.zip
(vc-bzr-shelve-map): Change binding for vc-bzr-shelve-apply-at-point.
(vc-bzr-shelve-menu-map): (vc-bzr-dir-extra-headers): Improve menu and tooltip text. (vc-bzr-shelve-apply): Make prompt more explicit.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc-bzr.el14
2 files changed, 11 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7a56bd064c2..bf32b86899b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,10 @@
3 * vc-bzr.el (vc-bzr-state-heuristic): Make it work for lightweight 3 * vc-bzr.el (vc-bzr-state-heuristic): Make it work for lightweight
4 checkouts. (Bug#618) 4 checkouts. (Bug#618)
5 (vc-bzr-log-view-mode): Also highlight the author. 5 (vc-bzr-log-view-mode): Also highlight the author.
6 (vc-bzr-shelve-map): Change binding for vc-bzr-shelve-apply-at-point.
7 (vc-bzr-shelve-menu-map):
8 (vc-bzr-dir-extra-headers): Improve menu and tooltip text.
9 (vc-bzr-shelve-apply): Make prompt more explicit.
6 10
72010-01-02 Chong Yidong <cyd@stupidchicken.com> 112010-01-02 Chong Yidong <cyd@stupidchicken.com>
8 12
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el
index c5b82e38a78..e2560e4c013 100644
--- a/lisp/vc-bzr.el
+++ b/lisp/vc-bzr.el
@@ -741,7 +741,7 @@ stream. Standard error output is discarded."
741 (define-key map "\C-k" 'vc-bzr-shelve-delete-at-point) 741 (define-key map "\C-k" 'vc-bzr-shelve-delete-at-point)
742 ;; (define-key map "=" 'vc-bzr-shelve-show-at-point) 742 ;; (define-key map "=" 'vc-bzr-shelve-show-at-point)
743 ;; (define-key map "\C-m" 'vc-bzr-shelve-show-at-point) 743 ;; (define-key map "\C-m" 'vc-bzr-shelve-show-at-point)
744 (define-key map "A" 'vc-bzr-shelve-apply-at-point) 744 (define-key map "P" 'vc-bzr-shelve-apply-at-point)
745 map)) 745 map))
746 746
747(defvar vc-bzr-shelve-menu-map 747(defvar vc-bzr-shelve-menu-map
@@ -749,9 +749,9 @@ stream. Standard error output is discarded."
749 (define-key map [de] 749 (define-key map [de]
750 '(menu-item "Delete shelf" vc-bzr-shelve-delete-at-point 750 '(menu-item "Delete shelf" vc-bzr-shelve-delete-at-point
751 :help "Delete the current shelf")) 751 :help "Delete the current shelf"))
752 (define-key map [ap] 752 (define-key map [po]
753 '(menu-item "Apply shelf" vc-bzr-shelve-apply-at-point 753 '(menu-item "Apply and remove shelf (pop)" vc-bzr-shelve-apply-at-point
754 :help "Apply the current shelf")) 754 :help "Apply the current shelf and remove it"))
755 ;; (define-key map [sh] 755 ;; (define-key map [sh]
756 ;; '(menu-item "Show shelve" vc-bzr-shelve-show-at-point 756 ;; '(menu-item "Show shelve" vc-bzr-shelve-show-at-point
757 ;; :help "Show the contents of the current shelve")) 757 ;; :help "Show the contents of the current shelve"))
@@ -809,7 +809,7 @@ stream. Standard error output is discarded."
809 (propertize x 809 (propertize x
810 'face 'font-lock-variable-name-face 810 'face 'font-lock-variable-name-face
811 'mouse-face 'highlight 811 'mouse-face 'highlight
812 'help-echo "mouse-3: Show shelve menu\nA: Apply shelf\nC-k: Delete shelf" 812 'help-echo "mouse-3: Show shelve menu\nP: Apply and remove shelf (pop)\nC-k: Delete shelf"
813 'keymap vc-bzr-shelve-map)) 813 'keymap vc-bzr-shelve-map))
814 shelve "\n")) 814 shelve "\n"))
815 (concat 815 (concat
@@ -839,8 +839,8 @@ stream. Standard error output is discarded."
839;; (pop-to-buffer (current-buffer))) 839;; (pop-to-buffer (current-buffer)))
840 840
841(defun vc-bzr-shelve-apply (name) 841(defun vc-bzr-shelve-apply (name)
842 "Apply shelve NAME." 842 "Apply shelve NAME and remove it afterwards."
843 (interactive "sApply shelf: ") 843 (interactive "sApply (and remove) shelf: ")
844 (vc-bzr-command "unshelve" "*vc-bzr-shelve*" 0 nil "--apply" name) 844 (vc-bzr-command "unshelve" "*vc-bzr-shelve*" 0 nil "--apply" name)
845 (vc-resynch-buffer (vc-bzr-root default-directory) t t)) 845 (vc-resynch-buffer (vc-bzr-root default-directory) t t))
846 846