diff options
| -rw-r--r-- | lisp/vc.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 8cd4a752a43..2629b9268e1 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1545,7 +1545,7 @@ From a program, any arguments are passed to the `rcs2log' script." | |||
| 1545 | ((eq backend 'CVS) | 1545 | ((eq backend 'CVS) |
| 1546 | (vc-do-command 0 "cvs" file 'WORKFILE ;; CVS | 1546 | (vc-do-command 0 "cvs" file 'WORKFILE ;; CVS |
| 1547 | "add" | 1547 | "add" |
| 1548 | (and comment (not (string= comment "")) | 1548 | (and comment (string-match "[^\t\n ]" comment) |
| 1549 | (concat "-m" comment))) | 1549 | (concat "-m" comment))) |
| 1550 | ))) | 1550 | ))) |
| 1551 | (message "Registering %s...done" file) | 1551 | (message "Registering %s...done" file) |
| @@ -1688,8 +1688,9 @@ From a program, any arguments are passed to the `rcs2log' script." | |||
| 1688 | ;; accordingly. | 1688 | ;; accordingly. |
| 1689 | (message "Checking in %s..." file) | 1689 | (message "Checking in %s..." file) |
| 1690 | ;; "This log message intentionally left almost blank". | 1690 | ;; "This log message intentionally left almost blank". |
| 1691 | (and (or (not comment) (string= comment "")) | 1691 | ;; RCS 5.7 gripes about white-space-only comments too. |
| 1692 | (setq comment "*** empty log message ***")) | 1692 | (or (and comment (string-match "[^\t\n ]" comment)) |
| 1693 | (setq comment "*** empty log message ***")) | ||
| 1693 | (save-excursion | 1694 | (save-excursion |
| 1694 | ;; Change buffers to get local value of vc-checkin-switches. | 1695 | ;; Change buffers to get local value of vc-checkin-switches. |
| 1695 | (set-buffer (or (get-file-buffer file) (current-buffer))) | 1696 | (set-buffer (or (get-file-buffer file) (current-buffer))) |