diff options
| author | Glenn Morris | 2008-01-22 06:39:44 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-01-22 06:39:44 +0000 |
| commit | f52749ed49f1793cf6d89f4f37039b6d70ae291c (patch) | |
| tree | c39785c246ce4710a176d619626f4270f57ee6a3 | |
| parent | 10edbb1ac92ec50bd4847cbbba783f97a6d18792 (diff) | |
| download | emacs-f52749ed49f1793cf6d89f4f37039b6d70ae291c.tar.gz emacs-f52749ed49f1793cf6d89f4f37039b6d70ae291c.zip | |
(vc-diff-sentinel): Do not write a footer if there were differences.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc.el | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5045c30b3e4..6fd1b706a9c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-01-22 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * vc.el (vc-diff-sentinel): Do not write a footer if there were | ||
| 4 | differences. | ||
| 5 | |||
| 1 | 2008-01-21 Reiner Steib <Reiner.Steib@gmx.de> | 6 | 2008-01-21 Reiner Steib <Reiner.Steib@gmx.de> |
| 2 | 7 | ||
| 3 | * pcvs-defs.el (cvs-menu): Improve cvs-mode-find-file, | 8 | * pcvs-defs.el (cvs-menu): Improve cvs-mode-find-file, |
diff --git a/lisp/vc.el b/lisp/vc.el index ffe38a68521..38338d7f395 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1,7 +1,8 @@ | |||
| 1 | ;;; vc.el --- drive a version-control system from within Emacs | 1 | ;;; vc.el --- drive a version-control system from within Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, | 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, |
| 4 | ;; 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | 4 | ;; 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
| 5 | ;; Free Software Foundation, Inc. | ||
| 5 | 6 | ||
| 6 | ;; Author: FSF (see below for full credits) | 7 | ;; Author: FSF (see below for full credits) |
| 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 8 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| @@ -1951,11 +1952,10 @@ the buffer contents as a comment." | |||
| 1951 | ;; possibility of an empty output is for an async process, in which case | 1952 | ;; possibility of an empty output is for an async process, in which case |
| 1952 | ;; it's important to insert the "diffs end here" message in the buffer | 1953 | ;; it's important to insert the "diffs end here" message in the buffer |
| 1953 | ;; since the user may miss a message in the echo area. | 1954 | ;; since the user may miss a message in the echo area. |
| 1954 | (when verbose | 1955 | (and verbose |
| 1955 | (let ((inhibit-read-only t)) | 1956 | (zerop (buffer-size)) |
| 1956 | (if (eq (buffer-size) 0) | 1957 | (let ((inhibit-read-only t)) |
| 1957 | (insert "No differences found.\n") | 1958 | (insert "No differences found.\n"))) |
| 1958 | (insert (format "\n\nDiffs between %s and %s end here." rev1-name rev2-name))))) | ||
| 1959 | (goto-char (point-min)) | 1959 | (goto-char (point-min)) |
| 1960 | (shrink-window-if-larger-than-buffer)) | 1960 | (shrink-window-if-larger-than-buffer)) |
| 1961 | 1961 | ||