]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix VC package build when doc file isn't in a subdir
authorDaniel Semyonov <daniel@dsemy.com>
Fri, 23 Jun 2023 05:40:57 +0000 (08:40 +0300)
committerPhilip Kaludercic <philipk@posteo.net>
Sun, 25 Jun 2023 21:33:24 +0000 (23:33 +0200)
* 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

index 17e93c430c944c369f8781d670d04e3009d7d8d0..b4c911015b595ba5d88765644f695189f113eb34 100644 (file)
@@ -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)