[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 7c3d3fa44e 19/42: Improve robustness of documentation generation
From: |
Philip Kaludercic |
Subject: |
master 7c3d3fa44e 19/42: Improve robustness of documentation generation |
Date: |
Thu, 17 Nov 2022 14:56:22 -0500 (EST) |
branch: master
commit 7c3d3fa44e666b71881c34afa3d357feec758ec0
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Improve robustness of documentation generation
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Log
output and display error messages if anything goes wrong.
---
lisp/emacs-lisp/package-vc.el | 22 ++++++++++++++--------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index d9b335f1cf..7fed1b5885 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -355,10 +355,8 @@ asynchronously."
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))
- (pkg-dir (package-desc-dir pkg-desc))
- (output (file-name-concat
- (format "%s.info" pkg-name)
- pkg-dir)))
+ (default-directory (package-desc-dir pkg-desc))
+ (output (expand-file-name (format "%s.info" pkg-name))))
(when (string-match-p "\\.org\\'" file)
(require 'ox)
(require 'ox-texinfo)
@@ -366,10 +364,18 @@ otherwise it's assumed to be an Info file."
(insert-file-contents file)
(setq file (make-temp-file "ox-texinfo-"))
(org-export-to-file 'texinfo file)))
- (call-process "makeinfo" nil nil nil
- "--no-split" file "-o" output)
- (call-process "install-info" nil nil nil
- output pkg-dir)))
+ (with-current-buffer (get-buffer-create " *package-vc doc*")
+ (erase-buffer)
+ (cond
+ ((/= 0 (call-process "makeinfo" nil t nil
+ "--no-split" file "-o" output))
+ (message "Failed to build manual %s, see buffer %S"
+ file (buffer-name)))
+ ((/= 0 (call-process "install-info" nil t nil
+ output (expand-file-name "dir")))
+ (message "Failed to install manual %s, see buffer %S"
+ output (buffer-name)))
+ ((kill-buffer))))))
(defun package-vc--unpack-1 (pkg-desc pkg-dir)
"Prepare PKG-DESC that is already checked-out in PKG-DIR.
- master 13d051b443 11/42: Remove references to internal symbols from public docstrings, (continued)
- master 13d051b443 11/42: Remove references to internal symbols from public docstrings, Philip Kaludercic, 2022/11/17
- master e1ce202ad1 04/42: Mark 'package-vc-install-selected-packages' as interactive, Philip Kaludercic, 2022/11/17
- master 32758c6da0 08/42: Fix the docstring for 'package-vc--version', Philip Kaludercic, 2022/11/17
- master f939859fe4 09/42: Clarify 'package-vc--build-documentation' docstring, Philip Kaludercic, 2022/11/17
- master b0200a37e4 10/42: Expand 'package-vc--unpack-1' documentation, Philip Kaludercic, 2022/11/17
- master 2ec02024ab 14/42: Track 'default-directory' while updating source packages, Philip Kaludercic, 2022/11/17
- master d67b66f8ab 13/42: Respect :lisp-dir in package specs by loading a sub-directory, Philip Kaludercic, 2022/11/17
- master c53c5f3884 15/42: Rename 'package-vc-refresh' to 'package-vc-rebuild', Philip Kaludercic, 2022/11/17
- master 348f7d263c 17/42: Move package spec documentation to 'package-vc-selected-packages', Philip Kaludercic, 2022/11/17
- master 2b93d0e6f1 16/42: Fix type error in package-vc prompt function, Philip Kaludercic, 2022/11/17
- master 7c3d3fa44e 19/42: Improve robustness of documentation generation,
Philip Kaludercic <=
- master ccd7ab84c5 20/42: Fix edebug spec for 'package--with-response-buffer', Philip Kaludercic, 2022/11/17
- master 496c578d9c 22/42: Have 'package-vc-selected-packages' consider all installed packages, Philip Kaludercic, 2022/11/17
- master a467afbd98 25/42: Mention package name when package is lacking VC data, Philip Kaludercic, 2022/11/17
- master 7ab556b576 29/42: Improve robustness of 'package-vc-update', Philip Kaludercic, 2022/11/17
- master 3326337776 30/42: Avoid destructive manipulation of 'package-vc--archive-spec-alist', Philip Kaludercic, 2022/11/17
- master 32f51f17c4 33/42: Remove temporary .texi files if used to build documentation, Philip Kaludercic, 2022/11/17
- master 228c247e6f 34/42: Remove duplicate package descriptions after updating, Philip Kaludercic, 2022/11/17
- master 4bd7ae833f 36/42: Allow the direct installation of package specifications, Philip Kaludercic, 2022/11/17
- master 53c90abfa8 37/42: ; * lisp/emacs-lisp/package-vc.el: Update TODO, Philip Kaludercic, 2022/11/17
- master aadf07f5b8 05/42: Autoload 'package-vc-install-selected-packages', Philip Kaludercic, 2022/11/17