aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond2008-05-15 12:36:31 +0000
committerEric S. Raymond2008-05-15 12:36:31 +0000
commit373b6519838eab3f77db38e0ea7b646daf20e13b (patch)
tree1d76427db539b5f33ca2be861f00f8ee8bfee7a8
parent79f105c9882f5314380da7db1b39c37b4186f2e1 (diff)
downloademacs-373b6519838eab3f77db38e0ea7b646daf20e13b.tar.gz
emacs-373b6519838eab3f77db38e0ea7b646daf20e13b.zip
Fix an incorrect buffer name and remove an unneeded defalias.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc-dispatcher.el24
2 files changed, 16 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fe27f9e37bc..71f5f8797f1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-05-15 Eric S. Raymond <esr@snark.thyrsus.com>
2
3 * vc-dispatcher.el: Fix an incorrect buffer name and remove an
4 unneeded defalias.
5
12008-05-15 Glenn Morris <rgm@gnu.org> 62008-05-15 Glenn Morris <rgm@gnu.org>
2 7
3 * vc-hooks.el (vc-directory-resynch-file): Fix declaration. 8 * vc-hooks.el (vc-directory-resynch-file): Fix declaration.
diff --git a/lisp/vc-dispatcher.el b/lisp/vc-dispatcher.el
index 1bda08c4cff..876ea020d4f 100644
--- a/lisp/vc-dispatcher.el
+++ b/lisp/vc-dispatcher.el
@@ -111,7 +111,7 @@
111;; it should work for other async commands done through vc-do-command 111;; it should work for other async commands done through vc-do-command
112;; as well, 112;; as well,
113;; 113;;
114;; - the *VC-log* buffer needs font-locking. 114;; - log buffers need font-locking.
115;; 115;;
116;; - vc-dir needs mouse bindings. 116;; - vc-dir needs mouse bindings.
117;; 117;;
@@ -628,7 +628,7 @@ See `run-hooks'."
628 :type 'hook 628 :type 'hook
629 :group 'vc) 629 :group 'vc)
630 630
631;; Used to store information for the files displayed in the *VC status* buffer. 631;; Used to store information for the files displayed in the directory buffer.
632;; Each item displayed corresponds to one of these defstructs. 632;; Each item displayed corresponds to one of these defstructs.
633(defstruct (vc-dir-fileinfo 633(defstruct (vc-dir-fileinfo
634 (:copier nil) 634 (:copier nil)
@@ -667,7 +667,7 @@ See `run-hooks'."
667 667
668(defvar vc-ewoc nil) 668(defvar vc-ewoc nil)
669(defvar vc-dir-process-buffer nil 669(defvar vc-dir-process-buffer nil
670 "The buffer used for the asynchronous call that computes the VC status.") 670 "The buffer used for the asynchronous call that computes status.")
671 671
672(defun vc-dir-move-to-goal-column () 672(defun vc-dir-move-to-goal-column ()
673 ;; Used to keep the cursor on the file name column. 673 ;; Used to keep the cursor on the file name column.
@@ -705,11 +705,11 @@ See `run-hooks'."
705 (define-key map [kill] 705 (define-key map [kill]
706 '(menu-item "Kill Update Command" vc-dir-kill-dir-status-process 706 '(menu-item "Kill Update Command" vc-dir-kill-dir-status-process
707 :enable (vc-dir-busy) 707 :enable (vc-dir-busy)
708 :help "Kill the command that updates VC status buffer")) 708 :help "Kill the command that updates the directory buffer"))
709 (define-key map [refresh] 709 (define-key map [refresh]
710 '(menu-item "Refresh" vc-dir-refresh 710 '(menu-item "Refresh" vc-dir-refresh
711 :enable (not (vc-dir-busy)) 711 :enable (not (vc-dir-busy))
712 :help "Refresh the contents of the VC status buffer")) 712 :help "Refresh the contents of the directory buffer"))
713 ;; Movement. 713 ;; Movement.
714 (define-key map [sepmv] '("--")) 714 (define-key map [sepmv] '("--"))
715 (define-key map [next-line] 715 (define-key map [next-line]
@@ -750,8 +750,6 @@ See `run-hooks'."
750 map) 750 map)
751 "Menu for dispatcher status") 751 "Menu for dispatcher status")
752 752
753(defalias 'vc-dir-menu-map vc-dir-menu-map)
754
755(defvar vc-dir-mode-map 753(defvar vc-dir-mode-map
756 (let ((map (make-keymap))) 754 (let ((map (make-keymap)))
757 (suppress-keymap map) 755 (suppress-keymap map)
@@ -789,9 +787,9 @@ See `run-hooks'."
789 '(menu-item 787 '(menu-item
790 ;; This is used so that client modes can add mode-specific 788 ;; This is used so that client modes can add mode-specific
791 ;; menu items to vc-dir-menu-map. 789 ;; menu items to vc-dir-menu-map.
792 "VC Status" vc-dir-menu-map :filter vc-dir-menu-map-filter)) 790 "*vc-dir*" ,vc-dir-menu-map :filter vc-dir-menu-map-filter))
793 map) 791 map)
794 "Keymap for VC status") 792 "Keymap for directory buffer.")
795 793
796(defmacro vc-at-event (event &rest body) 794(defmacro vc-at-event (event &rest body)
797 "Evaluate `body' wich point located at event-start of `event'. 795 "Evaluate `body' wich point located at event-start of `event'.
@@ -805,7 +803,7 @@ If `body' uses `event', it should be a variable,
805 ,@body)))) 803 ,@body))))
806 804
807(defun vc-dir-menu (e) 805(defun vc-dir-menu (e)
808 "Popup the VC status menu." 806 "Popup the dispatcher status menu."
809 (interactive "e") 807 (interactive "e")
810 (vc-at-event e (popup-menu vc-dir-menu-map e))) 808 (vc-at-event e (popup-menu vc-dir-menu-map e)))
811 809
@@ -937,7 +935,7 @@ If NOINSERT, ignore elements on ENTRIES which are not in the ewoc."
937 (setq mode-line-process nil)))) 935 (setq mode-line-process nil))))
938 936
939(defun vc-dir-kill-query () 937(defun vc-dir-kill-query ()
940 ;; Make sure that when the VC status buffer is killed the update 938 ;; Make sure that when the status buffer is killed the update
941 ;; process running in background is also killed. 939 ;; process running in background is also killed.
942 (if (vc-dir-busy) 940 (if (vc-dir-busy)
943 (when (y-or-n-p "Status update process running, really kill status buffer?") 941 (when (y-or-n-p "Status update process running, really kill status buffer?")
@@ -1295,7 +1293,7 @@ that share the same state."
1295 (unless found-vc-dir-buf (remove-hook 'after-save-hook 'vc-directory-resynch-file)))))) 1293 (unless found-vc-dir-buf (remove-hook 'after-save-hook 'vc-directory-resynch-file))))))
1296 1294
1297(defun vc-dir-mode (client-object) 1295(defun vc-dir-mode (client-object)
1298 "Major mode for showing the VC status for a directory. 1296 "Major mode for dispatcher directory buffers.
1299Marking/Unmarking key bindings and actions: 1297Marking/Unmarking key bindings and actions:
1300m - marks a file/directory or if the region is active, mark all the files 1298m - marks a file/directory or if the region is active, mark all the files
1301 in region. 1299 in region.
@@ -1328,7 +1326,7 @@ U - if the cursor is on a file: unmark all the files with the same VC state
1328 (ewoc-create (vc-client-object->file-to-info client-object) 1326 (ewoc-create (vc-client-object->file-to-info client-object)
1329 (vc-client-object->headers client-object))) 1327 (vc-client-object->headers client-object)))
1330 (add-hook 'after-save-hook 'vc-directory-resynch-file) 1328 (add-hook 'after-save-hook 'vc-directory-resynch-file)
1331 ;; Make sure that if the VC status buffer is killed, the update 1329 ;; Make sure that if the directory buffer is killed, the update
1332 ;; process running in the background is also killed. 1330 ;; process running in the background is also killed.
1333 (add-hook 'kill-buffer-query-functions 'vc-dir-kill-query nil t) 1331 (add-hook 'kill-buffer-query-functions 'vc-dir-kill-query nil t)
1334 (funcall (vc-client-object->updater client-object))) 1332 (funcall (vc-client-object->updater client-object)))