lib-src/emacsclient.c (decode_options): Handle the case when $DISPLAY
is an empty string. Set window_system or tty to one by default,
depending on if there is a valid display.
(longopts, decode_options, print_help_and_exit): Removed -w, added -c.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-85
lib-src/emacsclient.c (main): Send the version number of emacsclient
to the Emacs process, and exit with error if Emacs does not accept it.
lisp/server.el (server-with-errors-reported): Removed.
(server-process-filter): Cleaned up error handling.
Compare the version of emacsclient with emacs-version;
signal an error if they do not match.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-84
lib-src/emacsclient.c (window_system): New variable.
(frame): Renamed to tty for consistency with the option name.
(longopts, print_help_and_exit): Added -w option. (Suggested by Ami
Fischman <ami at fischman dot org>.
(decode_options): Initialize display to $DISPLAY. Handle -w option.
(main): Implement the -w option. Changed to a more elaborate protocol
between Emacs and emacsclient, in preparation to suspend support.
lisp/server.el (server-frames): New variable.
(server-handle-delete-frame): New function.
(server-start): Add it to delete-frame-functions.
(server-select-display): Don't make the new frame invisible.
(server-with-errors-reported): New macro for brevity.
(server-process-filter): Implement the "-window-system" command.
Use server-with-errors-reported. Fixed regexp for +line:column syntax.
Use the new protocol.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-83
src/term.c (get_tty_display): Fall back to the current device if
display is nil. (Reported by Dan Nicolaescu <dann at ics dot uci dot edu>.)
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-81
lisp/x-dnd.el (x-dnd-init-frame): Don't do anything if the frame is
not an X frame.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-80
src/Makefile.in (SOME_MACHINE_LISP): Added X-related libraries that
were added to loadup.el.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-79
(interprogram-paste-function, kill-new, kill-append): Doc fixes.
(kill-region): Make it return nil. Doc fix.
(yank-pop): Make its argument optional.
(yank): Make ARG `-' equivalent to `-1'.
(Parameter Access): frame-parameters arg is optional.
modify-frame-parameters handles nil for FRAME.
(Window Frame Parameters): menu-bar-lines and tool-bar-lines
are all-or-nothing for certain toolkits.
Mention parameter wait-for-wm.
(Frames and Windows): In frame-first-window and frame-selected-window
the arg is optional.
(Input Focus): In redirect-frame-focus the second arg is optional.
(Window System Selections): Mention selection type CLIPBOARD.
Mention data-type UTF8_STRING.
Mention numbering of cut buffers.
(Resources): Describe x-resource-name.
(read_avail_input): Change buf to pinter to read_avail_input_buf.
Use in_read_avail_input to handle re-entrance; when re-entered,
fully initialize and use tmp_buf array instead of read_avail_input_buf.
buf array was allocated on the stack.
(prev_read): Remove variable.
(read_avail_input_buf): New static event buffer array.
(in_read_avail_input): New static variable to avoid re-entrancy.
(read_avail_input): Change buf to pinter to read_avail_input_buf.
Use in_read_avail_input to guard against re-entry.
Do not initialize read_avail_input_buf here; instead assume it
is always cleared on entry. To ensure that, we clear (just) the
entries that were used before we return.
(init_keyboard): Initialize read_avail_input_buf here.