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
Gerd Moellmann
35f01a9505
(server-switch-buffer): Use get-window-with-predicate.
2001-09-07 11:35:49 +00:00
Stefan Monnier
0582471880
(server-visit-files): Fix variable name typo.
2001-07-20 22:46:18 +00:00
Gerd Moellmann
8c49357098
(server-visit-files): Handle the case the specified
...
column number is <= 0.
(command-line-1): Add support for +LINE:COLUMN
command line argument.
(server-process-filter, server-visit-files): Add
support for +LINE:COLUMN style emacsclient calls.
2001-07-17 10:55:28 +00:00
Pavel Janík
5553563924
Some fixes to follow coding conventions in files maintained by FSF.
2001-07-15 16:15:35 +00:00
Eli Zaretskii
b5a9911c41
(server-process, server-buffer-clients): Doc fix.
...
From Pavel Janik <Pavel@Janik.cz>.
2001-06-10 08:45:41 +00:00
Gerd Moellmann
92a6563f8d
(server-visit-files): Set server-existing-buffer
...
correctly.
(server-visit-files): Run server-visit-hook after going to
line 1 so that the hook can set point as it sees fit.
2001-04-09 14:29:56 +00:00
Stefan Monnier
39b557e891
(server-switch-buffer): Only switch window if the current one is dedicated.
2001-02-22 20:14:45 +00:00
Gerd Moellmann
8363063ec7
(server-switch-buffer): Choose a window on a visible
...
frame.
2000-12-21 15:57:01 +00:00
Gerd Moellmann
3d2a0e0b7b
(server-buffer-done): Bury the buffer before
...
killing it.
2000-12-18 17:01:16 +00:00
Gerd Moellmann
0f5f7c3eb6
(server-visit-files): Push files on file-name-history.
2000-12-07 13:53:21 +00:00
Gerd Moellmann
c6a117f07b
(server-kill-new-buffers): New user option.
...
(server-existing-buffer): New buffer-local variable.
(server-visit-files): When using an existing buffer, set
server-existing-buffer to t.
(server-buffer-done): If server-kill-new-buffers is t, kill the
buffer, unless it was already present before visiting it with
Emacs server.
2000-08-21 15:26:01 +00:00