[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scratch/package-vc-fixes 8956d833b3 12/16: Fix generation of documentati
From: |
Philip Kaludercic |
Subject: |
scratch/package-vc-fixes 8956d833b3 12/16: Fix generation of documentation for source packages |
Date: |
Thu, 10 Nov 2022 14:44:05 -0500 (EST) |
branch: scratch/package-vc-fixes
commit 8956d833b3b5652d0e0360ba0692d9c326bd1eb1
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>
Fix generation of documentation for source packages
* lisp/emacs-lisp/package-vc.el (package-vc--build-documentation):
Call "makeinfo" before "install-info"
---
lisp/emacs-lisp/package-vc.el | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el
index 5d6d649dbc..f8948905ea 100644
--- a/lisp/emacs-lisp/package-vc.el
+++ b/lisp/emacs-lisp/package-vc.el
@@ -359,7 +359,11 @@ asynchronously."
"Build documentation for package PKG-DESC from documentation source in FILE.
FILE can be an Org file, indicated by its \".org\" extension,
otherwise it's assumed to be an Info file."
- (let ((pkg-dir (package-desc-dir pkg-desc)))
+ (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)))
(when (string-match-p "\\.org\\'" file)
(require 'ox)
(require 'ox-texinfo)
@@ -367,8 +371,10 @@ 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
- file pkg-dir)))
+ output pkg-dir)))
(defun package-vc--unpack-1 (pkg-desc pkg-dir)
"Prepare PKG-DESC that is already checked-out in PKG-DIR.
- scratch/package-vc-fixes 55af74cd1e 08/16: Fix the docstring for 'package-vc--version', (continued)
- scratch/package-vc-fixes 55af74cd1e 08/16: Fix the docstring for 'package-vc--version', Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 95882b0567 09/16: Clarify 'package-vc--build-documentation' docstring, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 6ba14d437b 10/16: Expand 'package-vc--unpack-1' documentation, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 12a7853844 11/16: Remove references to internal symbols from public docstrings, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 9e4ef24033 15/16: Explain what "refreshing" a source package means, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes a2be7f006a 16/16: Fix type error in package-vc prompt function, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes cb6415a45a 01/16: ; Fix interactive spec for 'package-vc-refresh', Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 61048ae3fa 02/16: Handle strings as keys in 'package-vc-ensure-packages', Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes fe4b9fbbd3 03/16: Rename '-ensure-packages' to -install-selected-packages', Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes ed0caa9032 04/16: Mark 'package-vc-install-selected-packages' as interactive, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes 8956d833b3 12/16: Fix generation of documentation for source packages,
Philip Kaludercic <=
- scratch/package-vc-fixes 1eeca3607e 13/16: Allow specifying a :lisp-dir for package descriptions, Philip Kaludercic, 2022/11/10
- scratch/package-vc-fixes cf39a432f9 14/16: Track 'default-directory' while updating source packages, Philip Kaludercic, 2022/11/10