aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2010-09-30 14:44:25 +0200
committerEli Zaretskii2010-09-30 14:44:25 +0200
commitcad90f3b7ad1fafdb09d1bcd3fe4908f94cb3943 (patch)
tree8f26c612d9ad2ecde3430812dcc2ab8f7f360bd6
parent743595bc3405fc3d063a5089ea54fcd33b0812ad (diff)
downloademacs-cad90f3b7ad1fafdb09d1bcd3fe4908f94cb3943.tar.gz
emacs-cad90f3b7ad1fafdb09d1bcd3fe4908f94cb3943.zip
Fix documentation of VC status indicator in mode line.
lisp/vc/vc-hooks.el (vc-default-mode-line-string): Doc fix. doc/emacs/maintaining.texi (VC Mode Line): Mention all the possible VC status indicator characters.
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/maintaining.texi16
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/vc/vc-hooks.el3
4 files changed, 26 insertions, 2 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 79a2b0ec2f2..cba54de80b1 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,8 @@
12010-09-30 Eli Zaretskii <eliz@gnu.org>
2
3 * maintaining.texi (VC Mode Line): Mention all the possible VC status
4 indicator characters.
5
12010-09-29 Glenn Morris <rgm@gnu.org> 62010-09-29 Glenn Morris <rgm@gnu.org>
2 7
3 * Makefile.in (top_srcdir): Remove unused variable. 8 * Makefile.in (top_srcdir): Remove unused variable.
diff --git a/doc/emacs/maintaining.texi b/doc/emacs/maintaining.texi
index f5a93ec60e7..b407f5b9c99 100644
--- a/doc/emacs/maintaining.texi
+++ b/doc/emacs/maintaining.texi
@@ -362,10 +362,16 @@ change, and later use the @kbd{C-x v a} command to copy it to
362 362
363@node VC Mode Line 363@node VC Mode Line
364@subsection Version Control and the Mode Line 364@subsection Version Control and the Mode Line
365@cindex VC, mode line indicator
365 366
366 When you visit a file that is under version control, Emacs indicates 367 When you visit a file that is under version control, Emacs indicates
367this on the mode line. For example, @samp{RCS-1.3} says that RCS is 368this on the mode line. For example, @samp{RCS-1.3} says that the RCS
368used for that file, and the current version is 1.3. 369back end is used for that file, and the current version of the file is
3701.3.
371
372 The first part of the VC mode-line indicator is the name of the back
373end: @samp{RCS}, @samp{CVS}, @samp{Bzr}, etc. The back-end name is
374followed by a single character and the version of the file.
369 375
370 The character between the back-end name and the revision ID 376 The character between the back-end name and the revision ID
371indicates the version control status of the file. @samp{-} means that 377indicates the version control status of the file. @samp{-} means that
@@ -373,6 +379,12 @@ the work file is not locked (if locking is in use), or not modified (if
373locking is not in use). @samp{:} indicates that the file is locked, or 379locking is not in use). @samp{:} indicates that the file is locked, or
374that it is modified. If the file is locked by some other user (for 380that it is modified. If the file is locked by some other user (for
375instance, @samp{jim}), that is displayed as @samp{RCS:jim:1.3}. 381instance, @samp{jim}), that is displayed as @samp{RCS:jim:1.3}.
382@samp{@@} means that the file was locally added, but not yet committed
383to the master repository. @samp{!} indicates that the file contains
384conflicts as result of a recent merge operation (@pxref{Merging}), or
385that the file was removed from the version control. Finally, @samp{?}
386means that the file is under version control, but is missing from the
387working tree.
376 388
377 On a graphical display, you can move the mouse over this mode line 389 On a graphical display, you can move the mouse over this mode line
378indicator to pop up a ``tool-tip'', which displays a more verbose 390indicator to pop up a ``tool-tip'', which displays a more verbose
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a5d171744e9..b23262bc367 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12010-09-30 Eli Zaretskii <eliz@gnu.org>
2
3 * vc/vc-hooks.el (vc-default-mode-line-string): Doc fix.
4
12010-09-30 Juanma Barranquero <lekktu@gmail.com> 52010-09-30 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * server.el (server-start): Don't write pid to the authentication file. 7 * server.el (server-start): Don't write pid to the authentication file.
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el
index 91e9b8e3cd3..5007231d960 100644
--- a/lisp/vc/vc-hooks.el
+++ b/lisp/vc/vc-hooks.el
@@ -815,6 +815,9 @@ Format:
815 \"BACKEND-REV\" if the file is up-to-date 815 \"BACKEND-REV\" if the file is up-to-date
816 \"BACKEND:REV\" if the file is edited (or locked by the calling user) 816 \"BACKEND:REV\" if the file is edited (or locked by the calling user)
817 \"BACKEND:LOCKER:REV\" if the file is locked by somebody else 817 \"BACKEND:LOCKER:REV\" if the file is locked by somebody else
818 \"BACKEND@REV\" if the file was locally added
819 \"BACKEND!REV\" if the file contains conflicts or was removed
820 \"BACKEND?REV\" if the file is under VC, but is missing
818 821
819This function assumes that the file is registered." 822This function assumes that the file is registered."
820 (let* ((backend-name (symbol-name backend)) 823 (let* ((backend-name (symbol-name backend))