From b5f5bbc7b050bff1978ff0bb18f6383d1dbbc0de Mon Sep 17 00:00:00 2001 From: Steve Purcell Date: Sat, 21 Apr 2012 17:57:18 +0100 Subject: [PATCH] Don't leave modified buffers open after looking for package info in files --- package-build.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package-build.el b/package-build.el index 5bc88657..4436dd21 100644 --- a/package-build.el +++ b/package-build.el @@ -385,8 +385,8 @@ FILES if non-nil. The file is written to "Get a vector of package info from the docstrings in FILE-PATH." (when (file-exists-p file-path) (ignore-errors - (save-window-excursion - (find-file file-path) + (with-temp-buffer + (insert-file-contents file-path) ;; next two lines are a hack for some packages that aren't ;; commented properly. (goto-char (point-max))