summaryrefslogtreecommitdiff
path: root/lisp/server.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2003-01-13 08:04:17 +0000
committerRichard M. Stallman <rms@gnu.org>2003-01-13 08:04:17 +0000
commitcf1175df2a4a4902b0506cebfbf0bf094406ec26 (patch)
tree504722621da0a23dcf23f8b2462738a725720234 /lisp/server.el
parent9ed2ab9fcaade605b6377f955c98ad13e607d642 (diff)
downloademacs-cf1175df2a4a4902b0506cebfbf0bf094406ec26.tar.gz
emacs-cf1175df2a4a4902b0506cebfbf0bf094406ec26.tar.bz2
emacs-cf1175df2a4a4902b0506cebfbf0bf094406ec26.zip
(server-process-filter): Comment out -eval.
Don't switch buffers if inside isearch or minibuffer.
Diffstat (limited to 'lisp/server.el')
-rw-r--r--lisp/server.el14
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."
(setq request (substring request (match-end 0)))
(cond
((equal "-nowait" arg) (setq nowait t))
- ((equal "-eval" arg) (setq eval t))
+;;; This is not safe unless we make sure other users can't send commands.
+;;; ((equal "-eval" arg) (setq eval t))
((and (equal "-display" arg) (string-match "\\([^ ]*\\) " request))
(let ((display (server-unquote-arg (match-string 1 request))))
(setq request (substring request (match-end 0)))
@@ -325,11 +326,12 @@ Prefix arg means just kill any existing server communications subprocess."
(server-log "Close empty client" proc))
;; We visited some buffer for this client.
(or nowait (push client server-clients))
- (server-switch-buffer (nth 1 client))
- (run-hooks 'server-switch-hook)
- (unless nowait
- (message (substitute-command-keys
- "When done with a buffer, type \\[server-edit]"))))))
+ (unless (or isearch-mode (minibuffer-active))
+ (server-switch-buffer (nth 1 client))
+ (run-hooks 'server-switch-hook)
+ (unless nowait
+ (message (substitute-command-keys
+ "When done with a buffer, type \\[server-edit]")))))))
;; Save for later any partial line that remains.
(when (> (length string) 0)
(let ((ps (assq proc server-previous-strings)))