From: Dan Nicolaescu Date: Wed, 26 Mar 2008 04:46:42 +0000 (+0000) Subject: (vc-default-mode-line-string): Deal with 'removed X-Git-Tag: emacs-pretest-23.0.90~6907 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a58b57e22c9d9dd474f42441498e15f84349b909;p=emacs.git (vc-default-mode-line-string): Deal with 'removed and 'missing files. --- 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 + + * vc-hooks.el (vc-default-mode-line-string): Deal with 'removed + and 'missing files. + 2008-03-26 Stefan Monnier * 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