diff options
Diffstat (limited to 'lisp/pcvs.el')
| -rw-r--r-- | lisp/pcvs.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index a9105227bfd..1f2bad13dcd 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -618,7 +618,6 @@ If non-nil, NEW means to create a new buffer no matter what." | |||
| 618 | (str (car hf)) | 618 | (str (car hf)) |
| 619 | (done "") | 619 | (done "") |
| 620 | (tin (ewoc-nth cvs-cookies 0))) | 620 | (tin (ewoc-nth cvs-cookies 0))) |
| 621 | (if (eq (length str) 2) (setq str "")) | ||
| 622 | ;; look for the first *real* fileinfo (to determine emptyness) | 621 | ;; look for the first *real* fileinfo (to determine emptyness) |
| 623 | (while | 622 | (while |
| 624 | (and tin | 623 | (and tin |
| @@ -626,14 +625,17 @@ If non-nil, NEW means to create a new buffer no matter what." | |||
| 626 | '(MESSAGE DIRCHANGE))) | 625 | '(MESSAGE DIRCHANGE))) |
| 627 | (setq tin (ewoc-next cvs-cookies tin))) | 626 | (setq tin (ewoc-next cvs-cookies tin))) |
| 628 | (if add | 627 | (if add |
| 629 | (setq str (concat "-- Running " cmd " ...\n" str)) | 628 | (progn |
| 629 | ;; Remove the default empty line, if applicable. | ||
| 630 | (if (not (string-match "." str)) (setq str "\n")) | ||
| 631 | (setq str (concat "-- Running " cmd " ...\n" str))) | ||
| 630 | (if (not (string-match | 632 | (if (not (string-match |
| 631 | (concat "^-- Running " (regexp-quote cmd) " \\.\\.\\.\n") str)) | 633 | (concat "^-- Running " (regexp-quote cmd) " \\.\\.\\.\n") str)) |
| 632 | (error "Internal PCL-CVS error while removing message") | 634 | (error "Internal PCL-CVS error while removing message") |
| 633 | (setq str (replace-match "" t t str)) | 635 | (setq str (replace-match "" t t str)) |
| 634 | (if (zerop (length str)) (setq str "\n")) | 636 | ;; Re-add the default empty line, if applicable. |
| 635 | (setq done (concat "-- last cmd: " cmd " --")))) | 637 | (if (not (string-match "." str)) (setq str "\n\n")) |
| 636 | (setq str (concat str "\n") done (concat done "\n")) | 638 | (setq done (concat "-- last cmd: " cmd " --\n")))) |
| 637 | ;; set the new header and footer | 639 | ;; set the new header and footer |
| 638 | (ewoc-set-hf cvs-cookies | 640 | (ewoc-set-hf cvs-cookies |
| 639 | str (concat "\n--------------------- " | 641 | str (concat "\n--------------------- " |