# HG changeset patch # User Richard M. Stallman # Date 803922617 0 # Node ID 8fecaa78ac4bb129b29c09975e576533e815ea9f # Parent a910242e72c0ab77f7646ee828552f1767b99321 (vc-backend-admin, vc-backend-checkin): Assume that comments are empty if they contain only white space. diff -r a910242e72c0 -r 8fecaa78ac4b lisp/vc.el --- a/lisp/vc.el Thu Jun 22 23:01:20 1995 +0000 +++ b/lisp/vc.el Fri Jun 23 15:50:17 1995 +0000 @@ -1545,7 +1545,7 @@ ((eq backend 'CVS) (vc-do-command 0 "cvs" file 'WORKFILE ;; CVS "add" - (and comment (not (string= comment "")) + (and comment (string-match "[^\t\n ]" comment) (concat "-m" comment))) ))) (message "Registering %s...done" file) @@ -1688,8 +1688,9 @@ ;; accordingly. (message "Checking in %s..." file) ;; "This log message intentionally left almost blank". - (and (or (not comment) (string= comment "")) - (setq comment "*** empty log message ***")) + ;; RCS 5.7 gripes about white-space-only comments too. + (or (and comment (string-match "[^\t\n ]" comment)) + (setq comment "*** empty log message ***")) (save-excursion ;; Change buffers to get local value of vc-checkin-switches. (set-buffer (or (get-file-buffer file) (current-buffer)))