summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc-hooks.el6
2 files changed, 11 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index dd16a81ea9a..bad5c7052bd 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2008-03-26 Dan Nicolaescu <dann@ics.uci.edu>
+
+ * vc-hooks.el (vc-default-mode-line-string): Deal with 'removed
+ and 'missing files.
+
2008-03-26 Stefan Monnier <monnier@iro.umontreal.ca>
* calendar/holidays.el (list-holidays): Make Y2 optional.
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 7b5e065fa59..06cdbef34e8 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -862,6 +862,12 @@ This function assumes that the file is registered."
((eq state 'added)
(setq state-echo "Locally added file")
(concat backend "@" rev))
+ ((eq state 'removed)
+ (setq state-echo "File removed from the VC system")
+ (concat backend "!" rev))
+ ((eq state 'missing)
+ (setq state-echo "File tracked by the VC system, but missing from the file system")
+ (concat backend "^" rev))
(t
;; Not just for the 'edited state, but also a fallback
;; for all other states. Think about different symbols