aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2006-10-02 00:21:07 +0000
committerStefan Monnier2006-10-02 00:21:07 +0000
commit04e408d9e2f1a527a9b15e0fb29be4a8740837dc (patch)
tree0d5c36724a694549ba12066ea58b60b405289baf
parentb6357463235b6b4226f1f8e8675796e94b4b5d6b (diff)
downloademacs-04e408d9e2f1a527a9b15e0fb29be4a8740837dc.tar.gz
emacs-04e408d9e2f1a527a9b15e0fb29be4a8740837dc.zip
(cvs-update-header): Fix handling of extra newlines so that
they don't keep accumulating.
-rw-r--r--lisp/ChangeLog20
-rw-r--r--lisp/pcvs.el12
2 files changed, 19 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fa1a28ce307..ac87a20cbc1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,8 +1,12 @@
12006-10-01 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * pcvs.el (cvs-update-header): Fix handling of extra newlines so that
4 they don't keep accumulating.
5
12006-10-01 Bob Rogers <rogers-emacs@rgrjr.dyndns.org> (tiny change) 62006-10-01 Bob Rogers <rogers-emacs@rgrjr.dyndns.org> (tiny change)
2 7
3 * ffap.el (ffap-rfc-path): Change the address of the RFC 8 * ffap.el (ffap-rfc-path): Change the address of the RFC
4 repository to ftp.rfc-editor.org, as ds.internic.net seems to be 9 repository to ftp.rfc-editor.org, as ds.internic.net seems to be gone.
5 gone.
6 10
72006-10-01 Stephen Berman <Stephen.Berman@gmx.net> 112006-10-01 Stephen Berman <Stephen.Berman@gmx.net>
8 12
@@ -38,7 +42,7 @@
38 42
392006-09-30 Martin Rudalics <rudalics@gmx.at> 432006-09-30 Martin Rudalics <rudalics@gmx.at>
40 44
41 * files.el (find-file-existing): Modified to not allow wildcards. 45 * files.el (find-file-existing): Modify to not allow wildcards.
42 46
432006-09-30 Johan Bockg,Ae(Brd <bojohan@dd.chalmers.se> 472006-09-30 Johan Bockg,Ae(Brd <bojohan@dd.chalmers.se>
44 48
@@ -47,15 +51,15 @@
47 51
482006-09-30 Michael Welsh Duggan <md5i@cs.cmu.edu> 522006-09-30 Michael Welsh Duggan <md5i@cs.cmu.edu>
49 53
50 * progmodes/sh-script.el (sh-prev-thing): Take 54 * progmodes/sh-script.el (sh-prev-thing):
51 `sh-leading-keywords' into account. 55 Take `sh-leading-keywords' into account.
52 56
532006-09-29 Glenn Morris <rgm@gnu.org> 572006-09-29 Glenn Morris <rgm@gnu.org>
54 58
55 * custom.el (defcustom): Doc fix. 59 * custom.el (defcustom): Doc fix.
56 60
57 * calendar/calendar.el (european-calendar-style): Call 61 * calendar/calendar.el (european-calendar-style):
58 european-calendar or american-calendar as needed when set. 62 Call european-calendar or american-calendar as needed when set.
59 (diary-view-entries, list-calendar-holidays): Move autoloads 63 (diary-view-entries, list-calendar-holidays): Move autoloads
60 before use. 64 before use.
61 65
@@ -82,7 +86,7 @@
822006-09-29 Carsten Dominik <dominik@science.uva.nl> 862006-09-29 Carsten Dominik <dominik@science.uva.nl>
83 87
84 * textmodes/org.el (org-file-remote-p): Get regexp from list. 88 * textmodes/org.el (org-file-remote-p): Get regexp from list.
85 (org-archive-subtree): remove erraneous `]' from character list. 89 (org-archive-subtree): Remove erraneous `]' from character list.
86 90
872006-09-28 Jonathan Yavner <jyavner@member.fsf.org> 912006-09-28 Jonathan Yavner <jyavner@member.fsf.org>
88 92
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--------------------- "