aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2008-05-17 22:55:57 +0000
committerGlenn Morris2008-05-17 22:55:57 +0000
commitb1d87c1084c3e7169b49f069b3ea97cd65ad5235 (patch)
treee59da997aa3e2278ab9d397ea10c93d4fbf827c2
parent2b38e36f5efe02b3f77b7bd959612ad74e021edd (diff)
downloademacs-b1d87c1084c3e7169b49f069b3ea97cd65ad5235.tar.gz
emacs-b1d87c1084c3e7169b49f069b3ea97cd65ad5235.zip
Fix typos.
-rw-r--r--lisp/vc-dispatcher.el56
1 files changed, 28 insertions, 28 deletions
diff --git a/lisp/vc-dispatcher.el b/lisp/vc-dispatcher.el
index 9dcd65c0f78..4e3267470af 100644
--- a/lisp/vc-dispatcher.el
+++ b/lisp/vc-dispatcher.el
@@ -36,10 +36,10 @@
36;; to address that involves selecting sets of files, or possibly 36;; to address that involves selecting sets of files, or possibly
37;; directories, and passing the selection set to slave commands. The 37;; directories, and passing the selection set to slave commands. The
38;; prototypical example, from which this code is derived, is talking 38;; prototypical example, from which this code is derived, is talking
39;; to version-control systems. 39;; to version-control systems.
40;; 40;;
41;; vc-dispatcher.el is written to decouple the UI issues in such front 41;; vc-dispatcher.el is written to decouple the UI issues in such front
42;; ends from their application-specific logic. It also provides a 42;; ends from their application-specific logic. It also provides a
43;; service layer for running the slave commands either synchronously 43;; service layer for running the slave commands either synchronously
44;; or asynchronously and managing the message/error logs from the 44;; or asynchronously and managing the message/error logs from the
45;; command runs. 45;; command runs.
@@ -54,8 +54,8 @@
54;; Dispatcher's universe: 54;; Dispatcher's universe:
55;; 55;;
56;; The universe consists of the file tree rooted at the current 56;; The universe consists of the file tree rooted at the current
57;; directory. The dispatcher's upper layer deduces some subset 57;; directory. The dispatcher's upper layer deduces some subset
58;; of the file tree from the state of the currently visited buffer 58;; of the file tree from the state of the currently visited buffer
59;; and returns that subset, presumably to a client mode. 59;; and returns that subset, presumably to a client mode.
60;; 60;;
61;; The user may be looking at either of two different views; a buffer 61;; The user may be looking at either of two different views; a buffer
@@ -65,7 +65,7 @@
65;; synchronously or asynchronously. Commands may be launched in one 65;; synchronously or asynchronously. Commands may be launched in one
66;; of two ways: they may be run immediately, or the calling mode can 66;; of two ways: they may be run immediately, or the calling mode can
67;; create a closure associated with a text-entry buffer, to be 67;; create a closure associated with a text-entry buffer, to be
68;; executed when the user types C-c to ship the buffer contents. In 68;; executed when the user types C-c to ship the buffer contents. In
69;; either case the command messages and error (if any) will remain 69;; either case the command messages and error (if any) will remain
70;; available in a status buffer. 70;; available in a status buffer.
71 71
@@ -80,16 +80,16 @@
80;; The standard map associates a 'state' slot (that the client mode 80;; The standard map associates a 'state' slot (that the client mode
81;; may set) with each directory entry. The dispatcher knows nothing 81;; may set) with each directory entry. The dispatcher knows nothing
82;; about the semantics of individual states, but mark and unmark commands 82;; about the semantics of individual states, but mark and unmark commands
83;; treat all entries with the same state as the currently selected one as 83;; treat all entries with the same state as the currently selected one as
84;; a unit. 84;; a unit.
85 85
86;; The interface: 86;; The interface:
87;; 87;;
88;; The main interface to the lower level is vc-do-command. This launches a 88;; The main interface to the lower level is vc-do-command. This launches a
89;; comand, synchronously or asynchronously, making the output available 89;; command, synchronously or asynchronously, making the output available
90;; in a command log buffer. Two other functions, (vc-start-annotation) and 90;; in a command log buffer. Two other functions, (vc-start-annotation) and
91;; (vc-finish-logentry), allow you to associate a command closure with an 91;; (vc-finish-logentry), allow you to associate a command closure with an
92;; abbotation buffer so that when the user confirms the comment the closure 92;; annotation buffer so that when the user confirms the comment the closure
93;; is run (with the comment as part of its context). 93;; is run (with the comment as part of its context).
94;; 94;;
95;; The interface to the upper level has the two main entry points (vc-dir) 95;; The interface to the upper level has the two main entry points (vc-dir)
@@ -97,8 +97,8 @@
97;; (vc-dir) sets up a dispatcher browsing buffer; (vc-dispatcher-selection-set) 97;; (vc-dir) sets up a dispatcher browsing buffer; (vc-dispatcher-selection-set)
98;; returns a selection set of files, either the marked files in a browsing 98;; returns a selection set of files, either the marked files in a browsing
99;; buffer or the singleton set consisting of the file visited by the current 99;; buffer or the singleton set consisting of the file visited by the current
100;; buffer (when that is appropriate). It also does what is needed to ensure 100;; buffer (when that is appropriate). It also does what is needed to ensure
101;; that on-disk files and the contents of their visiting Emacs buffers 101;; that on-disk files and the contents of their visiting Emacs buffers
102;; coincide. 102;; coincide.
103;; 103;;
104;; When the client mode adds a local mode-line-hook to a buffer, it 104;; When the client mode adds a local mode-line-hook to a buffer, it
@@ -108,7 +108,7 @@
108;; To do: 108;; To do:
109;; 109;;
110;; - vc-dir-kill-dir-status-process should not be specific to dir-status, 110;; - vc-dir-kill-dir-status-process should not be specific to dir-status,
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;; - log buffers need font-locking. 114;; - log buffers need font-locking.
@@ -305,7 +305,7 @@ that is inserted into the command line before the filename."
305 (if (listp file-or-list) file-or-list (list file-or-list)))) 305 (if (listp file-or-list) file-or-list (list file-or-list))))
306 (full-command 306 (full-command
307 ;; What we're doing here is preparing a version of the command 307 ;; What we're doing here is preparing a version of the command
308 ;; for display in a debug-progess message. If it's fewer than 308 ;; for display in a debug-progress message. If it's fewer than
309 ;; 20 characters display the entire command (without trailing 309 ;; 20 characters display the entire command (without trailing
310 ;; newline). Otherwise display the first 20 followed by an ellipsis. 310 ;; newline). Otherwise display the first 20 followed by an ellipsis.
311 (concat (if (string= (substring command -1) "\n") 311 (concat (if (string= (substring command -1) "\n")
@@ -356,7 +356,7 @@ that is inserted into the command line before the filename."
356 (vc-exec-after 356 (vc-exec-after
357 `(if vc-command-messages 357 `(if vc-command-messages
358 (message "Running %s in background... done" ',full-command)))) 358 (message "Running %s in background... done" ',full-command))))
359 ;; Run synchrously 359 ;; Run synchronously
360 (when vc-command-messages 360 (when vc-command-messages
361 (message "Running %s in foreground..." full-command)) 361 (message "Running %s in foreground..." full-command))
362 (let ((buffer-undo-list t)) 362 (let ((buffer-undo-list t))
@@ -371,7 +371,7 @@ that is inserted into the command line before the filename."
371 (error "Running %s...FAILED (%s)" full-command 371 (error "Running %s...FAILED (%s)" full-command
372 (if (integerp status) (format "status %d" status) status)))) 372 (if (integerp status) (format "status %d" status) status))))
373 ;; We're done. But don't emit a status message if running 373 ;; We're done. But don't emit a status message if running
374 ;; asychronously, it would just mislead. 374 ;; asynchronously, it would just mislead.
375 (if (and vc-command-messages (not (eq okstatus 'async))) 375 (if (and vc-command-messages (not (eq okstatus 'async)))
376 (message "Running %s...OK = %d" full-command status))) 376 (message "Running %s...OK = %d" full-command status)))
377 (vc-exec-after 377 (vc-exec-after
@@ -380,7 +380,7 @@ that is inserted into the command line before the filename."
380 status)))) 380 status))))
381 381
382;; These functions are used to ensure that the view the user sees is up to date 382;; These functions are used to ensure that the view the user sees is up to date
383;; even if the dispatcher client mode has messed with file contents (as in, 383;; even if the dispatcher client mode has messed with file contents (as in,
384;; for example, VCS keyword expansion). 384;; for example, VCS keyword expansion).
385 385
386(declare-function view-mode-exit "view" (&optional return-to-alist exit-action all-win)) 386(declare-function view-mode-exit "view" (&optional return-to-alist exit-action all-win))
@@ -646,22 +646,22 @@ See `run-hooks'."
646 ;; To distinguish files and directories. 646 ;; To distinguish files and directories.
647 directory) 647 directory)
648 648
649;; Used to describe a dispatcher client mode. 649;; Used to describe a dispatcher client mode.
650(defstruct (vc-client-object 650(defstruct (vc-client-object
651 (:copier nil) 651 (:copier nil)
652 (:constructor 652 (:constructor
653 vc-create-client-object (name 653 vc-create-client-object (name
654 headers 654 headers
655 file-to-info 655 file-to-info
656 file-to-state 656 file-to-state
657 file-to-extra 657 file-to-extra
658 updater 658 updater
659 extra-menu)) 659 extra-menu))
660 (:conc-name vc-client-object->)) 660 (:conc-name vc-client-object->))
661 name 661 name
662 headers 662 headers
663 file-to-info 663 file-to-info
664 file-to-state 664 file-to-state
665 file-to-extra 665 file-to-extra
666 updater 666 updater
667 extra-menu) 667 extra-menu)
@@ -751,7 +751,7 @@ See `run-hooks'."
751 map) 751 map)
752 "Menu for dispatcher status") 752 "Menu for dispatcher status")
753 753
754;; This is used to that client modes can add mode-specific menu 754;; This is used so that client modes can add mode-specific menu
755;; items to vc-dir-menu-map. 755;; items to vc-dir-menu-map.
756(defun vc-dir-menu-map-filter (orig-binding) 756(defun vc-dir-menu-map-filter (orig-binding)
757 (when (and (symbolp orig-binding) (fboundp orig-binding)) 757 (when (and (symbolp orig-binding) (fboundp orig-binding))
@@ -975,7 +975,7 @@ If a prefix argument is given, move by that many lines."
975 "Go to the next directory." 975 "Go to the next directory."
976 (interactive) 976 (interactive)
977 (let ((orig (point))) 977 (let ((orig (point)))
978 (if 978 (if
979 (catch 'foundit 979 (catch 'foundit
980 (while t 980 (while t
981 (let* ((next (ewoc-next vc-ewoc (ewoc-locate vc-ewoc)))) 981 (let* ((next (ewoc-next vc-ewoc (ewoc-locate vc-ewoc))))
@@ -993,7 +993,7 @@ If a prefix argument is given, move by that many lines."
993 "Go to the previous directory." 993 "Go to the previous directory."
994 (interactive) 994 (interactive)
995 (let ((orig (point))) 995 (let ((orig (point)))
996 (if 996 (if
997 (catch 'foundit 997 (catch 'foundit
998 (while t 998 (while t
999 (let* ((prev (ewoc-prev vc-ewoc (ewoc-locate vc-ewoc)))) 999 (let* ((prev (ewoc-prev vc-ewoc (ewoc-locate vc-ewoc))))
@@ -1275,7 +1275,7 @@ that share the same state."
1275 (setq crt (ewoc-next vc-ewoc crt))) 1275 (setq crt (ewoc-next vc-ewoc crt)))
1276 (setq crt (ewoc-next vc-ewoc crt))))) 1276 (setq crt (ewoc-next vc-ewoc crt)))))
1277 result)) 1277 result))
1278 1278
1279(defun vc-directory-resynch-file (&optional fname) 1279(defun vc-directory-resynch-file (&optional fname)
1280 "Update the entries for FILE in any directory buffers that list it." 1280 "Update the entries for FILE in any directory buffers that list it."
1281 (let ((file (or fname (expand-file-name buffer-file-name)))) 1281 (let ((file (or fname (expand-file-name buffer-file-name))))
@@ -1364,19 +1364,19 @@ U - if the cursor is on a file: unmark all the files with the same state
1364 1364
1365(defun vc-dispatcher-selection-set (&optional observer) 1365(defun vc-dispatcher-selection-set (&optional observer)
1366 "Deduce a set of files to which to apply an operation. Return a cons 1366 "Deduce a set of files to which to apply an operation. Return a cons
1367cell (SELECTION . FILESET), where SELECTION is what the user chose 1367cell (SELECTION . FILESET), where SELECTION is what the user chose
1368and FILES is the flist with any directories replaced by the listed files 1368and FILES is the flist with any directories replaced by the listed files
1369within them. 1369within them.
1370 1370
1371If we're in a directory display, the fileset is the list of marked files (if 1371If we're in a directory display, the fileset is the list of marked files (if
1372there is one) else the file on the curreent line. If not in a directory 1372there is one) else the file on the current line. If not in a directory
1373display, but the current buffer visits a file, the fileset is a singleton 1373display, but the current buffer visits a file, the fileset is a singleton
1374containing that file. Otherwise, throw an error." 1374containing that file. Otherwise, throw an error."
1375 (let ((selection 1375 (let ((selection
1376 (cond 1376 (cond
1377 ;; Browsing with vc-dir 1377 ;; Browsing with vc-dir
1378 ((vc-dispatcher-browsing) 1378 ((vc-dispatcher-browsing)
1379 ;; If no files are marked, temporatrily mark current file 1379 ;; If no files are marked, temporarily mark current file
1380 ;; and choose on that basis (so we get subordinate files) 1380 ;; and choose on that basis (so we get subordinate files)
1381 (if (not (vc-dir-marked-files)) 1381 (if (not (vc-dir-marked-files))
1382 (prog2 1382 (prog2