aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/server.el
diff options
context:
space:
mode:
authorDan Nicolaescu <[email protected]>2008-01-27 15:37:26 +0000
committerDan Nicolaescu <[email protected]>2008-01-27 15:37:26 +0000
commit475b5907736f25b9b67641c1698937cc0ca76b83 (patch)
tree9c20f7055cc755deffc788ca160904815cd44801 /lisp/server.el
parent4fae8922bea01886f04e534c26b12f2876fefb80 (diff)
* server.el (server-process-filter): Check for non-nil before calling
file-directory-p.
Diffstat (limited to 'lisp/server.el')
-rw-r--r--lisp/server.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/server.el b/lisp/server.el
index d3606f5c86..ad4608f2fd 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -952,7 +952,8 @@ The following commands are accepted by the client:
;; Use the same cwd as the emacsclient, if possible, so
;; relative file names work correctly, even in `eval'.
(let ((default-directory
- (if (file-directory-p dir) dir default-directory)))
+ (if (and dir (file-directory-p dir))
+ dir default-directory)))
(server-execute proc files nowait commands
dontkill frame tty-name))))))