[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/php-mode 89faad8518 1/5: Fix php-run-builtin-web-server to
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/php-mode 89faad8518 1/5: Fix php-run-builtin-web-server to expand root path |
Date: |
Wed, 7 Sep 2022 22:59:01 -0400 (EDT) |
branch: elpa/php-mode
commit 89faad8518486a12391a01558d30dacc9af6796e
Author: USAMI Kenta <tadsan@zonu.me>
Commit: USAMI Kenta <tadsan@zonu.me>
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