summaryrefslogtreecommitdiff
path: root/lisp/server.el
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2011-07-04 03:04:29 +0200
committerJuanma Barranquero <lekktu@gmail.com>2011-07-04 03:04:29 +0200
commit56e6cc31de573d15f55f369a5759930a351df884 (patch)
tree6b63a05ac2390353f486482f643042b9b0870c0a /lisp/server.el
parent7d1738f1531ce2d83fed5c3692a5627b47d901c3 (diff)
downloademacs-56e6cc31de573d15f55f369a5759930a351df884.tar.gz
emacs-56e6cc31de573d15f55f369a5759930a351df884.tar.bz2
emacs-56e6cc31de573d15f55f369a5759930a351df884.zip
lisp/server.el (server-eval-and-print): Return any result, even nil.
Diffstat (limited to 'lisp/server.el')
-rw-r--r--lisp/server.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/server.el b/lisp/server.el
index 42da7a210c5..36b137b7bc9 100644
--- a/lisp/server.el
+++ b/lisp/server.el
@@ -679,7 +679,7 @@ Server mode runs a process that accepts commands from the
(defun server-eval-and-print (expr proc)
"Eval EXPR and send the result back to client PROC."
(let ((v (eval (car (read-from-string expr)))))
- (when (and v proc)
+ (when proc
(with-temp-buffer
(let ((standard-output (current-buffer)))
(pp v)
@@ -1200,12 +1200,12 @@ so don't mark these buffers specially, just visit them normally."
(add-to-history 'file-name-history filen)
(if (null obuf)
(progn
- (run-hooks 'pre-command-hook)
+ (run-hooks 'pre-command-hook)
(set-buffer (find-file-noselect filen)))
(set-buffer obuf)
;; separately for each file, in sync with post-command hooks,
;; with the new buffer current:
- (run-hooks 'pre-command-hook)
+ (run-hooks 'pre-command-hook)
(cond ((file-exists-p filen)
(when (not (verify-visited-file-modtime obuf))
(revert-buffer t nil)))
@@ -1219,7 +1219,7 @@ so don't mark these buffers specially, just visit them normally."
(server-goto-line-column (cdr file))
(run-hooks 'server-visit-hook)
;; hooks may be specific to current buffer:
- (run-hooks 'post-command-hook))
+ (run-hooks 'post-command-hook))
(unless nowait
;; When the buffer is killed, inform the clients.
(add-hook 'kill-buffer-hook 'server-kill-buffer nil t)