[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/php-mode 45b4587671 2/5: Merge pull request #699 from emac
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/php-mode 45b4587671 2/5: Merge pull request #699 from emacs-php/fix/php-run-builtin-web-server |
Date: |
Wed, 7 Sep 2022 22:59:01 -0400 (EDT) |
branch: elpa/php-mode
commit 45b4587671aeccca1934f7436785e0893fbe98ec
Merge: ca6ae67dab 89faad8518
Author: USAMI Kenta <tadsan@zonu.me>
Commit: GitHub <noreply@github.com>
Merge pull request #699 from emacs-php/fix/php-run-builtin-web-server
Fix php-run-builtin-web-server to expand root path
---
lisp/php.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lisp/php.el b/lisp/php.el
index 9ab8492cc5..1a49e42ed7 100644
--- a/lisp/php.el
+++ b/lisp/php.el
@@ -585,7 +585,8 @@ When `DOCUMENT-ROOT' is NIL, the document root is obtained
from `ROUTER-OR-DIR'.
(read-number "Port: " php-default-builtin-web-server-port)
(if (file-directory-p d-o-r)
nil
- (let ((root-input (read-file-name "Document root: "
(directory-file-name d-o-r))))
+ (let ((root-input (expand-file-name
+ (read-file-name "Document root: "
(directory-file-name d-o-r)))))
(file-name-directory
(if (file-directory-p root-input)
root-input