[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa-admin 99b8d94 054/439: admin/archive-contents.el (batch-ma
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa-admin 99b8d94 054/439: admin/archive-contents.el (batch-make-archive, archive--process-simple-package): Use write-region |
Date: |
Sun, 17 Oct 2021 15:47:32 -0400 (EDT) |
branch: elpa-admin
commit 99b8d9425806bc2819e58bfa6e03e42d059de3ae
Author: Chong Yidong <cyd@stupidchicken.com>
Commit: Chong Yidong <cyd@stupidchicken.com>
admin/archive-contents.el (batch-make-archive,
archive--process-simple-package): Use write-region
instead of save-buffer.
---
admin/archive-contents.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/admin/archive-contents.el b/admin/archive-contents.el
index 9a185fb..1c4d1a1 100644
--- a/admin/archive-contents.el
+++ b/admin/archive-contents.el
@@ -76,10 +76,9 @@ Otherwise return nil."
packages)))
;; Error handler
(error (message "%s" (cadr v)))))
- (with-current-buffer (find-file-noselect "archive-contents")
- (erase-buffer)
+ (with-temp-buffer
(pp (nreverse packages) (current-buffer))
- (save-buffer))))
+ (write-region nil nil "archive-contents"))))
(defun archive--simple-package-p (dir pkg)
"Test whether DIR contains a simple package named PKG.
@@ -117,7 +116,7 @@ Otherwise, return nil."
Rename DIR/PKG.el to PKG-VERS.el, delete DIR, and write the
package commentary to PKG-readme.txt. Return the descriptor."
;; Write the readme file.
- (with-current-buffer (find-file-noselect (concat pkg "-readme.txt"))
+ (with-temp-buffer
(erase-buffer)
(emacs-lisp-mode)
(insert (or commentary
@@ -133,7 +132,7 @@ package commentary to PKG-readme.txt. Return the
descriptor."
(looking-at "[ \t]*\n"))
(delete-region (match-beginning 0)
(match-end 0)))
- (save-buffer))
+ (write-region nil nil (concat pkg "-readme.txt")))
;; Write DIR/foo.el to foo-VERS.el and delete DIR
(rename-file (expand-file-name (concat pkg ".el") dir)
(concat pkg "-" vers ".el"))
- [nongnu] elpa-admin ae66216 267/439: [admin int] Replace one-armed-‘if’ w/ either ‘when’ or ‘and’., (continued)
- [nongnu] elpa-admin ae66216 267/439: [admin int] Replace one-armed-‘if’ w/ either ‘when’ or ‘and’., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin a23a8b8 271/439: Merge branch 'scratch/hook-helpers', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 334aa51 273/439: Merge commit 'a1130df3ada34e76675324a8c25823b420b20239', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin cb72492 279/439: Merge branch 'ebdb-bits', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin c60a3bb 280/439: Merge branch 'scratch/which-key', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 8154769 282/439: * copyright_exceptions: Update for new uni-confusables/gen-confusables.el, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 280353e 287/439: Merge commit 'cb905bdc728fb3b5f9fdff8836d71b62bd717eab' from mmm-mode, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin aa346f0 290/439: * GNUmakefile (org-fetch): Use https and stick to wget, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 84f67ae 294/439: * admin/archive-contents.el (archive--insert-repolinks): Fix last change, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 0c23652 046/439: Revert "Add an explicit OPERATION-MODE "nil" in README's examples", Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 99b8d94 054/439: admin/archive-contents.el (batch-make-archive, archive--process-simple-package): Use write-region,
Philip Kaludercic <=
- [nongnu] elpa-admin c497b5b 083/439: * GNUmakefile: Rename from Makefile. Add targets for in-place use., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 42c5112 084/439: * GNUmakefile (%.elc): Don't depend on $(autoloads) since that causes, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin cbd75c6 082/439: README.md, load-relative.el: Go over documentation. Makefile.am: add targets test and test-short, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 833084f 126/439: Add 'packages/web-server/' from commit 'd0b6ae9df6014db2195da0081dc97cc8246f1fda', Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 29880d4 115/439: Merge branch 'master' of git://bzr.sv.gnu.org/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin d406160 122/439: Merge the two README. Update copyright_exceptions., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 428b368 137/439: Add "rudel" to the list of externals., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 88fb267 150/439: Update README to tell how to checkout a single external package., Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 773b9dd 147/439: Merge branch 'master' of git+ssh://git.sv.gnu.org/srv/git/emacs/elpa, Philip Kaludercic, 2021/10/17
- [nongnu] elpa-admin 5e1943e 157/439: Merge commit '469cd3bc117bfb8da0c03a2a2fb185e80c81d068', Philip Kaludercic, 2021/10/17