summaryrefslogtreecommitdiff
path: root/lisp/vc-git.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2009-11-05 03:24:08 +0000
committerGlenn Morris <rgm@gnu.org>2009-11-05 03:24:08 +0000
commit881e4184a3d83b939559ba684a227eea67e17dd2 (patch)
treeac3905cd5eadd129682146a9c54e8f627626ab99 /lisp/vc-git.el
parent60878f2df03bfe50956f8bb0648a06b06467b74f (diff)
downloademacs-881e4184a3d83b939559ba684a227eea67e17dd2.tar.gz
(vc-git-stash-map): Move definition before use.
Diffstat (limited to 'lisp/vc-git.el')
-rw-r--r--lisp/vc-git.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/vc-git.el b/lisp/vc-git.el
index cee3abe0bb3..9f01a84cc81 100644
--- a/lisp/vc-git.el
+++ b/lisp/vc-git.el
@@ -399,6 +399,13 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
"Return a list of (FILE STATE EXTRA) entries for FILES in DIR."
(vc-git-dir-status-goto-stage 'update-index files update-function))
+(defvar vc-git-stash-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map "\C-k" 'vc-git-stash-delete-at-point)
+ (define-key map "=" 'vc-git-stash-show-at-point)
+ (define-key map "\C-m" 'vc-git-stash-show-at-point)
+ map))
+
(defun vc-git-dir-extra-headers (dir)
(let ((str (with-output-to-string
(with-current-buffer standard-output
@@ -831,13 +838,6 @@ This command shares argument histories with \\[rgrep] and \\[grep]."
(interactive)
(vc-git-stash-show (format "stash@%s" (vc-git-stash-get-at-point (point)))))
-(defvar vc-git-stash-map
- (let ((map (make-sparse-keymap)))
- (define-key map "\C-k" 'vc-git-stash-delete-at-point)
- (define-key map "=" 'vc-git-stash-show-at-point)
- (define-key map "\C-m" 'vc-git-stash-show-at-point)
- map))
-
;;; Internal commands