diff options
| author | Richard M. Stallman | 2003-01-13 08:04:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-01-13 08:04:17 +0000 |
| commit | cf1175df2a4a4902b0506cebfbf0bf094406ec26 (patch) | |
| tree | 504722621da0a23dcf23f8b2462738a725720234 | |
| parent | 9ed2ab9fcaade605b6377f955c98ad13e607d642 (diff) | |
| download | emacs-cf1175df2a4a4902b0506cebfbf0bf094406ec26.tar.gz emacs-cf1175df2a4a4902b0506cebfbf0bf094406ec26.zip | |
(server-process-filter): Comment out -eval.
Don't switch buffers if inside isearch or minibuffer.
| -rw-r--r-- | lisp/server.el | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/server.el b/lisp/server.el index d094ac815d9..f3384f61395 100644 --- a/lisp/server.el +++ b/lisp/server.el | |||
| @@ -278,7 +278,8 @@ Prefix arg means just kill any existing server communications subprocess." | |||
| 278 | (setq request (substring request (match-end 0))) | 278 | (setq request (substring request (match-end 0))) |
| 279 | (cond | 279 | (cond |
| 280 | ((equal "-nowait" arg) (setq nowait t)) | 280 | ((equal "-nowait" arg) (setq nowait t)) |
| 281 | ((equal "-eval" arg) (setq eval t)) | 281 | ;;; This is not safe unless we make sure other users can't send commands. |
| 282 | ;;; ((equal "-eval" arg) (setq eval t)) | ||
| 282 | ((and (equal "-display" arg) (string-match "\\([^ ]*\\) " request)) | 283 | ((and (equal "-display" arg) (string-match "\\([^ ]*\\) " request)) |
| 283 | (let ((display (server-unquote-arg (match-string 1 request)))) | 284 | (let ((display (server-unquote-arg (match-string 1 request)))) |
| 284 | (setq request (substring request (match-end 0))) | 285 | (setq request (substring request (match-end 0))) |
| @@ -325,11 +326,12 @@ Prefix arg means just kill any existing server communications subprocess." | |||
| 325 | (server-log "Close empty client" proc)) | 326 | (server-log "Close empty client" proc)) |
| 326 | ;; We visited some buffer for this client. | 327 | ;; We visited some buffer for this client. |
| 327 | (or nowait (push client server-clients)) | 328 | (or nowait (push client server-clients)) |
| 328 | (server-switch-buffer (nth 1 client)) | 329 | (unless (or isearch-mode (minibuffer-active)) |
| 329 | (run-hooks 'server-switch-hook) | 330 | (server-switch-buffer (nth 1 client)) |
| 330 | (unless nowait | 331 | (run-hooks 'server-switch-hook) |
| 331 | (message (substitute-command-keys | 332 | (unless nowait |
| 332 | "When done with a buffer, type \\[server-edit]")))))) | 333 | (message (substitute-command-keys |
| 334 | "When done with a buffer, type \\[server-edit]"))))))) | ||
| 333 | ;; Save for later any partial line that remains. | 335 | ;; Save for later any partial line that remains. |
| 334 | (when (> (length string) 0) | 336 | (when (> (length string) 0) |
| 335 | (let ((ps (assq proc server-previous-strings))) | 337 | (let ((ps (assq proc server-previous-strings))) |