aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2004-03-28 22:02:16 +0000
committerStefan Monnier2004-03-28 22:02:16 +0000
commit3b52037becdc4481a040ec066c84780e2d442b07 (patch)
tree167c6dc30680a9deddd772c83b4a2331b1f34e21
parentc63f9a0e46092fc44087b5e10266b695bf967623 (diff)
downloademacs-3b52037becdc4481a040ec066c84780e2d442b07.tar.gz
emacs-3b52037becdc4481a040ec066c84780e2d442b07.zip
(cvs-parse-process): Workaround for Darwin.
-rw-r--r--lisp/pcvs.el12
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index a7683ce371e..cc72d02f64a 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -1,6 +1,6 @@
1;;; pcvs.el --- a front-end to CVS 1;;; pcvs.el --- a front-end to CVS
2 2
3;; Copyright (C) 1991,92,93,94,95,95,97,98,99,2000,02,2003 3;; Copyright (C) 1991,92,93,94,95,95,97,98,99,2000,02,03,2004
4;; Free Software Foundation, Inc. 4;; Free Software Foundation, Inc.
5 5
6;; Author: (The PCL-CVS Trust) pcl-cvs@cyclic.com 6;; Author: (The PCL-CVS Trust) pcl-cvs@cyclic.com
@@ -12,7 +12,7 @@
12;; (Stefan Monnier) monnier@cs.yale.edu 12;; (Stefan Monnier) monnier@cs.yale.edu
13;; (Greg Klanderman) greg@alphatech.com 13;; (Greg Klanderman) greg@alphatech.com
14;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com 14;; (Jari Aalto+mail.emacs) jari.aalto@poboxes.com
15;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu 15;; Maintainer: (Stefan Monnier) monnier@gnu.org
16;; Keywords: CVS, version control, release management 16;; Keywords: CVS, version control, release management
17 17
18;; This file is part of GNU Emacs. 18;; This file is part of GNU Emacs.
@@ -669,6 +669,14 @@ DCD is the `dont-change-disc' flag to use when parsing that output.
669SUBDIR is the subdirectory (if any) where this command was run. 669SUBDIR is the subdirectory (if any) where this command was run.
670OLD-FIS is the list of fileinfos on which the cvs command was applied and 670OLD-FIS is the list of fileinfos on which the cvs command was applied and
671 which should be considered up-to-date if they are missing from the output." 671 which should be considered up-to-date if they are missing from the output."
672 (when (eq system-type 'darwin)
673 ;; Fixup the ^D^H^H inserted at beginning of buffer sometimes on MacOSX
674 ;; because of the call to `process-send-eof'.
675 (save-excursion
676 (goto-char (point-min))
677 (while (re-search-forward "^\\^D+" nil t)
678 (let ((inhibit-read-only t))
679 (delete-region (match-beginning 0) (match-end 0))))))
672 (let* ((fileinfos (cvs-parse-buffer 'cvs-parse-table dcd subdir)) 680 (let* ((fileinfos (cvs-parse-buffer 'cvs-parse-table dcd subdir))
673 last) 681 last)
674 (with-current-buffer cvs-buffer 682 (with-current-buffer cvs-buffer