bpt/emacs.git
20 years agoChanged tty input code to use read_socket_hook.
Karoly Lorentey [Sun, 11 Jan 2004 01:18:45 +0000 (01:18 +0000)]
Changed tty input code to use read_socket_hook.

src/keyboard.c (read_avail_input): Removed tty-related code.
(tty_read_avail_input): New function.

src/keyboard.h (tty_read_avail_input): New prototype.

src/term.c (term_init): Set read_socket_hook.  Removed bogus baud rate
initialization.

src/termhooks.h (read_socket_hook): Added display parameter.

src/xterm.c (XTread_socket): Added display parameter (unused).

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-51

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Sat, 10 Jan 2004 13:27:38 +0000 (13:27 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-22
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-23
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-24
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-25
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-26
   Fix permission bogosities

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-27
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-28
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-29
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-30
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-50

20 years agoNumerous bugfixes and small improvements.
Karoly Lorentey [Sat, 10 Jan 2004 12:56:22 +0000 (12:56 +0000)]
Numerous bugfixes and small improvements.

lisp/bindings.el (mode-line-frame-identification): Use %T, not %F.

lisp/faces.el (x-create-frame-with-faces): Added
frame-creation-function parameter.
(tty-create-frame-with-faces): Ditto.

lisp/frame.el (frame-creation-function): Make it frame-local.
(select-frame-set-input-focus): Use the window-system function, not
the variable.

lisp/server.el (server-handle-delete-tty): Make sure the client
process is removed from server-clients after the delete-process call.
It seems that the sentinel is not called.  Added docs.
(server-process-filter): Immediately add the client to server-clients
when a new termcap frame is created.  Fixed a case of `not' called
with two parameters.  Ignore errors while sending the evaluation
result back to the client.
(server-kill-buffer-query-function): Don't ask the user if the server
process is already dead.

lisp/term/x-win.el: Don't change mode-line-frame-identification.

src/buffer.c (syms_of_buffer): Added %T to the docs of mode-line-format.

src/dispnew.c (init_display): Increment the reference count of the new
termcap display.

src/frame.c (make_terminal_frame): Set the old top frame's visibility
to `obscured'.
(Fmake_terminal_frame): Look at the current termcap display's name,
not just the similar frame parameter.  Try to get the type from the
current display first, and only then from Vdefault_frame_alist.

src/keyboard.c (handle_interrupt): New function to separate the signal
handling from C-g processing.
(interrupt_signal): Call handle_interrupt to do the real work.
(kbd_buffer_store_event): Use handle_interrupt instead of interrupt_signal.
(cmd_error_internal): Use FRAME_INITIAL_P instead of ugly hacks.

src/termhooks.h (initial_display): New declaration.

src/xdisp.c (decode_mode_spec): Added '%T' (termcap-only frame name).

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-49

20 years ago(mode-line-change-eol): Add EVENT parameter.
John Paul Wallington [Sat, 10 Jan 2004 01:20:39 +0000 (01:20 +0000)]
(mode-line-change-eol): Add EVENT parameter.
Temporarily select EVENT's window for changing eol type.

20 years agoHookified termcap devices, added bootstrap display device, plus many bugfixes.
Karoly Lorentey [Fri, 9 Jan 2004 18:57:53 +0000 (18:57 +0000)]
Hookified termcap devices, added bootstrap display device, plus many bugfixes.

lisp/frame.el (display-color-cells): Pass display parameter to tty-display-color-cells.

lisp/term/xterm.el (xterm-register-default-colors): Pass the selected-frame to display-color-cells.

src/dispextern.h (set_terminal_modes, reset_terminal_modes): Removed declarations.
(get_named_tty_display): New prototype.
(tty_clear_end_of_line, term_init): Updated to new prototype.
(initial_term_init): Renamed to init_initial_display.

src/dispnew.c (Fredraw_frame): ifdef-out DOS-specific code.  Add display parameter to set_terminal_modes call.
(update_frame): Don't flush the tty of there is no tty.
(init_display): Set up a termcap display on the controlling tty and
change the initial frame to use that.  Delete the initial display.

src/frame.c (Fframep): Return t for the initial frame.
(make_initial_frame): New function for creating the initial frame during bootstrap.  Use init_initial_display, not initial_term_init.
(make_terminal_frame): Removed special cases for creating the initial frame.

src/frame.h (enum output_method): New entry: output_initial for the bootstrap display.
(FRAME_INITIAL_P): New macro.
(make_initial_frame): New prototype.

src/keyboard.c (interrupt_signal): Exit Emacs on SIGINT from the (frameless) controlling tty, if possible.  Explain this in a comment.
(init_keyboard): Added comment about exiting on SIGINT.
(Fset_input_mode): A termcap frame is never the initial frame anymore.

src/sysdep.c (init_sys_modes): Update tty_set_terminal_modes call to the new prototype.
(reset_sys_modes): Comment out tty_clear_end_of_line call; it doesn't work anymore.  Update tty_reset_terminal_modes call.

src/termchar.h (struct tty_display_info): Added pointer to the display structure, for reset_sys_modes.

src/termhooks.h (struct display): Added display parameter to set_terminal_modes_hook and reset_terminal_modes_hook.

src/term.c (initial_display): New variable.
(tty_ring_bell, tty_update_end, tty_set_terminal_window, tty_cursor_to)
(tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame, tty_clear_end_of_line)
(tty_write_glyphs, tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines): New functions.
(ring_bell, update_end, set_terminal_window, cursor_to, raw_cursor_to)
(clear_to_end, clear_frame, clear_end_of_line, write_glyphs, insert_glyphs)
(delete_glyphs, ins_del_lines): Removed special casing of termcap displays.
(get_tty_display): New function.
(Ftty_display_color_p, Ftty_display_color_cells): Use it.
(get_named_tty_display): Removed static.
(tty_set_terminal_modes, tty_reset_terminal_modes): Changed to use a display parameter
instead of tty_display_info for hook compatibility.
(set_terminal_modes, reset_terminal_modes): Removed.
(initial_term_init): Renamed to init_initial_display.  Set up an
output_initial device, not a termcap display.
(delete_initial_display): New function.
(maybe_fatal): New function, for private use of term_init.
(term_init): New parameter for choosing between fatal and simple errors.
Removed incomprehensible special casing for the second initialization of the
controlling tty.  Use maybe_fatal for error handling.
Initialize termcap display hooks in the new device.
Initialize the display pointer in the tty_display_info structure.
(delete_tty): Replace order of reset_sys_modes and delete_display.

src/window.c (init_window_once): Call make_initial_frame instead of make_terminal_frame.

src/xfaces.c (realize_default_face, realize_face): Don't abort on the bootstrap display device.

src/xterm.c (XTset_terminal_modes, XTreset_terminal_modes): Added display parameter.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-48

20 years agoFix SEGV in init_sys_modes during X startup
Karoly Lorentey [Fri, 9 Jan 2004 13:12:28 +0000 (13:12 +0000)]
Fix SEGV in init_sys_modes during X startup

src/keyboard.c (Fset_input_mode): Don't call {init,reset}_sig_modes if
the tty is the initial tty.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-47

20 years ago(appt-add): Also accept time in the form XX[.XX][am/pm/AM/PM].
Thien-Thi Nguyen [Thu, 8 Jan 2004 23:35:07 +0000 (23:35 +0000)]
(appt-add): Also accept time in the form XX[.XX][am/pm/AM/PM].
(appt-make-list): Likewise.
(appt-convert-time): Likewise.

20 years ago(diary-entry-time): Also accept time in the form XX[.XX][am/pm/AM/PM].
Thien-Thi Nguyen [Thu, 8 Jan 2004 23:31:47 +0000 (23:31 +0000)]
(diary-entry-time): Also accept time in the form XX[.XX][am/pm/AM/PM].
(fancy-diary-font-lock-keywords): Likewise.
(diary-font-lock-keywords): Likewise.

20 years ago(gdb-ann3): Revert previous change. (don't use GDB command "set width 0").
Nick Roberts [Thu, 8 Jan 2004 22:10:42 +0000 (22:10 +0000)]
(gdb-ann3): Revert previous change. (don't use GDB command "set width 0").
(gdb-source-info): Allow for case of where compilation directory is not
recorded.

20 years ago*** empty log message ***
Nick Roberts [Thu, 8 Jan 2004 22:09:12 +0000 (22:09 +0000)]
*** empty log message ***

20 years ago* xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
Jan Djärv [Thu, 8 Jan 2004 21:04:32 +0000 (21:04 +0000)]
* xmenu.c (Fx_popup_dialog): Add an Ok button if no buttons are
  specified.

20 years ago(main): Save errno from socket_status.
Andreas Schwab [Thu, 8 Jan 2004 12:20:43 +0000 (12:20 +0000)]
(main): Save errno from socket_status.

20 years ago(Fformat): Fix '&' to '&&'.
Kenichi Handa [Thu, 8 Jan 2004 08:40:12 +0000 (08:40 +0000)]
(Fformat): Fix '&' to '&&'.

20 years ago(emerge-restore-buffer-characteristics): Doc fix.
John Paul Wallington [Thu, 8 Jan 2004 05:43:22 +0000 (05:43 +0000)]
(emerge-restore-buffer-characteristics): Doc fix.

20 years ago(print_preprocess) <case Lisp_Vectorlike>: Only mask
Andreas Schwab [Thu, 8 Jan 2004 00:16:25 +0000 (00:16 +0000)]
(print_preprocess) <case Lisp_Vectorlike>: Only mask
size if PSEUDOVECTOR_FLAG is set.

20 years ago(gdb-first-prompt): Renamed from
Nick Roberts [Wed, 7 Jan 2004 23:22:34 +0000 (23:22 +0000)]
(gdb-first-prompt): Renamed from
gdb-first-pre-prompt

20 years ago(gdba): Avoid duplication, use gdb-ann3. Use GDB
Nick Roberts [Wed, 7 Jan 2004 23:21:56 +0000 (23:21 +0000)]
(gdba): Avoid duplication, use gdb-ann3. Use GDB
command "set width 0" to prevent word wrapping problems.
(gdb-prompt): Set (renamed) gdb-first-prompt to nil in gdb-ann3.

20 years ago*** empty log message ***
Nick Roberts [Wed, 7 Jan 2004 23:21:10 +0000 (23:21 +0000)]
*** empty log message ***

20 years ago(write-file-functions, write-contents-functions): Clarify docstrings.
Luc Teirlinck [Wed, 7 Jan 2004 20:51:14 +0000 (20:51 +0000)]
(write-file-functions, write-contents-functions): Clarify docstrings.

20 years ago*** empty log message ***
Luc Teirlinck [Wed, 7 Jan 2004 20:49:14 +0000 (20:49 +0000)]
*** empty log message ***

20 years ago(Saving Buffers): Clarify descriptions of `write-contents-functions'
Luc Teirlinck [Wed, 7 Jan 2004 20:38:22 +0000 (20:38 +0000)]
(Saving Buffers): Clarify descriptions of `write-contents-functions'
and `before-save-hook'.  Make the defvar's for `before-save-hook' and
`after-save-hook' into defopt's.

20 years agoFix minor error.
Richard M. Stallman [Wed, 7 Jan 2004 13:27:51 +0000 (13:27 +0000)]
Fix minor error.

20 years ago(Fdeclare_equiv_charset): Fix docstring.
Kenichi Handa [Wed, 7 Jan 2004 12:50:15 +0000 (12:50 +0000)]
(Fdeclare_equiv_charset): Fix docstring.

20 years ago(set-auto-coding): Fix for the case that end-of-line is only CR.
Kenichi Handa [Wed, 7 Jan 2004 01:43:32 +0000 (01:43 +0000)]
(set-auto-coding): Fix for the case that end-of-line is only CR.

20 years ago(fontset_ref_via_base): Fix previous change.
Kenichi Handa [Wed, 7 Jan 2004 00:24:44 +0000 (00:24 +0000)]
(fontset_ref_via_base): Fix previous change.

20 years ago*** empty log message ***
Jason Rumney [Tue, 6 Jan 2004 23:50:50 +0000 (23:50 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Kim F. Storm [Tue, 6 Jan 2004 23:49:51 +0000 (23:49 +0000)]
*** empty log message ***

20 years ago2004-01-06 Eric Hanchrow <offby1@blarg.net> (tiny change)
Jason Rumney [Tue, 6 Jan 2004 23:48:14 +0000 (23:48 +0000)]
2004-01-06  Eric Hanchrow <offby1@blarg.net> (tiny change)

* make-dist (tempdir): Include cursors in nt/icons

20 years ago(read_process_output): Only activate adaptive
Kim F. Storm [Tue, 6 Jan 2004 23:34:45 +0000 (23:34 +0000)]
(read_process_output): Only activate adaptive
buffering if we read less than 256 bytes at a time.

20 years ago(Click Events): Describe new image and
Kim F. Storm [Tue, 6 Jan 2004 23:21:00 +0000 (23:21 +0000)]
(Click Events): Describe new image and
width/height elements of click events.
(Accessing Events): Add posn-string, posn-image, and
posn-object-width-height.  Change posn-object to return either
image or string object.

20 years ago(event-start, event-end): Doc fix.
Kim F. Storm [Tue, 6 Jan 2004 23:04:44 +0000 (23:04 +0000)]
(event-start, event-end): Doc fix.
(posn-string, posn-image): New defuns.
(posn-object): Return either image or string object.
(posn-object-x-y): Return 8th element of position.
(posn-object-width-height): New defun.

20 years ago(note_mode_line_or_margin_highlight): Use modified
Kim F. Storm [Tue, 6 Jan 2004 22:38:23 +0000 (22:38 +0000)]
(note_mode_line_or_margin_highlight): Use modified
mode_line_string and marginal_area_string functions to handle
both string object and image object properties.

20 years ago(POSN_POSN, POSN_SET_POSN): Rename macros from
Kim F. Storm [Tue, 6 Jan 2004 22:37:48 +0000 (22:37 +0000)]
(POSN_POSN, POSN_SET_POSN): Rename macros from
POSN_BUFFER_POSN and POSN_SET_BUFFER_POSN. All uses changed.
(POSN_INBUFFER_P, POSN_BUFFER_POSN): New macros.

20 years ago(make_lispy_position): Use modified mode_line_string,
Kim F. Storm [Tue, 6 Jan 2004 22:37:39 +0000 (22:37 +0000)]
(make_lispy_position): Use modified mode_line_string,
buffer_posn_from_coords, and marginal_area_string functions to
include both string object and image object in the lispy position.
Also add actual glyph width and height to position.
(read_key_sequence): Use real buffer position from mouse
event to find keymap property even when click is in marginal area.

20 years ago(buffer_posn_from_coords): Return both buffer/string
Kim F. Storm [Tue, 6 Jan 2004 22:37:11 +0000 (22:37 +0000)]
(buffer_posn_from_coords): Return both buffer/string
object and image object.  Return glyph width and height.
(mode_line_string, marginal_area_string): Ditto.

20 years ago(buffer_posn_from_coords, mode_line_string)
Kim F. Storm [Tue, 6 Jan 2004 22:36:41 +0000 (22:36 +0000)]
(buffer_posn_from_coords, mode_line_string)
(marginal_area_string): Fix prototypes.

20 years ago*** empty log message ***
Kim F. Storm [Tue, 6 Jan 2004 22:35:56 +0000 (22:35 +0000)]
*** empty log message ***

20 years ago(gdb-frame-handler): Handle word wrapping anywhere in
Andreas Schwab [Tue, 6 Jan 2004 20:39:28 +0000 (20:39 +0000)]
(gdb-frame-handler): Handle word wrapping anywhere in
output.

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Tue, 6 Jan 2004 17:09:40 +0000 (17:09 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-19
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-20
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-21
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-46

20 years ago(skip_chars): Treat '-' at end of string as ordinary
Andreas Schwab [Tue, 6 Jan 2004 16:11:00 +0000 (16:11 +0000)]
(skip_chars): Treat '-' at end of string as ordinary
character.

20 years agoallow / and *, too
Karl Berry [Mon, 5 Jan 2004 22:50:58 +0000 (22:50 +0000)]
allow / and *, too

20 years agoMention before-save-hook.
Simon Josefsson [Mon, 5 Jan 2004 18:21:12 +0000 (18:21 +0000)]
Mention before-save-hook.

20 years agohooks.texi (Standard Hooks): Add before-save-hook.
Simon Josefsson [Mon, 5 Jan 2004 18:20:27 +0000 (18:20 +0000)]
hooks.texi (Standard Hooks): Add before-save-hook.
files.texi (Saving Buffers): Likewise.

20 years agoFix comment to recommend
Simon Josefsson [Mon, 5 Jan 2004 18:19:11 +0000 (18:19 +0000)]
Fix comment to recommend
before-save-hook instead of write-file-functions.

20 years ago(before-save-hook): Add.
Simon Josefsson [Mon, 5 Jan 2004 18:17:41 +0000 (18:17 +0000)]
(before-save-hook): Add.
(basic-save-buffer): Use before-save-hook.

20 years ago(finder-commentary): Call delete-other-windows.
Richard M. Stallman [Mon, 5 Jan 2004 13:59:08 +0000 (13:59 +0000)]
(finder-commentary): Call delete-other-windows.

20 years ago(ange-ftp-file-attributes):
Richard M. Stallman [Mon, 5 Jan 2004 13:58:18 +0000 (13:58 +0000)]
(ange-ftp-file-attributes):
Pass 2 args to ange-ftp-real-file-attributes only if ID-FORMAT non-nil.

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Mon, 5 Jan 2004 05:58:50 +0000 (05:58 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-17
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-18
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-45

20 years agoConverted display hooks to be display-local. Plus many bugfixes.
Karoly Lorentey [Mon, 5 Jan 2004 05:54:35 +0000 (05:54 +0000)]
Converted display hooks to be display-local.  Plus many bugfixes.

lib-src/emacsclient.c (window_change_signal): Renamed to pass_signal_to_emacs.
(init_signal): Pass SIGINT and SIGQUIT to the emacs process.

lisp/faces.el (face-valid-attribute-values): Use the window-system
function, not the variable.
(read-face-attribute, face-spec-set-match-display, frame-set-background-mode)
(face-set-after-frame-default): Ditto.

lisp/frame.el (make-frame-on-tty): Added interactive declaration
(suggested by Robert J. Chassell).  Use tty-create-frame-with-faces,
not make-terminal-frame.

src/termhooks.h (struct display_method): Renamed to display for brevity.
(struct display): Added all display hook variables as members of this structure.
Added next_display, reference_count, type and display_info components.
(FRAME_MUST_WRITE_SPACES, FRAME_FAST_CLEAR_END_OF_LINE, FRAME_LINE_INS_DEL_OK)
(FRAME_CHAR_INS_DEL_OK, FRAME_SCROLL_REGION_OK, FRAME_SCROLL_REGION_COST)
(FRAME_MEMORY_BELOW_FRAME, FRAME_RIF): Updated for struct display.
(FRAME_DISPLAY): New macro.
(create_display, delete_display): New prototypes.

src/frame.h (struct frame): Added `display' member, removed display_method.
(FRAME_LIVE_P): Look at f->display, not f->output_data.

src/termchar.h (struct tty_display_info): Removed display_method component.
(FRAME_TTY): Use the display structure, not output_data.

src/term.c (display_list): New variable.
(cursor_to_hook, raw_cursor_to_hook, clear_to_end_hook, clear_frame_hook)
(clear_end_of_line_hook, ins_del_lines_hook, delete_glyphs_hook)
(ring_bell_hook, reset_terminal_modes_hook, set_terminal_modes_hook)
(update_begin_hook, update_end_hook, set_terminal_window_hook)
(insert_glyphs_hook, write_glyphs_hook, delete_glyphs_hoo, read_socket_hook)
(frame_up_to_date_hook, mouse_position_hook, frame_rehighlight_hook)
(frame_raise_lower_hook, set_vertical_scroll_bar_hook, condemn_scroll_bars_hook)
(redeem_scroll_bar_hook, judge_scroll_bars_hook): Moved to struct display.
(tty_display_method_template): Removed.
(syms_of_term): Don't initialize tty_display_method_template.
(ring_bell, set_terminal_modes, reset_terminal_modes, update_begin)
(update_end, set_terminal_window, cursor_to, raw_cursor_to, clear_to_end)
(clear_frame, clear_end_of_line, write_glyphs, insert_glyphs)
(delete_glyphs, ins_del_lines): Access display hooks through the frame pointer.
(Ftty_display_color_p): Use the frame given as a parameter, or else return nil.
(Ftty_display_color_cells): Ditto.
(get_named_tty): Renamed to get_named_tty_display, changed return type to struct display.
(term_dummy_init): Renamed to initial_term_init.  Create and return an initial display.
(term_init): Initialize a new struct display and return a pointer to
it instead of tty_display_info.  Removed frame initialization kludge.
(Fdelete_tty): Updated for struct display.
(delete_tty): The parameter type is now struct display, not tty_display_info.
Delete the display, too.
(create_tty_output): New function for creating tty_output structures.
(delete_tty_output): New function for deleting tty_output structures.
(create_display): New function for creating and registering display structures.
(delete_display): New function for deleting and unregistering display structures.

src/dispextern.h: Updated prototypes.

src/dispnew.c:  Include frame.h before termhooks.h.
(init_display): Updated term_init call to new signature.

src/emacs.c: Include frame.h (for termhooks.h).
src/keymap.c: Ditto.
src/lread.c: Ditto.
src/xsmfns.c: Ditto.

src/process.c: Include frame.h before termhooks.h.

src/frame.c (Fwindow_system): New function.
(syms_of_frame): Initialize it.
(make_terminal_frame): Open the terminal device before creating the new frame.
Disable scrollbars here, term_init cannot do that anymore.
(Fdelete_frame): Use the new delete_frame_hook, don't do display-specific
frame deletion here.  Ditto for delete_display_hook.
(Fmouse_position, Fmouse_pixel_position, Fraise_frame, Flower_frame)
(Fredirect_frame_focus): Access display hooks through the frame pointer.

src/keyboard.c: Include frame.h before termhooks.h.
(start_polling, input_polling_used, stop_polling, gobble_input): Ignore read_socket_hook.
(kbd_buffer_get_event, Fset_input_mode): Access display hooks through the frame pointer.
(read_avail_input): Loop through all display devices for and call all read_socket_hook functions.  Check ttys even if read_socket_hook returned an error.

src/sysdep.c (discard_tty_input): Ignore read_socket_hook.
(stuff_char): Don't do anything if the current frame is not on a termcap display.
(request_sigio, unrequest_sigio): Ignore read_socket_hook.
(init_sys_modes): Always call narrow_foreground_group.  Set up terminal modes and sigio even under X.

src/xdisp.c (message2_nolog, message3_nolog, redisplay_internal)
(set_vertical_scroll_bar, redisplay_window): Access display hooks through the frame pointer.
(echo_area_display): Don't be afraid of termcap frames during an X+tty combo session.

src/xfaces.c: Include termhooks.h.
(Ftty_supports_face_attributes_p): Use the given frame, not selected_frame.

src/xfns.c (x_set_scroll_bar_foreground, x_set_scroll_bar_background): Access display hooks through the frame pointer.
(Fx_create_frame, x_create_tip_frame): Initialize the frame's display structure.
src/xmenu.c: Include termhooks.h after frame.h.

src/xselect.c (x_own_selection, some_frame_on_display, x_get_foreign_selection)
(Fx_disown_selection_internal, Fx_get_cut_buffer_internal)
(Fx_store_cut_buffer_internal, Fx_rotate_cut_buffers_internal): Don't do anything
if the selected frame is not an X frame.

src/xterm.c (x_display_method): Removed.
(x_create_frame_display, x_delete_frame_display): New functions for handling struct display objects.
(x_term_init): Set up a new struct display object, too.
(x_delete_display): Delete the struct display corresponding to the X display.
(x_initialize): Moved hook initialization to x_create_frame_display.

src/xterm.h (x_display_method): Removed.
(struct x_display_info): Added frame_display component.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-44

20 years agoallow % and # as well as ; in copyright notice
Karl Berry [Sun, 4 Jan 2004 23:00:06 +0000 (23:00 +0000)]
allow % and # as well as ; in copyright notice

20 years ago(main): Fix socket name when using another user.
Andreas Schwab [Sun, 4 Jan 2004 16:42:06 +0000 (16:42 +0000)]
(main): Fix socket name when using another user.

20 years agoRestored ChangeLog
Per Abrahamsen [Sun, 4 Jan 2004 16:05:15 +0000 (16:05 +0000)]
Restored ChangeLog

20 years agoFix dec-8 bug
Per Abrahamsen [Sun, 4 Jan 2004 15:11:59 +0000 (15:11 +0000)]
Fix dec-8 bug

20 years ago(compile-internal): Use point, not point-min, for set-window-point.
Richard M. Stallman [Sat, 3 Jan 2004 22:38:10 +0000 (22:38 +0000)]
(compile-internal): Use point, not point-min, for set-window-point.

20 years ago(decode_any_window): New function.
Richard M. Stallman [Sat, 3 Jan 2004 21:17:51 +0000 (21:17 +0000)]
(decode_any_window): New function.
(Fwindow_height, Fwindow_width, Fwindow_edges)
(Fwindow_pixel_edges, Fwindow_inside_edges)
(Fwindow_inside_pixel_edges): Use decode_any_window.

20 years ago*** empty log message ***
Richard M. Stallman [Sat, 3 Jan 2004 21:16:42 +0000 (21:16 +0000)]
*** empty log message ***

20 years ago(Frames and Windows): Delete frame-root-window.
Richard M. Stallman [Sat, 3 Jan 2004 21:16:15 +0000 (21:16 +0000)]
(Frames and Windows): Delete frame-root-window.

20 years ago(latex-find-indent): Avoid error at end of buf.
Richard M. Stallman [Sat, 3 Jan 2004 21:15:28 +0000 (21:15 +0000)]
(latex-find-indent): Avoid error at end of buf.

20 years ago(lm-section-end): require outline.
Richard M. Stallman [Sat, 3 Jan 2004 21:14:11 +0000 (21:14 +0000)]
(lm-section-end): require outline.

20 years ago(speedbar-edit-line): Change regexp to position
Richard M. Stallman [Sat, 3 Jan 2004 21:12:08 +0000 (21:12 +0000)]
(speedbar-edit-line): Change regexp to position
the cursor on the first character of this line's button.

20 years ago(grep-mode-map): Don't remap next-line, previous-line.
Richard M. Stallman [Sat, 3 Jan 2004 21:11:43 +0000 (21:11 +0000)]
(grep-mode-map): Don't remap next-line, previous-line.

20 years agoFix more SEGV cases in frame.c
Karoly Lorentey [Sat, 3 Jan 2004 19:06:35 +0000 (19:06 +0000)]
Fix more SEGV cases in frame.c

src/frame.c (Fmouse_pixel_position, Fraise_frame, Flower_frame)
(Fredirect_frame_focus): Don't do anything if the current frame
is a termcap frame.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-43

20 years ago(functionp): Doc fix.
Luc Teirlinck [Sat, 3 Jan 2004 17:17:21 +0000 (17:17 +0000)]
(functionp): Doc fix.

20 years ago*** empty log message ***
Luc Teirlinck [Sat, 3 Jan 2004 17:15:46 +0000 (17:15 +0000)]
*** empty log message ***

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Sat, 3 Jan 2004 16:53:54 +0000 (16:53 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-16
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-42

20 years agoVarious small changes in addition to the following.
Luc Teirlinck [Sat, 3 Jan 2004 16:52:43 +0000 (16:52 +0000)]
Various small changes in addition to the following.
(What Is a Function): `functionp' returns nil for macros.  Clarify
behavior of this and following functions for symbol arguments.
(Function Documentation): Add `\' in front of (fn @var{arglist}) and
explain why.
(Defining Functions): Mention DOCSTRING argument to `defalias'.  Add anchor.
(Mapping Functions): Add anchor.  Unquote nil in mapcar* example.

20 years agoAdd "multi-tty" to emacs-version output.
Karoly Lorentey [Sat, 3 Jan 2004 16:51:56 +0000 (16:51 +0000)]
Add "multi-tty" to emacs-version output.

lisp/version.el (emacs-version): Add multi-tty to output if (featurep
'multi-tty).  Suggested by Romain Francoise <romain@orebokech.com>.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-41

20 years agoFix mouse-position for tty+X combo sessions.
Karoly Lorentey [Sat, 3 Jan 2004 16:49:09 +0000 (16:49 +0000)]
Fix mouse-position for tty+X combo sessions.

frame.c (Fmouse_position): Don't call mouse_position_hook if the frame
is a termcap frame.  (Reported by Romain Francoise <romain@orebokech.com>.)

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-40

20 years ago(Creating Symbols): Add anchor.
Luc Teirlinck [Sat, 3 Jan 2004 16:47:05 +0000 (16:47 +0000)]
(Creating Symbols): Add anchor.

20 years ago(Accessing Documentation): Add anchor.
Luc Teirlinck [Sat, 3 Jan 2004 16:45:33 +0000 (16:45 +0000)]
(Accessing Documentation): Add anchor.

20 years ago(Hash Access): Add anchor.
Luc Teirlinck [Sat, 3 Jan 2004 16:44:03 +0000 (16:44 +0000)]
(Hash Access): Add anchor.

20 years ago(Function Indirection): Add anchor.
Luc Teirlinck [Sat, 3 Jan 2004 16:39:33 +0000 (16:39 +0000)]
(Function Indirection): Add anchor.

20 years ago* progmodes/idlwave.el (idlwave-make-tags):
Eli Zaretskii [Sat, 3 Jan 2004 12:12:01 +0000 (12:12 +0000)]
* progmodes/idlwave.el (idlwave-make-tags):
* textmodes/flyspell.el (flyspell-large-region):.
* progmodes/make-mode.el (makefile-query-by-make-minus-q):
* emulation/viper-util.el (viper-glob-unix-files):
* emacs-lisp/shadow.el (shadow-same-file-or-nonexistent):
* man.el (Man-init-defvars):
* jka-compr.el (jka-compr-call-process):
* files.el (get-free-disk-space,insert-directory):
* ediff-ptch.el (ediff-test-patch-utility):
* ediff-diff.el (ediff-test-utility):
* dired-aux.el (dired-check-process):
* mail/sendmail.el (sendmail-send-it): Don't use = or zerop to
test the return value of call-process, because it can be a string.

20 years agoFixed typo in talk.el (again).
Karoly Lorentey [Sat, 3 Jan 2004 09:19:46 +0000 (09:19 +0000)]
Fixed typo in talk.el (again).

lisp/talk.el (talk): Fixed byte compiler warning.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-39

20 years agoFixed typo in talk.el.
Karoly Lorentey [Sat, 3 Jan 2004 09:16:51 +0000 (09:16 +0000)]
Fixed typo in talk.el.

lisp/talk.el (talk-handle-delete-tty): Fixed typo.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-38

20 years agoAdded multi-tty support for talk.el.
Karoly Lorentey [Sat, 3 Jan 2004 09:08:15 +0000 (09:08 +0000)]
Added multi-tty support for talk.el.

lisp/talk.el: Extended for multi-tty support.
(talk, talk-add-tty-frame, talk-handle-delete-tty): New functions.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-37

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Sat, 3 Jan 2004 08:33:31 +0000 (08:33 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-15
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-36

20 years agoPortability fixes (now it compiles & runs fine on Solaris).
Karoly Lorentey [Sat, 3 Jan 2004 08:31:14 +0000 (08:31 +0000)]
Portability fixes (now it compiles & runs fine on Solaris).

lib-src/emacsclient.c: Removed tty proxy kludge.  Emacs should just
use the same terminal as emacsclient.
(ec_get_tty, ec_set_tty, master, pty_name, old_tty, tty, old_tty_valid)
(tty_erase_char, quit_char, flow_control, meta_key, _sobuf, init_tty)
(window_change, reset_tty, init_pty, copy_from_to)
(pty_conversation): Removed.
(window_change_signal): Just forward the signal to Emacs, don't do
anything else.
(init_signals): Don't set handlers for SIGHUP & SIGINT.
(strprefix): New function.
(main): Don't touch the terminal, simply tell its name to Emacs.

lisp/server.el (server-frames): Changed name and semantics to server-ttys.
(server-tty-live-p): New function.
(server-sentinel): Delete the whole tty, not just the frame.
(server-handle-delete-frame): Removed.
(server-handle-delete-tty): New function. Close the client connection if
the tty is deleted.
(server-start): Clean up server-ttys, not server-frames.  Set up
delete-tty-after-functions.
(server-process-filter): Set up server-ttys, not server-frames.
Updated protocol for sending our pid to emacsclient.
(server-buffer-done): Don't delete the client process directly, delete
the tty instead, and rely on the delete-tty hook to close the
connection.  Otherwise the terminal could be left in a bad state.

src/cm.c (cmputc): Don't abort on write errors.

src/indent.c: #include <stdio.h>, for termchar.h.
src/window.c: Ditto.
src/xfaces.c: Ditto.

src/sysdep.c (init_sigio, reset_sigio, request_sigio)[!SIGIO]
(unrequest_sigio)[!SIGIO]: If SIGIO is not supported, don't do
anything. (For Solaris.)
(init_sys_modes): Moved tty_set_terminal_modes call back to here,
disable window system check.
(reset_sys_modes): Reset the terminal even if X is running.

src/term.c (Vdelete_tty_after_functions): New variable.
(syms_of_term): Initialize it.
(Fdelete_tty): Updated docs.
(delete_tty): Run delete-tty-after-functions.
(term_init): Removed tty_set_terminal_modes call.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-35

20 years ago(emacs_options, x_initialized, same_x_server): Remove
Andreas Schwab [Fri, 2 Jan 2004 22:17:42 +0000 (22:17 +0000)]
(emacs_options, x_initialized, same_x_server): Remove
unused (and duplicated) definitions.

20 years agoUpdate URL for ESS.
Stephen Eglen [Fri, 2 Jan 2004 14:04:43 +0000 (14:04 +0000)]
Update URL for ESS.

20 years agoFix longopts option name for --tty.
Karoly Lorentey [Fri, 2 Jan 2004 13:03:12 +0000 (13:03 +0000)]
Fix longopts option name for --tty.

lib-src/emacsclient.c (longopts): Fix --tty and -t.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-34

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Fri, 2 Jan 2004 04:37:46 +0000 (04:37 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-10
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-11
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-12
   Add section on button package to lisp reference manual

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-13
   Minor tweaks to Buttons section in lispref/display.texi

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-14
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-33

20 years agoGot rid of the rif (window-based redisplay interface) global variable.
Karoly Lorentey [Fri, 2 Jan 2004 04:22:23 +0000 (04:22 +0000)]
Got rid of the rif (window-based redisplay interface) global variable.

src/dispextern.h (PRODUCE_GLYPHS): Use the rif in IT->f, not the global rif.
(rif): Removed.

src/dispnew.c (rif): Removed.
(direct_output_for_insert, direct_output_forward_char, update_frame)
(redraw_overlapped_rows, redraw_overlapping_rows, update_window)
(update_marginal_area, update_text_area, update_window_line)
(set_window_cursor_after_update, scrolling_window): Use the rif of the
current frame, not the global rif.

src/fontset.c: #include termhooks.h, for FRAME_RIF.
(Finternal_char_font): Use the rif of the current frame.

src/frame.c (x_set_frame_parameters): Use the rif of the current frame.

src/keyboard.c (detect_input_pending_run_timers): Use the rif of the
current frame.

src/minibuf.c: #include termhooks.h, for FRAME_RIF.
(read_minibuf): Use the rif of the current frame.

src/term.c (update_begin): Removed rif update hack.

src/termhooks.h (FRAME_RIF): New macro.

src/xdisp.c (init_iterator, expose_frame): Removed rif update hack.
(echo_area_display, x_cursor_to, draw_fringe_bitmap)
(try_window_reusing_current_matrix, try_window_id)
(get_glyph_face_and_encoding, x_get_glyph_overhangs)
(get_char_face_and_encoding, compute_overhangs_and_x, draw_glyphs)
(x_produce_glyphs, x_insert_glyphs, x_clear_end_of_line)
(erase_phys_cursor, display_and_set_cursor, show_mouse_face)
(define_frame_cursor1, x_draw_vertical_border): Use the rif of the
current frame.

src/xfns.c (Fx_create_frame): Removed rif update hack.
src/xterm.c (frame_highlight, frame_unhighlight): Ditto.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-32

20 years agoMULTI_KBOARD support for ttys. Input-related bugfixes for X+tty sessions.
Karoly Lorentey [Fri, 2 Jan 2004 02:54:17 +0000 (02:54 +0000)]
MULTI_KBOARD support for ttys.  Input-related bugfixes for X+tty sessions.

lib-src/emacsclient.c (pty_conversation): Fix errno check for read from fileno(in).

src/config.in: Unconditionally define MULTI_KBOARD.

src/frame.c (make_terminal_frame): Initialize f->kboard.

src/keyboard.c (cmd_error_internal): Don't kill Emacs if a Quit was
pressed on the tty of a X+tty session.
(read_avail_input): Initialize nread to zero.  Abort if there is no
tty after a termcap read.
(interrupt_signal)[USG]: Always reset signal handler.
(init_keyboard): Always set signal handler for SIGINT/SIGQUIT if
noninteractive.

src/term.c (term_dummy_init): Initialize kboard to the initial_kboard.
(term_init): Free component structures of the initial tty. Clear xmalloced structures.
Moved rif initialization to syms_of_term.
(term_init)[MULTI_KBOARD]: Initialize tty->kboard.
(delete_tty)[MULTI_KBOARD]: Delete the keyboard.
(syms_of_term): Initialize tty_display_method_template.

src/termchar.h (tty_output)[MULTI_KBOARD]: Added kboard member.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-31

20 years agoFixed X support, preliminary support for X-tty combo sessions.
Karoly Lorentey [Fri, 2 Jan 2004 01:15:26 +0000 (01:15 +0000)]
Fixed X support, preliminary support for X-tty combo sessions.

lib-src/emacsclient.c (copy_from_to, pty_conversation): Re-added SIGIO
hack.  (Sigh.)

lisp/frame.el (make-frame-on-tty): Use make-terminal-frame, not
make-frame.

src/dispnew.c (line_hash_code, line_draw_cost): Updated to use
the new display_method parameters.
(Fredraw_frame): fflush the tty only if f is a termcap frame.
(direct_output_for_insert): Updated to use the new display_method
parameters. fflush the tty only if f is a termcap frame.
(direct_output_forward_char, update_frame_1, scrolling): Ditto.
(update_frame_line, Fding, bitch_at_user): Ditto.
(Fsend_string_to_terminal): Fail if current frame is not on a tty.
(init_display): Frame size change is safe here.

src/frame.c (Vterminal_frame): Restored previously deleted variable.
(syms_of_frame): Initialize it.
(make_terminal_frame): Copy the frame's display_method from tty_display_info.
(Fmake_terminal_frame): Enable simultaneous X and tty frames (buggy).
(Fredirect_frame_focus): Don't call frame_rehighlight_hook if frame
is on a termcap device.

src/frame.h (struct frame): Renamed display to display_method.
(Vterminal_frame): Re-added declaration.

src/keyboard.c (flow_control): Moved to struct tty_display_info.
(read_avail_input): Check ttys even if there is a read_socket_hook.
(Fset_input_mode): Call reset_sys_modes/init_sys_modes and set
flow_control or meta_key only when the frame is a termcap frame.
(Fcurrent_input_mode): Handle flow_control and meta_key right on
non-termcap frames.

src/scroll.c (calculate_scrolling, calculate_direct_scrolling): Update
to use the new display_method parameters.
(scrolling_1, scroll_cost): Ditto.

src/sysdep.c (init_sys_modes, reset_sys_modes): Always set the
terminal parameters if tty_out->input is not stdin.  Updated to the
new location of flow_control.
(hft_init): Moved HFT init code to term_init, as it needs the frame.

src/term.c (tty_display_method_template): New variable.
(update_begin): Added rif hack.
(set_terminal_window, ins_del_lines, term_init): Updated to use the
new display_method parameters.
(insert_glyphs, ins_del_lines): Only call insert_glyphs_hook if the
current frame is not on a tty.
(calculate_costs): Don't calculate costs if not on a tty.
(term_dummy_init): Fixed tty->output initialization. Preallocate Wcm
and display_method.
(term_init): Allocate & initialize display_method.  Blindly fixed
WINDOWSNT-specific parts.  Added HFT-specific initialization
exception from hft_init.
(delete_tty): Only delete termcap frames.  Free() the display_method.

src/termchar.h (struct tty_display_info): Moved high-level terminal
characteristics to struct display_method.  Added flow_control and
display_method members.

src/termhooks.h (struct display_method): New struct (renamed from
struct device).  Added accessor macros.

src/window.c (init_window_once): Initialize Vterminal_frame.

src/xdisp.c (init_iterator, expose_frame): Added rif hack.
(try_window_id): Updated to use the new display_method parameters.

src/xfaces.c (realize_basic_faces): Don't call
x_update_menu_appearance if the frame is a tty frame.

src/xfns.c (Fx_create_frame): Added rif hack.  Initialize
display_method.
(x_create_tip_frame): Initialize display_method.

src/xterm.c (x_display_method): New variable.
(x_flush, x_frame_of_widget, XTmouse_position): Ignore non-X frames.
(x_window_to_scroll_bar, x_window_to_menu_bar): Ditto.
(xim_destroy_callback, xim_instantiate_callback): Ditto.
(frame_highlight, frame_unhighlight): Added rif hack.
(x_initialize): Don't initialize rif.  Do initialize x_display_method.

src/xterm.h (x_display_method): New declaration.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-30

20 years ago*** empty log message ***
Kim F. Storm [Thu, 1 Jan 2004 23:44:00 +0000 (23:44 +0000)]
*** empty log message ***

20 years ago(ADAPTIVE_READ_BUFFERING): New conditional.
Kim F. Storm [Thu, 1 Jan 2004 23:34:14 +0000 (23:34 +0000)]
(ADAPTIVE_READ_BUFFERING): New conditional.
(READ_OUTPUT_DELAY_INCREMENT, READ_OUTPUT_DELAY_MAX)
(READ_OUTPUT_DELAY_MAX_MAX): New constants.
(process_output_delay_count, process_output_skip): New vars.
(Vprocess_adaptive_read_buffering): New variable.
(make_process): Initialize adaptive read buffering members.
(Fstart_process): Set adaptive_read_buffering member.
(deactivate_process): Cleanup adaptive read buffering.
(wait_reading_process_input): Temporarily omit delayed
subprocesses from the set of file descriptors to read from;
adjust the select timeout if we skipped any subprocesses.
(read_process_output): Increase adaptive read buffering delay if
we read less than a full buffer; reduce delay when we read a
full buffer.
(send_process): Simplify using local Lisp_Process var.
Reset adaptive read buffering delay after write.
(init_process): Initialize process_output_delay_count and
process_output_skip.
(syms_of_process): DEFVAR_LISP Vprocess_adaptive_read_buffering.

20 years ago(struct Lisp_Process): New members for adaptive read
Kim F. Storm [Thu, 1 Jan 2004 23:33:58 +0000 (23:33 +0000)]
(struct Lisp_Process): New members for adaptive read
buffering: adaptive_read_buffering, read_output_delay, and
read_output_skip.

20 years ago(w32_text_out): Use s->font, for consistency with callers.
Jason Rumney [Thu, 1 Jan 2004 22:51:46 +0000 (22:51 +0000)]
(w32_text_out): Use s->font, for consistency with callers.

20 years agoSeparate frame-local, tty-dependent parameters from tty-local parameters.
Karoly Lorentey [Thu, 1 Jan 2004 17:55:53 +0000 (17:55 +0000)]
Separate frame-local, tty-dependent parameters from tty-local parameters.

src/termchar.h (struct tty_output): Redefined to contain frame-local
tty-dependent parameters.  (Currently there are no such parameters, so
it consists of the tty_display_info pointer.)
(struct tty_display_info): New structure, with reference_count.
(FRAME_TTY): Updated to reflect new termcap frame structure.

src/term.c: Update prototypes. Use tty_display_info instead of tty_output.

src/cm.c (current_tty, cmcheckmagic, cmcostinit, calccost, cmgoto, Wcm_clear)
(Wcm_init): Use tty_display_info instead of tty_output.

src/cm.h: Update prototypes.
src/dispextern.h: Ditto.

src/dispnew.c (window_change_signal, init_display, make_terminal_frame):
Use tty_display_info instead of tty_output.

src/frame.c (Fdelete_frame): Use tty_display_info instead of
tty_output.  Fix delete_tty check.
(make_terminal_frame): Allocate f->output_data.tty.  Increase
reference count of tty device.
(delete_frame): Free f->output_data.tty.  Use reference count to
decide if the tty should be closed.

src/frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): New,
unconditional definitions.
(struct device): New declaration (at the moment, it is defined as
empty in termhooks.h).
(struct frame): Added display, background_pixel, foreground_pixel member.

src/keyboard.c (read_avail_input): Use tty_display_info instead of tty_output.

src/lisp.h: Declare struct display.  Update prototypes.

src/sysdep.c: Update prototypes.
(discard_tty_input, init_all_sys_modes, init_sys_modes, reset_all_sys_modes)
(reset_sys_modes, hft_init, hft_reset): Use tty_display_info instead
of tty_output.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-29

20 years agoRevision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-13
Miles Bader [Thu, 1 Jan 2004 14:09:01 +0000 (14:09 +0000)]
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-13

Minor tweaks to Buttons section in lispref/display.texi

20 years agoRevision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-12
Miles Bader [Thu, 1 Jan 2004 04:20:43 +0000 (04:20 +0000)]
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-12

Add section on button package to lisp reference manual

* lispref/display.texi (Buttons): New section.

20 years ago(Math Functions): sqrt reports a domain-error
Andreas Schwab [Wed, 31 Dec 2003 12:17:17 +0000 (12:17 +0000)]
(Math Functions): sqrt reports a domain-error
error.
(Float Basics): Use `(/ 0.0 0.0)' instead of `(sqrt -1.0)'.

20 years agoA few more bugfixes and new features.
Karoly Lorentey [Wed, 31 Dec 2003 05:09:29 +0000 (05:09 +0000)]
A few more bugfixes and new features.

(Sigh.)  I obviously need to remember to separate individual changes
to multiple commits.

src/emacsclient.c: Improved error handling.
(decode_options): Changed frame option (again) from -f to -t.
(print_help_and_exit): Ditto.
(copy_from_to): Check EINTR after write, not EAGAIN.  Removed SIGIO hack.
(pty_conversation): Handle errors transmitted through the socket.
Handle pty errors by not reading from it anymore.
(main): Restore correct errno after socket_status failed.  Send -tty
on -t, not -pty.

lisp/server.el (server-process-filter): Watch -tty, not -pty.
Use make-frame-on-tty instead of make-terminal-frame.
Don't set newframe to t if make-frame-on-tty failed.
Don't delete frames here.  Print correct message when there are no
files to edit, but a new frame was requested.
(server-sentinel): Delete the frame after the process.
(server-handle-delete-frame): New function for delete-frame-functions.
(server-start): Add server-handle-delete-frame to delete-frame-functions.
(server-buffer-done): Don't delete frames here.

src/alloc.c (mark_ttys): Add prototype.
(Fgarbage_collect): Call mark_ttys.

src/emacs.c: (shut_down_emacs): Don't flush stdout before
reset_sys_modes().

src/process.c (add_keyboard_wait_descriptor_called_flag): Removed.
(add_keyboard_wait_descriptor): Removed stdin hack.

src/sysdep.c: Unconditionally include sysselect.h.
(old_fcntl_flags): Changed to an array.
(init_sigio, reset_sigio): Use it.
(narrow_foreground_group, widen_foreground_group): Use setpgid, not
setpgrp.
(old_fcntl_owner): Changed to an array.
(init_sys_modes, reset_sys_modes): Use it.  Fix fsync() and reset_sigio() calls.
src/term.c (Qframe_tty_name, Qframe_tty_type): New variables.
(syms_of_term): Initialize them.
(Fframe_tty_name, Fframe_tty_type): New functions.
(term_init): Call add_keyboard_wait_descriptor().
(Fdelete_tty): New function.
(delete_tty): Call delete_keyboard_wait_descriptor().
(get_current_tty): Removed.
(mark_ttys): New function.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-28

20 years ago(completion-ignored-extensions): Add .pfsl.
John Paul Wallington [Wed, 31 Dec 2003 02:46:07 +0000 (02:46 +0000)]
(completion-ignored-extensions): Add .pfsl.

20 years ago*** empty log message ***
Luc Teirlinck [Wed, 31 Dec 2003 00:32:19 +0000 (00:32 +0000)]
*** empty log message ***

20 years ago(Fsignal): Add hyperlink to the definition of `signal' in the Elisp manual.
Luc Teirlinck [Wed, 31 Dec 2003 00:27:07 +0000 (00:27 +0000)]
(Fsignal): Add hyperlink to the definition of `signal' in the Elisp manual.

20 years ago(Ferror_message_string): Add hyperlink to the definition of `signal'
Luc Teirlinck [Wed, 31 Dec 2003 00:24:28 +0000 (00:24 +0000)]
(Ferror_message_string): Add hyperlink to the definition of `signal'
in the Elisp manual.

20 years ago(ido-nonreadable-directory-p): New defun to check for
Kim F. Storm [Wed, 31 Dec 2003 00:00:12 +0000 (00:00 +0000)]
(ido-nonreadable-directory-p): New defun to check for
nonreadable directory without activating tramp to avoid problems
with checking incomplete tramp paths.
(ido-set-current-directory, ido-file-internal)
(ido-file-name-all-completions1): Use it.

20 years ago*** empty log message ***
Kim F. Storm [Tue, 30 Dec 2003 23:59:39 +0000 (23:59 +0000)]
*** empty log message ***