comparison lisp/vc.el @ 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 d7d674c99039
children 5669887e3692
comparison
equal deleted inserted replaced
3894:a2dc34c691cc 3895:0710180efd8b
724 ;; Unfortunately, this is just too painful to do. The basic 724 ;; Unfortunately, this is just too painful to do. The basic
725 ;; problem is that the `old' file doesn't exist to be 725 ;; problem is that the `old' file doesn't exist to be
726 ;; visited. This plays hell with numerous assumptions in 726 ;; visited. This plays hell with numerous assumptions in
727 ;; the diff.el and compile.el machinery. 727 ;; the diff.el and compile.el machinery.
728 (pop-to-buffer "*vc*") 728 (pop-to-buffer "*vc*")
729 (vc-shrink-to-fit) 729 (pop-to-buffer "*vc*")
730 (goto-char (point-min)) 730 (if (= 0 (buffer-size))
731 (progn
732 (setq unchanged t)
733 (message "No changes to %s since latest version." file))
734 (vc-shrink-to-fit)
735 (goto-char (point-min)))
736
731 ) 737 )
732 (not unchanged) 738 (not unchanged)
733 ) 739 )
734 ) 740 )
735 ) 741 )