diff options
| author | Lars Magne Ingebrigtsen | 2011-05-02 04:33:11 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-05-02 04:33:11 +0200 |
| commit | 84621b7162b84bffeb5e46bf975ccd7318ad7cfb (patch) | |
| tree | 761f6b56e99db404d5b876087e7a3d462ca9eb48 | |
| parent | e793a9404da8d8cb0d318f5ba87998e2be6ecb50 (diff) | |
| download | emacs-84621b7162b84bffeb5e46bf975ccd7318ad7cfb.tar.gz emacs-84621b7162b84bffeb5e46bf975ccd7318ad7cfb.zip | |
Decode &_ => SPC in the reply.
| -rw-r--r-- | lisp/server.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/server.el b/lisp/server.el index ab7dd409736..c421ee09812 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -1487,8 +1487,8 @@ only these files will be asked to be saved." | |||
| 1487 | (defun server-eval-at (server form) | 1487 | (defun server-eval-at (server form) |
| 1488 | "Eval FORM on Emacs Server SERVER." | 1488 | "Eval FORM on Emacs Server SERVER." |
| 1489 | (let ((auth-file (expand-file-name server server-auth-dir)) | 1489 | (let ((auth-file (expand-file-name server server-auth-dir)) |
| 1490 | ;;(coding-system-for-read 'binary) | 1490 | (coding-system-for-read 'binary) |
| 1491 | ;;(coding-system-for-write 'binary) | 1491 | (coding-system-for-write 'binary) |
| 1492 | address port secret process) | 1492 | address port secret process) |
| 1493 | (unless (file-exists-p auth-file) | 1493 | (unless (file-exists-p auth-file) |
| 1494 | (error "No such server definition: %s" auth-file)) | 1494 | (error "No such server definition: %s" auth-file)) |
| @@ -1516,8 +1516,12 @@ only these files will be asked to be saved." | |||
| 1516 | (goto-char (point-min)) | 1516 | (goto-char (point-min)) |
| 1517 | ;; If the result is nil, there's nothing in the buffer. If the | 1517 | ;; If the result is nil, there's nothing in the buffer. If the |
| 1518 | ;; result is non-nil, it's after "-print ". | 1518 | ;; result is non-nil, it's after "-print ". |
| 1519 | (and (search-forward "\n-print" nil t) | 1519 | (when (search-forward "\n-print" nil t) |
| 1520 | (read (current-buffer)))))) | 1520 | (let ((start (point))) |
| 1521 | (while (search-forward "&_" nil t) | ||
| 1522 | (replace-match " " t t)) | ||
| 1523 | (goto-char start) | ||
| 1524 | (read (current-buffer))))))) | ||
| 1521 | 1525 | ||
| 1522 | 1526 | ||
| 1523 | (provide 'server) | 1527 | (provide 'server) |