Mercurial > emacs
changeset 3895:0710180efd8b
(vc-diff): If `diff' gives empty output, return nil.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 25 Jun 1993 21:30:54 +0000 |
parents | a2dc34c691cc |
children | bea021b3124a |
files | lisp/vc.el |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/vc.el Fri Jun 25 06:41:54 1993 +0000 +++ b/lisp/vc.el Fri Jun 25 21:30:54 1993 +0000 @@ -726,8 +726,14 @@ ;; visited. This plays hell with numerous assumptions in ;; the diff.el and compile.el machinery. (pop-to-buffer "*vc*") - (vc-shrink-to-fit) - (goto-char (point-min)) + (pop-to-buffer "*vc*") + (if (= 0 (buffer-size)) + (progn + (setq unchanged t) + (message "No changes to %s since latest version." file)) + (vc-shrink-to-fit) + (goto-char (point-min))) + ) (not unchanged) )