diff options
| author | Dan Nicolaescu | 2008-01-27 15:37:26 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-01-27 15:37:26 +0000 |
| commit | 475b5907736f25b9b67641c1698937cc0ca76b83 (patch) | |
| tree | 9c20f7055cc755deffc788ca160904815cd44801 | |
| parent | 4fae8922bea01886f04e534c26b12f2876fefb80 (diff) | |
| download | emacs-475b5907736f25b9b67641c1698937cc0ca76b83.tar.gz emacs-475b5907736f25b9b67641c1698937cc0ca76b83.zip | |
* server.el (server-process-filter): Check for non-nil before calling
file-directory-p.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/server.el | 3 |
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2f734eacf03..679784fbcd0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-01-27 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * server.el (server-process-filter): Check for non-nil before | ||
| 4 | calling file-directory-p. | ||
| 5 | |||
| 1 | 2008-01-27 Alan Mackenzie <acm@muc.de> | 6 | 2008-01-27 Alan Mackenzie <acm@muc.de> |
| 2 | 7 | ||
| 3 | * progmodes/cc-vars.el (c-hanging-braces-alist): new element for | 8 | * progmodes/cc-vars.el (c-hanging-braces-alist): new element for |
| @@ -5,7 +10,7 @@ | |||
| 5 | 10 | ||
| 6 | * progmodes/cc-cmds.el (c-brace-newlines): Determine the newlines | 11 | * progmodes/cc-cmds.el (c-brace-newlines): Determine the newlines |
| 7 | for a brace with syntax arglist-cont-nonempty. | 12 | for a brace with syntax arglist-cont-nonempty. |
| 8 | 13 | ||
| 9 | * progmodes/cc-styles.el (c-style-alist): Add elements for | 14 | * progmodes/cc-styles.el (c-style-alist): Add elements for |
| 10 | arglist-cont-nonempty into 5 styles (gnu, ellemtel, linux, python, | 15 | arglist-cont-nonempty into 5 styles (gnu, ellemtel, linux, python, |
| 11 | awk). | 16 | awk). |
diff --git a/lisp/server.el b/lisp/server.el index d3606f5c860..ad4608f2fd2 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -952,7 +952,8 @@ The following commands are accepted by the client: | |||
| 952 | ;; Use the same cwd as the emacsclient, if possible, so | 952 | ;; Use the same cwd as the emacsclient, if possible, so |
| 953 | ;; relative file names work correctly, even in `eval'. | 953 | ;; relative file names work correctly, even in `eval'. |
| 954 | (let ((default-directory | 954 | (let ((default-directory |
| 955 | (if (file-directory-p dir) dir default-directory))) | 955 | (if (and dir (file-directory-p dir)) |
| 956 | dir default-directory))) | ||
| 956 | (server-execute proc files nowait commands | 957 | (server-execute proc files nowait commands |
| 957 | dontkill frame tty-name)))))) | 958 | dontkill frame tty-name)))))) |
| 958 | 959 | ||