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)
This commit is contained in:
parent
382f5fa813
commit
4df510c7a7
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ FILE can be an Org file, indicated by its \".org\" extension,
|
||||||
otherwise it's assumed to be an Info file."
|
otherwise it's assumed to be an Info file."
|
||||||
(let* ((pkg-name (package-desc-name pkg-desc))
|
(let* ((pkg-name (package-desc-name pkg-desc))
|
||||||
(default-directory (package-desc-dir 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)))
|
(output (expand-file-name (format "%s.info" pkg-name)))
|
||||||
clean-up)
|
clean-up)
|
||||||
(when (string-match-p "\\.org\\'" file)
|
(when (string-match-p "\\.org\\'" file)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue