Commit graph

124 commits

Author SHA1 Message Date
Stefan Monnier
ff348fba8b Remove spurious * in docstrings.
(server-process-filter): Exit from recursive editing before processing
a new request.
2006-11-27 20:58:37 +00:00
Juanma Barranquero
cd7320d479 (server-visit-files): If `minibuffer-auto-raise' has been set to t, respect it. 2006-11-12 05:36:52 +00:00
Juanma Barranquero
c2d0d432af (server-visit-files): Bind `minibuffer-auto-raise' to the value of
`server-raise-frame'.
2006-11-11 14:11:13 +00:00
Juanma Barranquero
90caccca7b (server-raise-frame): New option.
(server-switch-buffer): Use it.
2006-11-10 09:46:51 +00:00
Juanma Barranquero
c42690a676 (server-start): Save also the Emacs pid in the server authentication file. 2006-11-07 10:42:52 +00:00
Juanma Barranquero
e101e71804 *** empty log message *** 2006-11-03 00:24:26 +00:00
Stefan Monnier
757e168190 (server-auth-key): Remove. Replace by a process-property.
(server-start): Don't remove the file of the previous process, but
instead clear out the place for the new file.
(server-start): Set the :auth-key property.
(server-process-filter): Use the :auth-key property.
2006-11-02 23:46:14 +00:00
Juanma Barranquero
95eefb3510 (server-visit-files): Use `when'.
(server-process-filter): When authentication fails, send error message to
client.  Wrap `process-send-region' in `ignore-errors' instead of
`condition-case', and remove misleading comment.
2006-11-02 01:31:39 +00:00
Stefan Monnier
b7621225b4 Try and fit within 80 columns.
(server-start): Make the auth file unreadable by other users.
2006-11-01 21:37:11 +00:00
Juanma Barranquero
337e3c70f8 Add support for TCP sockets.
(server-use-tcp, server-host, server-auth-dir): New options.
(server-auth-key): New variable.
(server-ensure-safe-dir): Create nonexistent parent dirs.  Ignore Unix-style
file modes on Windows.
(server-start): Crete a TCP or Unix socket according to the value of
`server-use-tcp'.  For TCP sockets, create the id/auth file in `server-auth-dir'
directory.
(server-process-filter): Delete process if authentication fails (which never
happens for Unix sockets).
2006-10-30 23:24:18 +00:00
Stefan Monnier
7acc677bf1 (server-select-display): Use a dummy buffer to detect when
the frame is later used.
(server-select-display): New function.
(server-process-filter): Use it to detect unused temp frames.
2006-10-30 07:29:37 +00:00
Chong Yidong
3008851538 * server.el (server-select-display): Don't make the temp frame
minibuffer-only, in case it's not a temp frame.
	(server-process-filter): Don't delete the temp frame if it's the
	only one we have on that display.
2006-07-06 22:48:16 +00:00
Chong Yidong
6b519504c3 * server.el (server-edit): No-op if no server buffers exist. 2006-06-11 18:59:31 +00:00
Stefan Monnier
2e8457a004 (server-start): Only create a directory if needed.
(server-edit, server-unload-hook): server-start => server-mode.
(kill-emacs-hook): Cleanup upon exit.
2006-05-16 06:53:01 +00:00
Kim F. Storm
c398358aee (server-visit-files): Use add-to-history. 2006-05-05 23:37:55 +00:00
Andreas Schwab
c6ce06a6d8 (server-process-filter): Handle errors during
evaluation of the argument.
2006-03-04 16:07:12 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Romain Francoise
cbfc02e4f0 (server-sentinel): Set query-on-exit flag to nil on new client processes
(it isn't inherited from the server process).
2005-10-24 11:06:03 +00:00
Deepak Goel
8a26c16552 Message format spec fixes (1) 2005-09-18 12:25:02 +00:00
Thien-Thi Nguyen
0d30b33766 Update years in copyright notice; nfc. 2005-08-06 22:13:43 +00:00
Eli Zaretskii
772c5eb74c Bind "C-x #" in a way that works even if C-x is redefined to a command key,
not a prefix key.
2005-07-16 11:58:10 +00:00
Lute Kamstra
086add1519 Update FSF's address. 2005-07-04 23:32:44 +00:00
Juanma Barranquero
027a4b6b3f Replace string-to-int' by string-to-number'. 2005-05-16 11:34:49 +00:00
Kim F. Storm
bf247b6ed0 Change release version from 21.4 to 22.1 throughout.
Change development version from 21.3.50 to 22.0.50.
2005-02-09 15:50:47 +00:00
Masatake YAMATO
51b4073ade * server.el (server-process-filter): Suppress `error', too. 2004-12-30 23:14:25 +00:00
Richard M. Stallman
3bb38bc22e (server-unload-hook): Set as a variable with add-hook. 2004-10-17 06:55:07 +00:00
Masatake YAMATO
9afed9b1fa (server-process-filter): Wrap `process-send-region'
by `condition-case' to guard the case when the pipe to PROC is
closed.
2004-10-08 15:50:59 +00:00
Stefan Monnier
5b421c8154 (server-process-filter): Delete temp frame. 2004-03-19 00:50:48 +00:00
Stefan Monnier
03ae35cfae (server-name): New var.
(server-socket-dir): New var to replace server-socket-name.
(server-start): Use them.
2004-03-11 18:35:20 +00:00
Stefan Monnier
92c7831bff (server-socket-name): Don't use the hostname in the
socket name since /tmp is local to the host anyway.
2004-01-27 23:08:29 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
John Paul Wallington
60f8ea5349 (server-start): Check `server-process' is non-nil
before killing it to avoid killing current buffer's process.
2003-07-25 12:16:18 +00:00
Stefan Monnier
e5576936b9 (server-start): Use letf. 2003-04-12 19:05:41 +00:00
Stefan Monnier
724629d2c2 (server-socket-name): Use new safe location for socket.
(server-ensure-safe-dir): New fun.
(server-start): Use it.
(server-process-filter): Re-enable the -eval feature.
2003-04-12 19:04:11 +00:00
Stefan Monnier
3f7ef08ebd (server-previous-strings): Remove.
(server-process-filter): Use (process-get 'previous-string) instead.
(server-sentinel): Remove code made superfluous.
2003-02-10 21:44:24 +00:00
Dave Love
33186f32d8 (server-window): Customize.
(server-mode): New.
(server-unload-hook): Call server-start.
2003-01-15 17:49:32 +00:00
John Paul Wallington
64f511342e (server-process-filter): Use `minibufferp' to test
whether we are inside a minibuffer.
(server-process, server-kill-new-buffers): Doc fixes.
2003-01-13 16:44:07 +00:00
Richard M. Stallman
cf1175df2a (server-process-filter): Comment out -eval.
Don't switch buffers if inside isearch or minibuffer.
2003-01-13 08:04:17 +00:00
Stefan Monnier
408784a7d5 (server-sentinel): Kill buffers if applicable.
(server-temp-file-p): Make arg optional.
(server-done): Use it to simplify.
(server-switch-buffer): If server-window is a function, use it.
2002-11-02 05:29:13 +00:00
Richard M. Stallman
90ee5627ad (server-switch-buffer): Say when no server buffers remain. 2002-10-29 18:17:46 +00:00
Stefan Monnier
15d40fa454 (server-socket-name): Always use /tmp and non-qualified hostname. 2002-09-27 22:06:02 +00:00
Stefan Monnier
44a56b29e7 (server-select-display): New function.
(server-process-filter): Add support for `-display' and `-eval' args.
(server-visit-files): Use save-current-buffer, push, and dolist.
Add server-kill-buffer to kill-buffer-hook.
(kill-buffer-hook): Don't modify globally.
(server-switch-buffer): Be a bit more careful with multiple displays.
2002-09-27 17:43:29 +00:00
Stefan Monnier
0c851d7872 Use built-in network primitives.
(server-program, server-previous-string): Remove.
(server-previous-strings): New var.
(server-socket-name): New var.
(server-log): Minor change to the output format.
(server-sentinel): Clean up global state when a client disconnects.
(server-unquote-arg): New fun.
(server-start): Use server-socket-name and make-network-process.
(server-process-filter): Now talks to the clients directly.
Normalize file name after unquoting and decoding.
(server-buffer-done): Just close the connection.
(server-switch-buffer): Handle the case where all windows are
dedicated or minibuffers.
2002-09-25 19:54:13 +00:00
Stefan Monnier
ca0c725020 (server-done): Fix harmlessly wrong arg to save-buffer.
(server-switch-buffer): Only select a different window if
next-buffer is non-nil.  Don't switch in a dedicated window.
If next-buffer is already displayed, reuse that window.
2002-09-18 12:19:57 +00:00
Stefan Monnier
8b3e840e95 (server-log): Add `client' arg.
(server-start): Don't bother canceling the sentinel.
(server-process-filter): Use replace-regexp-in-string and
handle the new &n quoting.  Use push.  Use server-log's new arg.
Don't output the C-x # message if `nowait'.
(server-buffer-done): Use server-log's new arg.
2002-09-18 02:10:18 +00:00
Richard M. Stallman
6b98185f8b (server-process-filter): Simplify code.
(server-goto-line-column): New function.
(server-visit-files): Use server-goto-line-column.
Offer to revert only if file has changed.
2002-08-15 20:13:48 +00:00
Dave Love
df4e8a1129 (server-unload-hook): New function. 2001-12-18 16:42:38 +00:00
Stefan Monnier
1cd04440b5 (server-process-filter): Run pore/post-comment-hook
before/after visiting the file.
2001-11-15 12:19:08 +00:00
Richard M. Stallman
ed9ae328c1 (server-edit, server-done): Doc fix. 2001-11-13 03:14:23 +00:00
Richard M. Stallman
4dd04714eb (server-buffer-done): Test of server-existing-buffer was backwards.
(server-existing-buffer): Doc fix.
2001-11-11 17:56:23 +00:00