summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorDaniel Semyonov <daniel@dsemy.com>2023-06-23 08:40:57 +0300
committerPhilip Kaludercic <philipk@posteo.net>2023-06-25 23:33:24 +0200
commit4df510c7a7097641169ac8f088bf1923ea04c2cc (patch)
tree745d41155fbe169ded463ce2b26eb338e69e0abd /lisp/emacs-lisp
parent382f5fa81304724c8d708263bb17500a6da813a7 (diff)
downloademacs-4df510c7a7097641169ac8f088bf1923ea04c2cc.tar.gz
emacs-4df510c7a7097641169ac8f088bf1923ea04c2cc.tar.bz2
emacs-4df510c7a7097641169ac8f088bf1923ea04c2cc.zip
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)
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/package-vc.el2
1 files changed, 1 insertions, 1 deletions
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)