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
Gerd Moellmann
6d4dd88504
(server-switch-buffer): Use some-window instead of
...
cycling through windows with next-window.
2000-07-03 09:13:42 +00:00
Karl Heuer
0c40a645af
(server-process-filter): If a client visits no buffers,
...
close it immediately before recording it.
1999-08-16 03:15:11 +00:00
Kenichi Handa
6b7430a8ac
(server-start): Set coding system for the server
...
process to raw-text.
(server-process-filter): Decode file names if necessary.
1999-03-13 00:21:24 +00:00
Richard M. Stallman
599f9a5c4c
(server-buffer-done): Bind server-kill-buffer-running
...
around places that might kill the buffer.
Do something reasonable if server-done-hook kills the buffer.
(server-kill-buffer-running): Doc fix.
(server-kill-buffer): Do nothing unless server-buffer-clients.
(server-done): Doc fix.
(server-buffer-done): Test of for-killing was backwards.
1998-05-05 00:39:35 +00:00
Richard M. Stallman
ab1c7f3527
Customized.
1997-08-18 20:01:25 +00:00
Richard M. Stallman
fb873cfcb6
(server-kill-buffer): Prevent infinite recursion.
...
(server-kill-buffer-running): New variable.
1997-05-31 00:31:40 +00:00
Richard M. Stallman
e4874521bb
Comment change.
1997-05-27 15:32:03 +00:00
Richard M. Stallman
1da54e584e
(server-kill-buffer): Act only when there is a server process.
1997-05-14 18:42:57 +00:00
Richard M. Stallman
b392bac9b9
(server-buffer-done): New arg FOR-KILLING.
...
(server-kill-buffer): New fn, to inform clients when buffer is killed.
1997-05-10 00:37:24 +00:00
Richard M. Stallman
ffdd27965e
(server-done): If buffer visits no file, don't offer save.
1997-04-13 06:12:34 +00:00
Richard M. Stallman
8226e01e77
(server-process-filter): Let-bind `pos'.
1997-01-02 00:37:12 +00:00
Richard M. Stallman
c1148e39cc
(server-start): Don't delete ~/.emacs-server.
...
Instead, delete the names emacsserver really uses
if compiled with SERVER_HOME_DIR.
1996-12-30 20:40:27 +00:00
Richard M. Stallman
b59a6343c2
(server-process-filter): Quote with &, not \.
1996-09-02 17:43:56 +00:00
Richard M. Stallman
349e3f8210
(server-process-filter): Undo the quoting with
...
backslashes that emacsclient now does for special characters.
Delete some debugging code accidentally left in.
1996-09-02 00:03:28 +00:00
Richard M. Stallman
dfa35e6b44
(server-visit-files): New argument NOWAIT.
...
Don't record on server-buffer-clienjts if NOWAIT.
(server-process-filter): Pass NOWAIT arg based on data from server.
Don't record in server-clients if NOWAIT.
1996-08-28 23:26:13 +00:00
Richard M. Stallman
ee7226e542
(server-process-filter): Use command-line-normalize-file-name.
1996-02-28 23:32:18 +00:00
Richard M. Stallman
a478a9ce32
(server-process-filter): Don't collapse // at start of file name.
1996-02-28 00:29:43 +00:00
Richard M. Stallman
126b6f74c1
(server-process-filter): In file name, collapse multiple slashes to one.
1996-01-26 23:57:39 +00:00
Karl Heuer
26544100fa
(server-process-filter): Pass proper format string to message.
1996-01-25 00:56:54 +00:00
Erik Naggum
b578f267af
Update FSF's address.
1996-01-14 07:34:30 +00:00
Richard M. Stallman
74c20cd37b
(server-log): Record the current time.
...
End with newline whenever STRING doesn't end with one.
1995-11-10 17:01:59 +00:00
Richard M. Stallman
14f67fa6a5
(server-start): Try both full hostname and shortened
...
hostname when deleting the socket file.
1995-10-08 19:42:11 +00:00
Richard M. Stallman
77e5a3c7ce
(server-process-filter): Ignore lines that don't start
...
with `Error:' or `Client:'.
1995-09-24 23:28:18 +00:00