From 4df510c7a7097641169ac8f088bf1923ea04c2cc Mon Sep 17 00:00:00 2001 From: Daniel Semyonov Date: Fri, 23 Jun 2023 08:40:57 +0300 Subject: [PATCH] Fix VC package build when doc file isn't in a subdir * lisp/emacs-lisp/package-vc.el (package-vc--build-documentation): Expand 'file' before attempting to get its directory. (Bug#64242) --- lisp/emacs-lisp/package-vc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/package-vc.el b/lisp/emacs-lisp/package-vc.el index 17e93c430c9..b4c911015b5 100644 --- a/lisp/emacs-lisp/package-vc.el +++ b/lisp/emacs-lisp/package-vc.el @@ -347,7 +347,7 @@ 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)) - (docs-directory (expand-file-name (file-name-directory file))) + (docs-directory (file-name-directory (expand-file-name file))) (output (expand-file-name (format "%s.info" pkg-name))) clean-up) (when (string-match-p "\\.org\\'" file) -- 2.39.2