Chong Yidong
77c4d02405
(server-name): Make it a defcustom.
2009-01-23 04:52:40 +00:00
Dan Nicolaescu
f79b43b27b
* frame.el (make-frame-on-tty): Remove function, inline contents
...
in the only user ...
* server.el (server-create-tty-frame): ... here.
* frames.texi (Multiple Displays): Remove documentation for
removed function make-frame-on-tty.
2009-01-22 06:58:10 +00:00
Chong Yidong
97e121ccb0
(server-start): Allow server to shut down when no frames are available
...
in daemon-mode.
2009-01-21 20:33:17 +00:00
Chong Yidong
ac088d51a0
(server-save-buffers-kill-terminal): Args changed. Handle nowait
...
client frames.
2009-01-11 16:45:36 +00:00
Chong Yidong
1ea67c3edb
Delete incorrect comment.
2009-01-11 16:15:38 +00:00
Chong Yidong
052056a969
Revert previous change (commit mistake).
2009-01-10 13:07:04 +00:00
Chong Yidong
6c1ec5a050
* gs.el: File removed.
2009-01-10 13:04:37 +00:00
Glenn Morris
ae940284fa
Add 2009 to copyright years.
2009-01-05 03:18:22 +00:00
Andreas Schwab
d9569a55d8
(server-running-p): Remove interactive spec. Fix
...
regexp.
2008-12-30 11:28:14 +00:00
Juanma Barranquero
35f372cadf
* server.el (server-start): If unable to start the server,
...
display a warning instead of raising an error.
* startup.el (server-process): Add defvar.
(command-line): If the daemon is unable to start the server,
display a message and exit Emacs.
2008-12-16 21:23:03 +00:00
Juanma Barranquero
c63a334eb0
* server.el (server-sentinel): Uncomment code to delete connection file.
...
(server-start): Save the connection file in the server property list.
Delete it only when we are reasonably convinced that it is not owned by
a running server.
(server-force-delete): New command to force-delete the connection file,
and stop the server if it is running.
(server-running-p): Return t also for local TCP servers when we find a
process with a matching PID, and :other for undecided cases.
2008-12-12 00:33:30 +00:00
Juanma Barranquero
a77ad24064
* server.el (server-temp-file-p): Use `string-match-p'.
...
(server-socket-dir): Set to nil if local sockets are unsupported.
(server-start): Don't try to delete local socket if unsupported.
(server-kill-new-buffers): Reflow docstring.
(server-delete-client, server-handle-delete-frame)
(server-save-buffers-kill-terminal): Doc fixes.
(server-send-string): Fix typo in docstring.
2008-11-18 16:27:06 +00:00
Juanma Barranquero
909049cbf2
* server.el (server-process-filter): Fix typos and reflow docstring.
2008-11-11 10:51:35 +00:00
Chong Yidong
d9bf544c71
(server-process-filter): Only default to emacsclient's terminal in
...
daemon mode.
2008-11-05 21:16:17 +00:00
Chong Yidong
650d0dbc02
(server-process-filter): Don't call server-create-tty-frame when no
...
tty name is specified.
2008-11-04 18:42:04 +00:00
Chong Yidong
cd9c54eb5f
(server-process-filter): In daemon mode, default to emacsclient's tty
...
if not opening a new frame and only the terminal-frame is available.
2008-10-30 15:50:01 +00:00
Juanma Barranquero
f77b11a051
* server.el, emacsclient.c: Use TMPDIR (default /tmp) instead of hardcoded /tmp.
2008-10-29 10:42:31 +00:00
Juanma Barranquero
d6c180c46b
New function `locate-user-emacs-file'.
...
* subr.el (locate-user-emacs-file): New function.
(user-emacs-directory): Mention it in docstring.
* completion.el (save-completions-file-name):
* filesets.el (filesets-menu-cache-file):
* image-dired.el (image-dired-dir, image-dired-db-file)
(image-dired-temp-image-file, image-dired-gallery-dir)
(image-dired-temp-rotate-image-file):
* savehist.el (savehist-file):
* server.el (server-auth-dir):
* startup.el (auto-save-list-file-prefix):
* thumbs.el (thumbs-thumbsdir):
* tutorial.el (tutorial--saved-dir):
* play/gamegrid.el (gamegrid-user-score-file-directory): Use it.
* url.el (url-configuration-directory): Use `locate-user-emacs-file'.
* NEWS: New function `locate-user-emacs-file'.
2008-10-24 09:39:27 +00:00
Chong Yidong
737e5c834b
(server-buffer-done): Avoid changing the buffer when deleting the
...
client's frame (bug#640).
2008-09-24 20:12:02 +00:00
Chong Yidong
ee0aed46c6
(server-switch-buffer): New arg.
...
(server-execute): If reusing an existing window, set file position
if required.
2008-09-06 17:17:05 +00:00
Glenn Morris
eb3fa2cfcf
Switch to recommended form of GPLv3 permissions notice.
2008-05-06 08:06:51 +00:00
Stefan Monnier
1b0a6c68e6
(server-start): Also don't get confused by CRs since we
...
don't quote them.
2008-04-23 15:37:07 +00:00
Andreas Schwab
a7ce6c7f5d
(server-switch-buffer): Also consider clients in the
...
selected frame.
2008-04-20 08:32:11 +00:00
Stefan Monnier
6afdf6e69a
Undo part of the multi-tty change, which is only needed if server.el is
...
preloaded, and broke server-running-p.
(server-socket-dir): Initialize in the defvar, as before.
(server-start): Remove initialization of server-socket-dir.
2008-04-05 17:55:00 +00:00
Juanma Barranquero
f03ea9d918
(server-log-time-function): Doc fix.
...
(server-buffer): Fix typo in docstring.
2008-01-27 22:47:58 +00:00
Dan Nicolaescu
475b590773
* server.el (server-process-filter): Check for non-nil before calling
...
file-directory-p.
2008-01-27 15:37:26 +00:00
Stefan Monnier
28cbade418
(server-buffer): New const.
...
(server-log): New var.
(server-log): Use them.
(server-process-filter): (Try to) run the continuation in the same cwd
as the client's.
2008-01-26 21:54:44 +00:00
Juanma Barranquero
38b9f0f370
(server-process-filter): Don't force the authentication
...
string to be followed by "\n".
2008-01-25 15:43:05 +00:00
Juanma Barranquero
88fd26a1c7
(server-log-time-function): New function.
...
(server-log): Use it.
2008-01-21 12:06:59 +00:00
Stefan Monnier
656d4706ab
(server-process-filter): Replace lineno and columnnno
...
which defaulted to 1&0 with filepos which defaults to nil.
(server-goto-line-column): Don't move if filepos is nil.
(server-visit-files): Slight restructure to consolidate two calls to
server-goto-line-column into just one.
2008-01-16 16:21:08 +00:00
Stefan Monnier
f86228e36c
(server-create-window-system-frame): Remove workaround for
...
a bug that has been fixed.
2008-01-03 21:56:36 +00:00
Stefan Monnier
c61a444841
(server-save-buffers-kill-terminal): Check the `proc' is indeed a process.
2007-12-23 22:46:07 +00:00
Stefan Monnier
ff91dc79ef
(server-select-display): Fix important typo.
...
(server-process-filter): Turn a "" display into nil.
2007-12-10 03:51:25 +00:00
David Kastrup
bfb74e75a4
* server.el (server-process-filter): Use `command-line-args-left'
2007-11-23 23:59:19 +00:00
Juanma Barranquero
ed4a1ce4b5
Fix last change (synch from the EMACS_22_BASE branch).
2007-11-09 10:28:14 +00:00
Miles Bader
c12ecb0af9
Merge from emacs--rel--22
...
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-923
2007-11-09 09:45:30 +00:00
Andreas Schwab
1d515b422c
(server-start): Only register cleanup after server was
...
started.
2007-11-07 00:27:13 +00:00
Juanma Barranquero
a8e0c05381
(server-unload-function): Unbind server-edit' from
C-x #'.
...
(server-unload-function): Remove variable.
2007-10-30 00:20:02 +00:00
Juanma Barranquero
08446d5eeb
(server-unload-function): Rename from `server-unload-hook' and
...
adapt to new `unload-feature' functionality. Remove hook from
`kill-buffer-hook' buffer-locally.
(server-unload-hook): Remove.
(server-unload-function): New var; replaces `server-unload-hook'.
2007-10-29 00:51:51 +00:00
Juanma Barranquero
e6fd13de4a
(server-unload-function): Rename from `server-unload-hook' and
...
adapt to new `unload-feature' functionality. Remove hook from
`kill-buffer-hook' buffer-locally.
(server-unload-hook): Remove.
(server-unload-function): New var; replaces `server-unload-hook'.
2007-10-29 00:44:52 +00:00
Juanma Barranquero
c48254fbbf
(server-process-filter): Fix typo in docstring.
...
(server-log): Reflow docstrings.
(server-delete-client, server-kill-emacs-query-function): Doc fixes.
(server-goto-line-column): Use `when'.
2007-10-28 15:17:08 +00:00
Stefan Monnier
1a4a884cc5
(server-select-display): Nop if we do not support m-f-o-d.
...
(server-process-filter): Revert last change.
2007-10-17 16:22:48 +00:00
Juanma Barranquero
d76e204651
*** empty log message ***
2007-10-17 08:15:04 +00:00
Dan Nicolaescu
8a3a4fd35f
(server-process-filter): Only set display if X11 is
...
supported.
2007-10-17 02:07:35 +00:00
Stefan Monnier
4419b7550f
(server-create-tty-frame, server-create-window-system-frame):
...
Set frame-inherited-parameters.
2007-10-10 20:43:22 +00:00
Stefan Monnier
0acb191607
Add todo.
2007-10-09 04:22:36 +00:00
Glenn Morris
23b7c55689
Chris Moore <dooglus at gmail.com>
...
(server-kill-new-buffers): Doc fix.
2007-10-06 01:45:16 +00:00
Glenn Morris
f258b5254d
Chris Moore <dooglus at gmail.com>
...
(server-kill-new-buffers): Doc fix.
2007-10-06 01:44:51 +00:00
Dan Nicolaescu
977ede64fe
(server-delete-client): Only delete the terminal if it
...
is non-nil.
2007-09-28 16:55:00 +00:00
Stefan Monnier
e159b86943
(server-getenv-from): Remove. Use getenv-internal instead.
...
(server-create-tty-frame): Don't set unused `tty' property.
Set `display' instead of display-environment-variable.
(server-create-window-system-frame): No display-environment-variable.
2007-09-21 07:10:07 +00:00