[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/package-vc-fixes 663cb70e15 40/48: Remove temporary .texi files
From: |
Philip Kaludercic |
Subject: |
scratch/package-vc-fixes 663cb70e15 40/48: Remove temporary .texi files if used to build documentation |
Date: |
Wed, 16 Nov 2022 04:50:10 -0500 (EST) |
branch: scratch/package-vc-fixes
commit 663cb70e1547b3d64e52f892dd18c83f34a6b8ce
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Remove temporary .texi files if used to build documentation
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation):
Remember if a temporary file was generated and delete it afterwards.
---
lisp/emacs-lisp/package-vc.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index 5c322ac7b4..93e20bca85 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -356,14 +356,16 @@ FILE can be an Org file, indicated by its \".org\"
extension,
otherwise it's assumed to be an Info file."
(let* ((pkg-name (package-desc-name pkg-desc))
(default-directory (package-desc-dir pkg-desc))
- (output (expand-file-name (format "%s.info" pkg-name))))
+ (output (expand-file-name (format "%s.info" pkg-name)))
+ clean-up)
(when (string-match-p "\\.org\\'" file)
(require 'ox)
(require 'ox-texinfo)
(with-temp-buffer
(insert-file-contents file)
(setq file (make-temp-file "ox-texinfo-"))
- (org-export-to-file 'texinfo file)))
+ (org-export-to-file 'texinfo file)
+ (setq clean-up t)))
(with-current-buffer (get-buffer-create " *package-vc doc*")
(erase-buffer)
(cond
@@ -375,7 +377,9 @@ otherwise it's assumed to be an Info file."
output (expand-file-name "dir")))
(message "Failed to install manual %s, see buffer %S"
output (buffer-name)))
- ((kill-buffer))))))
+ ((kill-buffer))))
+ (when clean-up
+ (delete-file file))))
(defun package-vc--unpack-1 (pkg-desc pkg-dir)
"Prepare PKG-DESC that is already checked-out in PKG-DIR.
- scratch/package-vc-fixes aca27e0905 10/48: Expand 'package-vc--unpack-1' documentation, (continued)
- scratch/package-vc-fixes aca27e0905 10/48: Expand 'package-vc--unpack-1' documentation, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 685b4b274b 08/48: Fix the docstring for 'package-vc--version', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes c29189587b 07/48: Fix 'package-vc-selected-packages' documentation, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 6a46e7d3ee 17/48: Move package spec documentation to 'package-vc-selected-packages', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 58b2a64225 23/48: Fix edebug spec for 'package--with-response-buffer', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes b45d2fb4b2 29/48: * lisp/emacs-lisp/package-vc.el (package-vc-update-all): Add command, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes a10cd1b927 36/48: Fix accidental generation of circular lists, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes bc9c7aee30 34/48: Improve robustness of 'package-vc-update', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes a89f7bc1dc 27/48: Raise 'wrong-type-argument' when installing package nil, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 4730409de9 38/48: Fix the behaviour or 'byte-compile-ignore-files', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 663cb70e15 40/48: Remove temporary .texi files if used to build documentation,
Philip Kaludercic <=
- scratch/package-vc-fixes 6b35279259 45/48: Fix issues related to 'package-vc-install-from-checkout', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes c383864f96 46/48: Have 'package-delete' handle symlinked packages correctly, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 7815894592 11/48: Remove references to internal symbols from public docstrings, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 2121ef0899 12/48: Fix generation of documentation for source packages, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 4b30679030 15/48: Explain what "refreshing" a source package means, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes aab49e7baa 35/48: * lisp/emacs-lisp/package.el (package-lisp-dir): Fix return value, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes aeb386007b 04/48: Mark 'package-vc-install-selected-packages' as interactive, Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes 32310b69ab 01/48: ; Fix interactive spec for 'package-vc-refresh', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes bea359d186 05/48: Autoload 'package-vc-install-selected-packages', Philip Kaludercic, 2022/11/16
- scratch/package-vc-fixes d051b24c3c 09/48: Clarify 'package-vc--build-documentation' docstring, Philip Kaludercic, 2022/11/16