From ba528748a14a34d2c3f619615c4cdaf4bbd89cc0 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 10 Mar 2009 14:08:52 +0000 Subject: * server.el (server-process-filter): Use expand-file-name rather than command-line-normalize-file-name so as to use the `dir' when provided. * emacsclient.c (main): Always pass cwd via "-dir". Pass the file names without prepending cwd to them, so Emacs uses its customary rules to determine how to interpret the file name. --- lisp/ChangeLog | 3 +++ lisp/server.el | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ee521252b9..2170615668 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2009-03-10 Stefan Monnier + * server.el (server-process-filter): Use expand-file-name rather than + command-line-normalize-file-name so as to use the `dir' when provided. + * doc-view.el (doc-view-convert-current-doc): Fix last change. 2009-03-10 Glenn Morris diff --git a/lisp/server.el b/lisp/server.el index 5e4e6e1548..10b08ad4a3 100644 --- a/lisp/server.el +++ b/lisp/server.el @@ -962,7 +962,7 @@ The following commands are accepted by the client: (let ((file (pop command-line-args-left))) (if coding-system (setq file (decode-coding-string file coding-system))) - (setq file (command-line-normalize-file-name file)) + (setq file (expand-file-name file dir)) (push (cons file filepos) files) (server-log (format "New file: %s %s" file (or filepos "")) proc)) -- cgit v1.2.3