Karoly Lorentey [Mon, 12 Jan 2004 00:45:42 +0000 (00:45 +0000)]
Fix initialization of the window-system variable.
lisp/faces.el (x-create-frame-with-faces)
(tty-create-frame-with-faces): Don't set the window-system parameter
here, it seems to be unreliable.
lisp/frame.el (make-frame): Don't forget to return the new frame (d'oh).
src/frame.c (Qwindow_system): New symbol.
(syms_of_frame): Intern it.
(Fmake_terminal_frame): Initialize window-system frame parameter.
src/frame.h (Qwindow_system): New declaration.
src/xfns.c (Fx_create_frame, x_create_tip_frame): Initialize
window-system frame parameter.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-56
Karoly Lorentey [Sun, 11 Jan 2004 23:12:24 +0000 (23:12 +0000)]
Merged in changes from CVS HEAD
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-31
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-55
Glenn Morris [Sun, 11 Jan 2004 22:28:18 +0000 (22:28 +0000)]
*** empty log message ***
Glenn Morris [Sun, 11 Jan 2004 22:27:38 +0000 (22:27 +0000)]
Update Appointments section.
Glenn Morris [Sun, 11 Jan 2004 22:26:46 +0000 (22:26 +0000)]
Update copyright.
(view-diary-entries-initially, european-calendar-style): Doc change.
(calendar-setup): Make defcustom rather than defvar.
(mark-visible-calendar-date): Initialize temp-face and faceinfo
in let binding so local to function.
Glenn Morris [Sun, 11 Jan 2004 22:25:58 +0000 (22:25 +0000)]
(calendar-one-frame-setup)
(calendar-only-one-frame-setup, calendar-two-frame-setup): Doc change.
Glenn Morris [Sun, 11 Jan 2004 22:25:33 +0000 (22:25 +0000)]
Update copyright.
(diary, diary-entry-time): Doc change.
(list-diary-entries): Doc change. Trivial logic change.
(fancy-diary-display): Restore make-face command mistakenly
deleted 2003-05-08.
(show-all-diary-entries): Allow to pop-up frame if needed.
Glenn Morris [Sun, 11 Jan 2004 22:24:57 +0000 (22:24 +0000)]
Update copyright and commentary.
(appt-issue-message): Delete (see appt-activate).
(appt-visible, appt-msg-window): Make obsolete, in favour of
appt-display-format.
(appt-display-mode-line, appt-display-duration)
(appt-display-diary, appt-time-msg-list, appt-mode-string)
(appt-prev-comp-time, appt-display-count, appt-timer)
(appt-convert-time): Doc change.
(appt-disp-window-function, appt-delete-window-function): Use
defcustom rather than defvar.
(appt-display-format): New variable.
(appt-display-message): New function with display code from
appt-check.
(appt-check): Add optional FORCE argument. Doc change. Add
appt-make-list to diary-hook if displaying diary. Remove
checking of view-diary-entries-initially. Message
display section removed to new function appt-display-message.
(appt-display-window): Doc change. Remove unused internal var
this-buffer. Do not beep, since appt-display-message does that.
(appt-make-list): Doc change. Use caar.
(appt-sort-list): Simplify by using builtin sort function.
(appt-update-list): New function for updating appts when diary is
saved.
(appt-activate): New autoloaded function to toggle package
functionality.
Karoly Lorentey [Sun, 11 Jan 2004 21:59:40 +0000 (21:59 +0000)]
Support for opening X frames from a tty session.
lisp/cus-face.el (custom-declare-face): Handle multiple concurrent
display methods correctly.
lisp/faces.el (x-create-frame-with-faces): Set the window-system frame
parameter instead of frame-creation-function.
(tty-create-frame-with-faces): Ditto.
lisp/frame.el (frame-creation-function): Removed.
(frame-creation-function-alist): New variable.
(frame-initialize): Use initial-window-system instead of window-system.
Add window-system parameter to initial-frame-alist.
Removed tty initialization, it was moved to frame-creation-function-alist.
(frame-notice-user-settings): Use initial-window-system instead of window-system.
(make-frame-on-display): Make sure term/x-win is loaded. Added
window-system parameter for make-frame.
(make-frame-on-tty): Removed unnecessary autoload declaration. Added
window-system parameter for make-frame.
(make-frame): Use frame-creation-function-alist to determine the
function to use depending on the specified window system.
(select-frame-by-name): Use the window-system function instead of the
variable.
lisp/startup.el (window-system): New variable (previously built-in,
now frame-local).
(normal-top-level, command-line): Use initial-window-system instead
of window-system.
lisp/loadup.el: Load startup.el before faces.el, for the
window-system variable.
lisp/term/x-win.el: Check for the x-create-frame function instead of
window-system to see if X is available. Don't exit Emacs if the
display can not be opened when X is not the initial display method.
Set up frame-creation-function-alist instead of
frame-creation-function. Provide the x-win feature.
src/dispnew.c (Vwindow_system): Renamed to Vinitial_window_system.
(init_display, syms_of_display): Updated to use Vinitial_window_system
instead of Vwindow_system.
src/emacs.c (shut_down_emacs): Updated to use Vinitial_window_system
instead of Vwindow_system.
src/keyboard.c (Fset_input_mode): Call reset_all_sys_modes, not
reset_sys_modes. Ditto for init_all_sys_modes. Process the quit
parameter correctly.
src/sysdep.c (init_sys_modes, reset_sys_modes): Unconditionally set up
the terminal. We don't get called if there is nothing to do anymore.
(sys_select): Use Vinitial_window_system, not Vwindow_system.
src/window.h (Vwindow_system): Renamed to Vinitial_window_system.
src/xfns.c (Fx_create_frame): Don't check_x. We initialize it anyway.
(x_display_info_for_name, Fx_open_connection): Don't look at
Vinitial_window_system.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-54
Jan Djärv [Sun, 11 Jan 2004 21:50:12 +0000 (21:50 +0000)]
* alloc.c (allocate_vectorlike): Surround calls to mallopt with
BLOCK/UNBLOCK_INPUT.
Karoly Lorentey [Sun, 11 Jan 2004 11:26:00 +0000 (11:26 +0000)]
Don't select on stdin unconditionally.
src/process.c (init_process): Don't add stdin to input_wait_mask.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-53
Karoly Lorentey [Sun, 11 Jan 2004 02:45:44 +0000 (02:45 +0000)]
Fix C-g handling with multiple ttys.
src/sysdep.c (init_sys_modes): Disable interrupt and quit keys on
secondary terminals. Added a big fat comment about this.
lib-src/emacsclient.c (init_signals): Don't pass SIGINT and SIGQUIT to Emacs.
src/keyboard.c (interrupt_signal): Exit Emacs if there are no frames
on the controlling tty. Otherwise set internal_last_event_frame to
the controlling tty's top frame.
src/term.c (ring_bell, tty_ring_bell): Don't look at updating_frame.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-52
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
Robert J. Chassell [Sat, 10 Jan 2004 15:18:29 +0000 (15:18 +0000)]
(texinfo-multi-file-update): update documentation to state that
you can include any file, including those without node lines; and
the latter do not have menu entries created for them.
Robert J. Chassell [Sat, 10 Jan 2004 15:01:51 +0000 (15:01 +0000)]
(texinfo-menu-copy-old-description): do not copy `@detailmenu' or
`@end menu' as descriptions!
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
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
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.
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
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
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.
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.
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.
Nick Roberts [Thu, 8 Jan 2004 22:09:12 +0000 (22:09 +0000)]
*** empty log message ***
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.
Andreas Schwab [Thu, 8 Jan 2004 12:20:43 +0000 (12:20 +0000)]
(main): Save errno from socket_status.
Kenichi Handa [Thu, 8 Jan 2004 08:40:12 +0000 (08:40 +0000)]
(Fformat): Fix '&' to '&&'.
John Paul Wallington [Thu, 8 Jan 2004 05:43:22 +0000 (05:43 +0000)]
(emerge-restore-buffer-characteristics): Doc fix.
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.
Nick Roberts [Wed, 7 Jan 2004 23:22:34 +0000 (23:22 +0000)]
(gdb-first-prompt): Renamed from
gdb-first-pre-prompt
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.
Nick Roberts [Wed, 7 Jan 2004 23:21:10 +0000 (23:21 +0000)]
*** empty log message ***
Luc Teirlinck [Wed, 7 Jan 2004 20:51:14 +0000 (20:51 +0000)]
(write-file-functions, write-contents-functions): Clarify docstrings.
Luc Teirlinck [Wed, 7 Jan 2004 20:49:14 +0000 (20:49 +0000)]
*** empty log message ***
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.
Richard M. Stallman [Wed, 7 Jan 2004 13:27:51 +0000 (13:27 +0000)]
Fix minor error.
Kenichi Handa [Wed, 7 Jan 2004 12:50:15 +0000 (12:50 +0000)]
(Fdeclare_equiv_charset): Fix docstring.
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.
Kenichi Handa [Wed, 7 Jan 2004 00:24:44 +0000 (00:24 +0000)]
(fontset_ref_via_base): Fix previous change.
Jason Rumney [Tue, 6 Jan 2004 23:50:50 +0000 (23:50 +0000)]
*** empty log message ***
Kim F. Storm [Tue, 6 Jan 2004 23:49:51 +0000 (23:49 +0000)]
*** empty log message ***
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
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.
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.
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.
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.
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.
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.
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.
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.
Kim F. Storm [Tue, 6 Jan 2004 22:35:56 +0000 (22:35 +0000)]
*** empty log message ***
Andreas Schwab [Tue, 6 Jan 2004 20:39:28 +0000 (20:39 +0000)]
(gdb-frame-handler): Handle word wrapping anywhere in
output.
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
Andreas Schwab [Tue, 6 Jan 2004 16:11:00 +0000 (16:11 +0000)]
(skip_chars): Treat '-' at end of string as ordinary
character.
Karl Berry [Mon, 5 Jan 2004 22:50:58 +0000 (22:50 +0000)]
allow / and *, too
Simon Josefsson [Mon, 5 Jan 2004 18:21:12 +0000 (18:21 +0000)]
Mention 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.
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.
Simon Josefsson [Mon, 5 Jan 2004 18:17:41 +0000 (18:17 +0000)]
(before-save-hook): Add.
(basic-save-buffer): Use before-save-hook.
Richard M. Stallman [Mon, 5 Jan 2004 13:59:08 +0000 (13:59 +0000)]
(finder-commentary): Call delete-other-windows.
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.
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
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
Karl Berry [Sun, 4 Jan 2004 23:00:06 +0000 (23:00 +0000)]
allow % and # as well as ; in copyright notice
Andreas Schwab [Sun, 4 Jan 2004 16:42:06 +0000 (16:42 +0000)]
(main): Fix socket name when using another user.
Per Abrahamsen [Sun, 4 Jan 2004 16:05:15 +0000 (16:05 +0000)]
Restored ChangeLog
Per Abrahamsen [Sun, 4 Jan 2004 15:11:59 +0000 (15:11 +0000)]
Fix dec-8 bug
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.
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.
Richard M. Stallman [Sat, 3 Jan 2004 21:16:42 +0000 (21:16 +0000)]
*** empty log message ***
Richard M. Stallman [Sat, 3 Jan 2004 21:16:15 +0000 (21:16 +0000)]
(Frames and Windows): Delete frame-root-window.
Richard M. Stallman [Sat, 3 Jan 2004 21:15:28 +0000 (21:15 +0000)]
(latex-find-indent): Avoid error at end of buf.
Richard M. Stallman [Sat, 3 Jan 2004 21:14:11 +0000 (21:14 +0000)]
(lm-section-end): require outline.
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.
Richard M. Stallman [Sat, 3 Jan 2004 21:11:43 +0000 (21:11 +0000)]
(grep-mode-map): Don't remap next-line, previous-line.
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
Luc Teirlinck [Sat, 3 Jan 2004 17:17:21 +0000 (17:17 +0000)]
(functionp): Doc fix.
Luc Teirlinck [Sat, 3 Jan 2004 17:15:46 +0000 (17:15 +0000)]
*** empty log message ***
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
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.
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
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
Luc Teirlinck [Sat, 3 Jan 2004 16:47:05 +0000 (16:47 +0000)]
(Creating Symbols): Add anchor.
Luc Teirlinck [Sat, 3 Jan 2004 16:45:33 +0000 (16:45 +0000)]
(Accessing Documentation): Add anchor.
Luc Teirlinck [Sat, 3 Jan 2004 16:44:03 +0000 (16:44 +0000)]
(Hash Access): Add anchor.
Luc Teirlinck [Sat, 3 Jan 2004 16:39:33 +0000 (16:39 +0000)]
(Function Indirection): Add anchor.
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.
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
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
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
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
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
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.
Stephen Eglen [Fri, 2 Jan 2004 14:04:43 +0000 (14:04 +0000)]
Update URL for ESS.
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
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
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
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
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
Kim F. Storm [Thu, 1 Jan 2004 23:44:00 +0000 (23:44 +0000)]
*** empty log message ***