changeset 70014:876ca9433460

(cvs-parse-table): Use `with-temp-buffer' to avoid leaving temporary .cvsignore buffers behind.
author Romain Francoise <romain@orebokech.com>
date Thu, 13 Apr 2006 14:38:39 +0000
parents d30be4cf861a
children 8676ce0ffe86
files lisp/ChangeLog lisp/pcvs-parse.el
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Apr 13 14:31:23 2006 +0000
+++ b/lisp/ChangeLog	Thu Apr 13 14:38:39 2006 +0000
@@ -1,3 +1,8 @@
+2006-04-13  Romain Francoise  <romain@orebokech.com>
+
+	* pcvs-parse.el (cvs-parse-table): Use `with-temp-buffer' to avoid
+	leaving temporary .cvsignore buffers behind.
+
 2006-04-13  Carsten Dominik  <dominik@science.uva.nl>
 
 	* textmodes/org.el: (org-set-regexps-and-options,
--- a/lisp/pcvs-parse.el	Thu Apr 13 14:31:23 2006 +0000
+++ b/lisp/pcvs-parse.el	Thu Apr 13 14:38:39 2006 +0000
@@ -271,8 +271,8 @@
 	;; on the current branch (either because it only exists in other
 	;; branches, or because it's been removed).
 	(if (ignore-errors
-	      (with-current-buffer
-		  (find-file-noselect (expand-file-name
+	      (with-temp-buffer
+		(insert-file-contents (expand-file-name
 				       ".cvsignore" (file-name-directory dir)))
 		(goto-char (point-min))
 		(re-search-forward