From 501719afed815164d65a226d9ccfd7384d298556 Mon Sep 17 00:00:00 2001 From: Romain Francoise Date: Thu, 13 Apr 2006 14:38:39 +0000 Subject: [PATCH] (cvs-parse-table): Use `with-temp-buffer' to avoid leaving temporary .cvsignore buffers behind. --- lisp/ChangeLog | 5 +++++ lisp/pcvs-parse.el | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a174e83b5cd..6f73827fa17 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2006-04-13 Romain Francoise + + * pcvs-parse.el (cvs-parse-table): Use `with-temp-buffer' to avoid + leaving temporary .cvsignore buffers behind. + 2006-04-13 Carsten Dominik * textmodes/org.el: (org-set-regexps-and-options, diff --git a/lisp/pcvs-parse.el b/lisp/pcvs-parse.el index 2053d8f5bd5..892dc962767 100644 --- a/lisp/pcvs-parse.el +++ b/lisp/pcvs-parse.el @@ -271,8 +271,8 @@ The remaining KEYS are passed directly to `cvs-create-fileinfo'." ;; 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 -- 2.39.2