1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-19 18:13:55 +00:00
Commit Graph

336 Commits

Author SHA1 Message Date
Karoly Lorentey
90b404757b Merged in changes from CVS trunk.
Patches applied:

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

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

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

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

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

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-621
   Merge from gnus--rel--5.10

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

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

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

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

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-51
   Update from CVS

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-52
   Update from CVS

 * miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-53
   Merge from emacs--cvs-trunk--0


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-261
2004-10-19 17:00:02 +00:00
Richard M. Stallman
86bd482f70 (special-display-popup-frame): Make the buffer current as its frame is created. 2004-10-17 06:53:08 +00:00
Karoly Lorentey
f5272227fd Merged in changes from CVS trunk.
Patches applied:

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

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

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

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

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


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-236
2004-08-23 10:12:04 +00:00
Richard M. Stallman
9fa5bb32b2 (display-mouse-p, display-selections-p): Use with-no-warnings. 2004-08-22 16:54:33 +00:00
Karoly Lorentey
e1775c3e82 Merged in changes from CVS trunk.
Patches applied:

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

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


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-222
2004-07-27 07:43:21 +00:00
Karoly Lorentey
15dabcb48a Merged in changes from CVS trunk.
Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-464
   Update from CVS: lisp/progmodes/make-mode.el: Fix comments.

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

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

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


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-221
2004-07-24 22:08:12 +00:00
Luc Teirlinck
8de9d3f631 (make-frame): Doc fix. 2004-07-24 21:45:28 +00:00
Luc Teirlinck
d398de43be (modify-all-frames-parameters): Minor doc fix.
(set-frame-configuration): Doc fix.
2004-07-23 12:20:22 +00:00
Karoly Lorentey
407e382d35 Merged in changes from CVS trunk.
Patches applied:

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

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

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


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-220
2004-07-22 22:01:29 +00:00
Luc Teirlinck
bf294e2fbd (modify-all-frames-parameters): Minor doc fix. 2004-07-21 02:34:07 +00:00
Karoly Lorentey
4a933ef8f0 Fix suspend-frame on the controlling tty (reported by Dan Nicolaescu).
* src/term.c (Fdisplay_controlling_tty_p): New function.

* src/term.c (syms_of_term): Initialize Sdisplay_controlling_tty_p.

* lisp/frame.el (suspend-frame): Use display-controlling-tty-p to decide
  between suspend-emacs and suspend-tty.

* src/keyboard.c (Fsuspend_emacs): Give a better error message when
  there are multiple open tty devices.


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-213
2004-07-10 21:21:04 +00:00
Karoly Lorentey
b6660415b3 Implemented display ids for multiple emacsclients on the same tty. Plus assorted bugfixes.
* lisp/frame.el (make-frame-on-display): Update doc.
(make-frame): Handle display-id parameter.  Update doc.
(frames-on-display-list): Update for display ids.
(framep-on-display): Ditto.
(suspend-frame): Use display-name, not frame-tty-name.
(selected-display): New function.

* lisp/server.el (server-delete-client): Use delete-display, not delete-tty.
(server-tty-live-p, server-handle-delete-tty): Removed.
(server-handle-delete-frame): Delete tty clients, if needed.
(server-process-filter): Set the display parameter, and use it when appropriate.
(server-handle-suspend-tty): Use the display parameter.
(server-start, server-unload-hook): Removed obsolete delete-tty hook.

* lisp/talk.el (talk): Always use talk-add-display.
(talk-add-tty-frame, talk-handle-delete-tty): Removed.
(talk-handle-delete-frame): New function.
(talk-add-display): Open a new frame only if parameter was not a frame.

* src/dispextern.h (get_display, Fdisplay_tty_type):  New prototypes.
(Fframe_tty_type): Removed.

* src/dispnew.c (init_display): Use Fdisplay_tty_type, not Fframe_tty_type.

* src/frame.c (Qdisplay_id, Qdisplay_live_p): New symbols.
(make_terminal_frame): Get display as a parameter.
(Fmake_terminal_frame): Get/create display here; pass it to
make_terminal_frame.
(Fframe_display): New function.
(Fdelete_frame): Stop if the hook deleted the frame.
(syms_of_frame): Register new stuff.

* src/frame.h (Qdisplay_id, Qdisplay_live_p, make_terminal_frame):
Updated prototypes.

* src/keyboard.c (interrupt_signal): Updated comment.

* src/term.c (Vdelete_tty_after_functions): Removed variable.
(Qframe_tty_name, Qframe_tty_type): Removed.
(next_display_id): New var.
(tty_ring_bell): Don't do anything on suspended frames.
(Ftty_display_color_p, Ftty_display_color_cells): Doc update.
(get_display): New function.
(get_tty_display): Use it.
(get_named_tty_display): Ignore suspended displays.
(Fframe_tty_name): Renamed to Fdisplay_name.  Handle all kinds of
displays.
(Fframe_tty_type): Renamed to Fdisplay_tty_type.
(init_initial_display): Set display name.
(term_init): Allow more displays on the same device.  Set display name.
(Fdelete_tty): Removed.
(delete_tty): Don't run hooks.
(create_display): Set display id.
(delete_display): Free display name.
(Fdelete_display, Fdisplay_live_p, Fdisplay_list): New functions.
(Fsuspend_tty): Call hook with display id.  Doc update.
(Fresume_tty): Refuse to resume when there is already an active display
on the same device.  Call hook with display id.  Doc update.
(syms_of_term): Reflect above changes.

* src/termhooks.h (struct display): Added `id' and `name' members.
(DISPLAY_ACTIVE_P): New macro.

* src/xfns.c (check_x_display_info): Handle display ids.
(Fx_create_frame): Try to get display from `display-id' parameter.

* src/xterm.c (x_term_init): Set display name.
(x_delete_display): Handle the case when `font_table' is NULL.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-207
2004-07-04 04:48:55 +00:00
Karoly Lorentey
3fa7019947 Merged in changes from CVS trunk.
Patches applied:

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

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-410
   Make sure image types are initialized for lookup too

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

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

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

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

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

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

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

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

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


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-202
2004-06-24 07:44:13 +00:00
Luc Teirlinck
e6c45c2987 (show-trailing-whitespace): Doc fix. 2004-06-19 16:11:02 +00:00
Karoly Lorentey
bf2d7b586b Merged in changes from CVS trunk.
Patches applied:

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

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

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

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

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

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-362
   Support " [...]" style defaults in minibuffer-electric-default-mode

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-363
   (read-number): Use canonical format for default in prompt.

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

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


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-184
2004-06-03 16:45:20 +00:00
Kim F. Storm
9dbf2cd616 (blink-cursor-start): Turn cursor off initially so blink
starts after blink-cursor-delay rather than 2*blink-cursor-delay.
2004-06-01 23:18:25 +00:00
Karoly Lorentey
7c10362ec7 Fix window-system-default-frame-alist (ARISAWA Akihiro).
lisp/frame.el (make-frame): Use the cdr of the value returned by assq.
By ARISAWA Akihiro (<ari@mbf.ocn.ne.jp>).

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-180
2004-05-27 18:23:48 +00:00
Karoly Lorentey
ced7ed5611 Merged in changes from CVS trunk.
Patches applied:

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

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

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

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

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

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

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

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

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

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

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


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-152
2004-04-23 14:44:11 +00:00
Stefan Monnier
bb2c34b147 (special-display-popup-frame, next-multiframe-window)
(previous-multiframe-window): Only consider frames on same display.
2004-04-22 21:08:10 +00:00
Karoly Lorentey
bf1ba39f77 A simple implementation for display-local frame parameters.
lisp/frame.el (window-system-default-frame-alist): New var.
(make-frame): Use it.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-150
2004-04-19 15:39:17 +00:00
Karoly Lorentey
0b0d3e0bce Implemented suspending of emacsclient frames.
lib-src/emacsclient.c (quote_file_name): Renamed to quote_argument.
(unquote_argument, handle_sigcont, handle_sigtstp): New functions.
(out, in): New global variables for communicating with the Emacs process.
(init_signals): Set up handlers for SIGCONT, SIGTSTP and SIGTTOU.
(main): Changed out and in to global variables.  Prepend `-eval' or
'-file' to each argument.  Use fsync to force sending the strings to Emacs.
Removed obsolete -bad-version code.  Support the -suspend command.
Cleaned up newline handling.

lisp/frame.el (suspend-frame): New function.
Substitute key definition of suspend-emacs with suspend-frame.

lisp/server.el (server-log): Cosmetic change in log format.
(server-handle-delete-tty, server-handle-delete-frame): Added logging.
(server-handle-suspend-tty, server-quote-arg): New functions.
(server-start): Install server-handle-suspend-tty.
(server-process-filter): Reorganized source code for clarity.
Implemented -resume, -suspend and -ignore commands.

lisp/term/x-win.el (x-initialize-window-system): Don't change the
binding of C-z.

src/cm.c: Replaced TTY_INPUT, TTY_OUTPUT, TTY_TERMSCRIPT calls with
their macro expansion.
src/dispnew.c: Ditto.
src/frame.c: Ditto.
src/keyboard.c: Ditto.
src/sysdep.c: Ditto.

src/keyboard.c (tty_read_avail_input): Don't read if the terminal is
suspended.
src/sysdep.c (discard_tty_input, init_sys_modes, reset_sys_modes): Ditto.
src/term.c (tty_set_terminal_modes, tty_reset_terminal_modes): Ditto.

src/term.c (Vsuspend_tty_functions, Vresume_tty_functions): New hooks.
(syms_of_term): Defvar them.
(term_init): Don't allow opening a new frame on a suspended tty device.
(Fsuspend_tty, Fresume_tty): New functions.
(syms_of_term): Defsubr them.

src/termchar.c (struct tty_display_info): Update documentation of
input and output.
(TTY_INPUT, TTY_OUTPUT, TTY_TERMSCRIPT): Removed.


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-105
2004-02-28 01:23:39 +00:00
Karoly Lorentey
e9cda82776 Romain Francoise's and Ami Fischman's bugfixes.
src/term.c (create_tty_output): Fix syntax error.  Reported by Ami
Fischman (ami at fischman dot org).

lisp/loadup.el: Load term/x-win.el if X is available.

lisp/startup.el (handle-args-function-alist)
(window-system-initialization-alist): New variables.
(command-line): Don't load term/x-win.el, use the above variables.

lisp/x-win.el: (x-initialize-window-system): New function, move X
initialization here.
(x-initialized): New variable.

lisp/frame.el (make-frame-on-display): Don't initialize X twice, and
make sure to pass the correct display parameter to x-open-connection.
Reported by Romain Francoise (romain at orebokech dot com).

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-58
2004-01-22 02:36:55 +00:00
Karoly Lorentey
7f19e12507 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
2004-01-12 00:45:42 +00:00
Karoly Lorentey
2246281fb0 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
2004-01-11 21:59:40 +00:00
Karoly Lorentey
114a8b8cab 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
2004-01-10 12:56:22 +00:00
Karoly Lorentey
3224dac1b8 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
2004-01-09 18:57:53 +00:00
Karoly Lorentey
428a555ec5 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
2004-01-05 05:54:35 +00:00
Karoly Lorentey
daf0170133 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
2004-01-02 01:15:26 +00:00
Karoly Lorentey
7c3a261587 Merged in changes from CVS head
Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-5
   Add =cvs-sync-make-log script

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

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-7
   Use absolute tla-tools filenames in =cvs-sync-make-log

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-8
   Use proper arch-tag: syntax for lispintro/texinfo.tex

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


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-24
2003-12-30 17:05:05 +00:00
Richard M. Stallman
7f18ce220c (pop-up-frame-function): Use quote, not `function'.
(frame-notice-user-settings): Calculate ADJUSTED-TOP
copying with lists as coordinate values.
2003-12-29 19:17:24 +00:00
Karoly Lorentey
fca177d467 Fully eliminated global tty state variables.
lib-src/emacsclient.c (main.c): Fix error message.

lisp/frame.el (make-frame-on-tty): New function.

lisp/server.el (server-process-filter): Notify emacsclient if there
was on error during evaluation.

src/cm.c: Fix remaining cases of direct Wcm references.

src/dispextern.h: Updated prototypes.

src/dispnew.c (Fredraw_frame): Fix set_terminal_modes call.
(init_display): Remove reference to meta_key.

src/frame.c (make_terminal_frame): Renamed first parameter to
tty_name.  Call term_init before creating the frame.
(Fmake_terminal_frame): Look up the `tty' and `tty-type' frame
parameters from the currently selected terminal before the global
default.
(Fdelete_frame): Make sure that the new selected frame is live.

src/keyboard.c (meta_key): Moved to struct tty_output.
(read_avail_input): Fix C syntax.  Update references to meta_key.
(Fsuspend_emacs): pass current tty to init_sys_modes via
record_unwind_protect.
(Fset_input_mode): Update references to meta_key.
(Fcurrent_input_mode): Ditto.

src/sysdep.c (init_sys_modes): Updated old_tty and meta_key
references.  Don't call set_terminal_modes, it needs termcap strings.
(reset_sys_modes): Call tty_reset_terminal_modes instead of
reset_terminal_modes.  Updated old_tty references.

src/term.c: Massive updates throuout the file.
(TS_*, TN_*): Moved to struct tty_output.
(RPov, delete_in_insert_mode se_is_so, costs_set, insert_mode): Ditto.
(standout_mode, specified_window, tty_cursor_hidden): Ditto.
(tty_set_terminal_modes, tty_reset_terminal_modes): New functions.
(turn_on_insert, turn_off_insert): Added tty parameter.
(turn_on_highlight, turn_off_highlight, toggle_highlight): Added tty parameter.
(tty_hide_cursor, tty_show_cursor): Ditto.
(background_highlight, highlight_if_desired): Ditto.
(tty_capable_p): Changed first parameter to tty_output.
(term_init): Make sure top_frame is initialized.  Don't exit on errors
if this would have been a secondary terminal.  Call set_terminal_modes
on the end.
(delete_tty): New function.
(delete_tty_1): New function.
(print_all_frames): New function, marginally useful for debugging.

src/termchar.h (struct tty_output): Changed old_tty to be a pointer.
Removed old_tty_valid member.  Added tty-specific variables from term.c.

src/xfaces.c (Ftty_supports_face_attributes_p): Update for new
tty_capable_p.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-9
2003-12-27 10:00:19 +00:00
Kim F. Storm
56cfea72a3 (frame-current-scroll-bars): New defun. 2003-09-24 22:54:55 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
63019bad3a (modify-all-frames-parameters): Reinstall (copyright papers received). 2003-07-13 17:48:58 +00:00
Miles Bader
9328929244 (set-frame-font): Default to frame's current default font. 2003-06-06 01:32:33 +00:00
Stefan Monnier
3db7df063f (iconify-or-deiconify-frame): Move from term/x-win.el. 2003-05-24 16:11:17 +00:00
Juanma Barranquero
7418081f48 (modify-all-frames-parameters): Deleted. 2003-04-10 16:31:00 +00:00
Juanma Barranquero
f7df88f47a (new-frame): Add obsolescence declaration. 2003-04-09 17:45:20 +00:00
Juanma Barranquero
034ade66e3 (modify-all-frames-parameters): New function to change parameters in all
existing and future frames.
2003-04-09 17:38:47 +00:00
Juanma Barranquero
1cef654128 (set-frame-font): Allow keeping frame size after changing font. 2003-04-09 17:28:30 +00:00
John Paul Wallington
da7829a310 (delete-frame-hook): Variable alias for
`delete-frame-functions'.  Mark obsolete.
2002-10-02 23:53:37 +00:00
Richard M. Stallman
80c39c38bb (select-frame-by-name, select-frame-set-input-focus):
Always call x-focus-frame, if using x.
Use set-mouse-position on all systems, if focus-follows-mouse.
2002-08-24 02:59:27 +00:00
Eli Zaretskii
f29173c984 (frames-on-display-list): Use `equal' to compare the
`display' frame parameter to the argument DISPLAY.
2002-04-12 16:50:54 +00:00
Jason Rumney
fcc6f5cc3e (display-images-p): Do not explicitly check display type. 2002-03-20 21:26:51 +00:00
Eli Zaretskii
968ecc2809 (auto-hscroll-mode): Renamed from automatic-hscrolling.
(automatic-hscrolling): Now a defvaralias for auto-hscroll-mode.
2002-03-03 17:31:45 +00:00
Richard M. Stallman
6527c9b7ac (focus-follows-mouse): Doc fix. 2002-02-26 02:37:58 +00:00
Richard M. Stallman
bb578a72d1 (other-frame): Doc fix. 2002-02-20 22:28:44 +00:00
Eli Zaretskii
a6ab2fcfb3 (display-color-cells): Use tty-display-color-cells. 2002-01-25 13:19:28 +00:00
Sam Steingold
bc5c763a1b (show-trailing-whitespace): Remove :set argument (the
value was essentially identical to the defalt).
2001-11-26 18:28:18 +00:00
Sam Steingold
f39784dd3e comments indented properly 2001-11-26 18:20:20 +00:00
Eli Zaretskii
528e141664 (set-background-color, set-foreground-color): Call
face-set-after-frame-default, to propagate the new colors to the
frame's parameters alist.
2001-11-03 15:55:17 +00:00
Richard M. Stallman
cacf219364 (blink-cursor-mode): Doc fix. 2001-10-30 00:24:12 +00:00
Stefan Monnier
7e573c4a6d (special-display-popup-frame): Obey new specs same-window' and same-frame'. 2001-10-12 20:39:54 +00:00
Eli Zaretskii
563283b1b5 (select-frame-by-name, other-frame): Doc fix. 2001-09-30 10:47:22 +00:00
Eli Zaretskii
eaa600194f (show-trailing-whitespace): Doc fix. 2001-08-14 12:39:53 +00:00
Gerd Moellmann
030f453737 (select-frame-set-input-focus): New function
extracted from other-frame.
(other-frame): Use it.
(next-multiframe-window, previous-multiframe-window): Use it.
2001-08-10 13:47:18 +00:00
Eli Zaretskii
ddc456e4ec (display-images-p): New function. 2001-07-17 12:58:19 +00:00
Pavel Janík
5553563924 Some fixes to follow coding conventions in files maintained by FSF. 2001-07-15 16:15:35 +00:00
Eli Zaretskii
310e9a2152 (automatic-hscrolling): Fix a typo. From Pavel Janik <Pavel@Janik.cz>. 2001-05-20 04:14:49 +00:00
Gerd Moellmann
a2125918a0 (delete-other-frames): Handle minibuffer-only frames. 2001-04-17 12:02:53 +00:00
Gerd Moellmann
c0eb3c1052 (cursor-in-non-selected-windows): Replaces
show-cursor-in-non-selected-windows.
2001-04-02 10:19:52 +00:00
Jason Rumney
5c39a60f1d (frame-notice-user-settings): Only adjust frame height
for no tool-bar case if tool-bar was originally switched on.
2001-02-23 10:23:08 +00:00
Gerd Moellmann
a6c411ffc6 (display-hourglass): Renamed from busy-cursor.
(hourglass-delay): Renamed from busy-cursor-delay-seconds.
(show-cursor-in-non-selected-windows): Doc fix.
2001-02-21 14:08:10 +00:00
Gerd Moellmann
085ef9b398 (frame-notice-user-settings): When resizing the initial
frame because the tool bar is off, also change the frame's top
position if a negative top position was specified.
2001-02-02 13:55:42 +00:00
Gerd Moellmann
de2f5dbec2 (frame-notice-user-settings): Do the tool-bar
stuff only for graphical displays.  Fix a braino.
2001-01-30 15:18:13 +00:00
Gerd Moellmann
9688894d93 (frame-initialize): Create initial frame visible.
(frame-notice-user-settings): When tool-bar has been switched off,
correct the frame size and sync too-bar-mode.
2001-01-30 15:06:47 +00:00
Eli Zaretskii
ff2a1c79f5 (frame-initialize): Doc fix. 2001-01-29 17:01:52 +00:00
Gerd Moellmann
2533b69a03 (frame-initialize): Create the initial frame invisible. 2001-01-24 15:39:00 +00:00
Eli Zaretskii
e9510d0020 (show-cursor-in-non-selected-windows): Doc fix. 2000-12-14 15:16:27 +00:00
Gerd Moellmann
be6bbb55ab (blink-cursor-mode): Doc fix. 2000-11-29 15:28:17 +00:00
Gerd Moellmann
e053c60feb (show-cursor-in-non-selected-windows): Doc fix. 2000-11-22 19:54:36 +00:00
Stefan Monnier
72bf1a8b28 (after-setting-font-hook): Rename hooks -> hook.
(set-frame-font): Use the new name (and the old for compatibility).
2000-11-03 22:15:51 +00:00
Eli Zaretskii
42002db50d (frame-notice-user-settings): Don't apply
default-frame-alist and initial-frame-alist to MS-DOS frames.
Call tty-handle-reverse-video, frame-set-background-mode, and
face-set-after-frame-default for non-MS-DOS frames.
2000-10-28 17:18:21 +00:00
Andrew Choi
1a578e9be2 Initial check-in: changes for building Emacs under Mac OS.
2000-10-23  Andrew Choi  <akochoi@i-cable.com>

	* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.

	* dispnew.c [macintosh]: Include macterm.h.
	(init_display) [macintosh]: initialization for window system.

	* emacs.c (main) [macintosh]: Call syms_of_textprop,
	syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
	syms_of_search, x_term_init, and init_keyboard before calling
	init_window_once.  Also, call syms_of_xmenu.

	* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
	default fontset to Monaco.

	* frame.c [macintosh]: Include macterm.h.  Remove declarations of
	NewMacWindow and DisposeMacWindow.
	(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
	instead of calling NewMacWindow and setting fields of
	f->output_data.mac directly.  Call init_frame_faces.
	(Fdelete_frame) [macintosh]: Remove unused code.
	(Fmodify_frame_parameters) [macintosh]: Call
	x_set_frame_parameters instead of mac_set_frame_parameters.

	* frame.h [macintosh]: Define menu_bar_lines field in struct
	frame.  Define FRAME_EXTERNAL_MENU_BAR macro.

	* keyboard.c [macintosh]: Include macterm.h.
	(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
	and menu_bar_activate_event type events as for X and NT.
	(make_lispy_event) [macintosh]: Construct lisp events of type
	MENU_BAR_EVENT as for X and NT.

	* sysdep.c [macintosh]: Remove declaration for sys_signal.
	Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
	(sys_subshell) [macintosh]: Remove definition entirely.
	(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
	Vwindow_system_version here.  Remove initialization of
	Vx_bitmap_file_path.
	(read_input_waiting): Correct the number of parameters passed to
	read_socket_hook.
	Move all Macintosh functions to mac/mac.c.

	* term.c [macintosh]: Include macterm.h.

	* window.c [macintosh]: Include macterm.h.

	* xdisp.c [macintosh]: Include macterm.h.  Declare
	set_frame_menubar and pending_menu_activation.
	(echo_area_display) [macintosh]: Do not return if terminal frame
	is the selected frame.
	(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
	Allow only the selected frame to set menu bar.
	(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
	calling FRAME_EXTERNAL_MENU_BAR (f).
	(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).

	* xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
	and check_x.  Declare XCreateGC.  Define x_create_gc and
	x_free_gc.  Initialize font_sort_order.
	(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
	but call x_list_fonts instead of w32_list_fonts.
	(Finternal_face_x_get_resource) [macintosh]: Do not call
	display_x_get_resource.
	(prepare_face_for_display) [macintosh]: Set xgcv.font.
	(realize_x_face) [macintosh]: Load the font if it is specified in
	ATTRS.
	(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
	to Qt.

	* cus-edit.el (custom-button-face): Use 3D look for mac.
	(custom-button-pressed-face): Likewise.

	* faces.el (set-face-attributes-from-resources): Handle mac frames
	in the same way as x and w32 frames.
	(face-valid-attribute-values): Likewise.
	(read-face-attribute): Likewise.
	(defined-colors): Likewise.
	(color-defined-p): Likewise.
	(color-values): Likewise.
	(display-grayscale-p): Likewise.
	(face-set-after-frame-default): Likewise.
	(mode-line): Same default face as for x and w32.
	(tool-bar): Likewise.

	* frame.el: Remove call to frame-notice-user-settings at end of
	the file.

	* info.el (Info-fontify-node): make underlines invisible for mac
	as for x, pc, and w32 frame types.

	* term/mac-win.el: New file.
2000-10-22 16:50:16 +00:00
Gerd Moellmann
c9dc81737c (set-frame-font): Remove call to obsolete function
frame-update-faces.
(set-foreground-color, set-background-color): Likewise for
frame-update-face-colors.
2000-09-27 13:49:21 +00:00
Gerd Moellmann
57ac029847 (frame-notice-user-settings): Don't call
frame-update-faces, which is a no-op now.
2000-09-27 13:23:52 +00:00
Gerd Moellmann
33a33c06cf (frame-notice-user-settings): Don't add a
tool-bar-lines frame parameter to default-frame-alist in batch
mode.
2000-09-26 15:24:08 +00:00
Gerd Moellmann
61f2bcd7d1 (frame-notice-user-settings): Make tool-bar-mode and
default-frame-alist consistent.
2000-09-26 11:52:01 +00:00
Gerd Moellmann
fed72c8d9b (frame-notice-user-settings): Add a last parameter nil
to a call to `append', because the last list passed to `append' is
not copied, and so subsequent calls to assq-delete-all will modify
default-frame-alist.
2000-09-20 16:04:38 +00:00
Gerd Moellmann
047bc928e5 (filtered-frame-list): Reduce consing.
(frames-on-display-list): Call frame-parameter instead of
frame-parameters.
2000-09-07 11:39:07 +00:00
Gerd Moellmann
a2e2aa2c29 (frame-parameter): Move to C code. 2000-09-05 15:54:38 +00:00
Miles Bader
faaf40e434 (set-frame-font): Do completion of font-name for interactive use. 2000-08-30 12:09:58 +00:00
Gerd Moellmann
cae2c28eee (blink-cursor-mode): Don't hide cursor initially. 2000-07-03 19:13:55 +00:00
Gerd Moellmann
e4f98ad3c6 (blink-cursor): Default to nil if not running under
a window-system.
2000-07-03 16:01:31 +00:00
Eli Zaretskii
6693b2791f (display-multi-frame-p, display-multi-font-p): New
defaliases for display-graphic-p.
2000-06-13 13:15:30 +00:00
Stefan Monnier
2598a293ae Update calls to make-obsolete with a WHEN argument. 2000-06-01 05:07:32 +00:00
Stefan Monnier
9ea60c46a0 (automatic-hscrolling): Typo. 2000-05-10 21:54:40 +00:00
Gerd Moellmann
79b14b94a1 (scrolling): New group.
(automatic-hscrolling): New user-option.
2000-04-24 13:59:25 +00:00
Gerd Moellmann
5b6200124e (other-frame): Call x-focus-frame only if
focus-follows-mouse is off.
2000-03-17 20:54:41 +00:00
Gerd Moellmann
9af0f4cde5 (other-frame): Call x-focus-frame. 2000-03-07 23:31:17 +00:00
Gerd Moellmann
d4ed0cba90 (blink-cursor-mode): Switch cursor on when turning
the mode off.
2000-03-02 09:34:13 +00:00
Gerd Moellmann
0a86e77933 (busy-cursor-delay-seconds): Change type to `number'. 2000-03-01 10:27:05 +00:00
Gerd Moellmann
5cee761f37 (frame-notice-user-settings): Use assq-delete-all
instead of assoc-delete-all.
(frame-notice-user-settings): Ditto.
2000-02-29 10:15:00 +00:00
Gerd Moellmann
1d0a3ef433 (show-cursor-in-non-selected-windows): New option.
(busy-cursor-delay-seconds): New option.
2000-02-25 13:34:08 +00:00
Gerd Moellmann
5b2c5477e0 (show-cursor-in-non-selected-windows): New option. 2000-02-24 14:03:59 +00:00
Dave Love
7565ee9323 (display-mouse-p): Use variable xterm-mouse-mode and check for t-mouse
too.
2000-02-20 12:34:49 +00:00
Eli Zaretskii
9911648b58 (frames-on-display-list, framep-on-display): New functions.
(display-mouse-p, display-popup-menus-p, display-graphic-p)
(display-selections-p, display-screens, display-pixel-width)
(display-pixel-height, display-mm-width, display-mm-height)
(display-backing-store, display-save-under, display-planes)
(display-color-cells, display-visual-class): New functions.
2000-02-02 11:35:43 +00:00
Gerd Moellmann
154a757eb9 (delete-other-frames): New function.
(toplevel): Bind it to C-x 5 1.
2000-01-28 13:22:46 +00:00
Gerd Moellmann
8f2a992b1a (frame-notice-user-settings): New variable.
(frame-notice-user-settings): Don't modify frame parameters
if called a second time.

(frame-notice-user-settings):
Notice default-frame-parameters even for non-window frames.
2000-01-13 14:46:19 +00:00
Gerd Moellmann
0a5ebe4b76 * frame.el (blink-cursor-mode, blink-cursor-end): Use
internal-show-cursor with new interface.
	(blink-cursor-timer-function): New.
	(blink-cursor-start): Use blink-cursor-timer-function.
1999-11-03 15:57:21 +00:00
Gerd Moellmann
ca693be807 Many doc fixes. 1999-11-01 15:28:32 +00:00
Gerd Moellmann
90c6f4b650 (blink-cursor-mode): Call internal-show-cursor instead
of show-cursor.
(blink-cursor-start, blink-cursor-end): Ditto.
1999-11-01 14:41:31 +00:00
Gerd Moellmann
9626b92839 (auto-raise-mode): When enabling the mode,
immediately raise the selected frame.
1999-10-25 12:22:14 +00:00
Eli Zaretskii
8cfed09cc5 (blink-cursor): Don't turn on cursor blinking for
ms-dos.
1999-08-15 11:56:16 +00:00
Dave Love
40d34803a7 Change comments to doc strings and other doc fixes.
(frame-delete-all): Moved to subr.el as `assoc-delete-all'.  Callers
changed.
(set-background-color, set-foreground-color, set-cursor-color)
(set-mouse-color, set-border-color): Offer completion of colours.
(cursor): Add :version to defgroup.
1999-07-30 18:39:32 +00:00
Karl Heuer
4e20aeafbf (frame-notice-user-settings): If background
color has been changed, update background-mode from it,
then update faces.
1999-07-30 15:50:26 +00:00
Karl Heuer
071ebee939 (frame-initialize): When setting frame-initial-frame-alist,
force copying of default-frame-alist.
1999-07-27 20:01:33 +00:00
Karl Heuer
ec6d44639a (set-mouse-color): If new color is nil,
really respecify the current color.
1999-07-26 19:06:37 +00:00
Gerd Moellmann
81b99826ff (after-setting-font-hooks): New; from Eric Banchrow
<offby1@blarg.net>.
(set-frame-font): Run the hooks.
(frame-initialize): Use tty-create-frame-with-faces.
(show-trailing-whitespace): New.
(blink-cursor-mode): Function to toggle blinking cursor
mode.  The cursor of selected_window blinks if the mode is enabled.
1999-07-21 21:43:03 +00:00
Richard M. Stallman
0b9d32af70 (minibuffer-frame-alist): Use defcustom.
(pop-up-frame-alist): Likewise.
(initial-frame-alist): Specify * in the doc string.
1999-07-06 18:27:40 +00:00
Andrew Innes
880a9ae168 (select-frame-by-name): Obey focus-follows-mouse.
(select-frame-by-name) [windows-nt]: Use w32-focus-frame.
1999-01-27 22:04:05 +00:00
Richard M. Stallman
ed956b8194 (frame-parameter): Doc fix. 1998-11-25 01:50:25 +00:00
Richard M. Stallman
0c966f88cd (initial-frame-alist): Add defcustom. 1998-11-22 15:35:02 +00:00
Richard M. Stallman
a9ca74cd76 (make-frame-on-display): Fix previous change. 1998-05-25 16:45:33 +00:00
Richard M. Stallman
8a38e77246 (make-frame-on-display): Check for nonsense display name. 1998-05-25 07:18:31 +00:00
Richard M. Stallman
716ff1c92d (frame-name-alist): Remove this variable.
(select-frame-by-name): Recompute the list of frames instead of
saving it in a global variable.
1998-04-23 22:15:47 +00:00
Dan Nicolaescu
cd32a7baa4 *** empty log message *** 1998-04-20 02:34:53 +00:00
Richard M. Stallman
5265a84235 (other-frame): Fix previous change. 1998-03-18 20:04:56 +00:00
Richard M. Stallman
0ac18fb09b (focus-follows-mouse): Make it defcustom. 1998-03-18 20:03:48 +00:00
Richard M. Stallman
26ef026df8 (focus-follows-mouse): New variable.
(other-frame): Obey that variable.
1998-03-18 20:02:27 +00:00
Eli Zaretskii
845cde06cd (make-frame-names-alist, select-frame-by-name): New
functions, support frame selection by name with completion and history.
(frame-name-history, frame-names-alist): New variables.
1997-12-01 14:22:04 +00:00
Eli Zaretskii
7777d03b34 (set-frame-name): New function. 1997-11-20 15:55:31 +00:00
Geoff Voelker
9d702ce661 (other-frame) [windows-nt]: Use w32-focus-frame. 1997-09-02 19:39:14 +00:00
Richard M. Stallman
96a84970c3 (frame-initialize): Don't alter vertical-scroll-bars
parameter here.
1997-07-21 05:59:08 +00:00
Richard M. Stallman
4fd2a3af4c (scroll-bar-side): Variable deleted.
(toggle-scroll-bar, toggle-horizontal-scroll-bar):
Moved to scroll-bar.el.
1997-06-28 00:45:31 +00:00
Richard M. Stallman
30e19aee85 Use defcustom. 1997-05-05 15:06:25 +00:00
Richard M. Stallman
aaf2aa92ef (make-frame): Don't call custom-initialize-frame. 1997-04-21 03:57:23 +00:00
Simon Marshall
3196c5a701 doc-fix to be compatible with other frame- fns. 1997-04-14 11:18:31 +00:00
Richard M. Stallman
b092a1345b (make-frame): Call custom-initialize-frame
only if cus-face is loaded.
1997-04-14 03:05:04 +00:00
Richard M. Stallman
b5d48854de (frame-parameter): New function. 1997-04-10 06:49:45 +00:00
Richard M. Stallman
ec6c7d0bc7 (make-frame): Call `custom-initialize-frame'. 1997-04-08 22:33:45 +00:00
Richard M. Stallman
ef5a634509 (set-screen-height): Doc fix. 1997-03-24 05:25:14 +00:00
Simon Marshall
45c4fdeb98 defvar before- and after- make frame vars; use properly in make-frame. 1997-03-15 13:23:49 +00:00
Richard M. Stallman
889611f096 (set-frame-font): Renamed from set-default-font, 1997-02-02 01:53:27 +00:00
Richard M. Stallman
216f116990 (initial-frame-alist): Make default value nil--
don't specify `minibuffer' parameter.
1996-11-05 02:31:08 +00:00
Richard M. Stallman
97a74ef613 (ctl-x-5-map, ctl-x-5-prefix): Duplicate defs deleted.
(scroll-bar-side): New variable.
(toggle-scroll-bar): Use scroll-bar-side.
1996-09-23 04:29:50 +00:00
Richard M. Stallman
7722472277 (other-frame): Don't call unfocus-frame. 1996-09-03 21:38:45 +00:00
Richard M. Stallman
61298010c6 Doc fixes. 1996-09-01 20:48:03 +00:00
Richard M. Stallman
004f057a42 (frame-initialize): Don't count MSDOS neither as
window-system nor as a terminal frame here.
1996-06-10 21:20:40 +00:00
Richard M. Stallman
c1b1350b94 (make-frame-command): Treat msdos like no window system. 1996-06-09 19:10:58 +00:00
Richard M. Stallman
6238bfaf9c (make-frame-command): New function.
(ctl-x-5-map): Change C-x 5 2 to make-frame-command.
1996-06-07 14:52:28 +00:00
Richard M. Stallman
a9562d191b (handle-delete-frame): Use save-buffers-kill-emacs. 1996-02-28 00:08:58 +00:00
Erik Naggum
b578f267af Update FSF's address. 1996-01-14 07:34:30 +00:00
Richard M. Stallman
06d7dff28f (frame-notice-user-settings): When making a minibufferless
frame, don't copy `name' parm explicitly unless it was explicit before.
1995-06-14 16:16:04 +00:00
Karl Heuer
46be879365 (frame-configuration-p): Moved to subr.el. 1995-05-30 18:39:22 +00:00
Karl Heuer
746bd2659a (make-initial-minibuffer-frame): New function.
(frame-notice-user-settings): Call it.
1995-05-30 06:54:44 +00:00
Richard M. Stallman
66de157de0 (frame-notice-user-settings):
Don't respecify an old value which was nil and remains nil.
1995-04-18 19:26:11 +00:00
Karl Heuer
b65be6a80d (other-frame): Don't try to unfocus in a termcap frame.
(frame-notice-user-settings): Skip menu-bar code in a termcap frame.
1995-03-16 21:25:52 +00:00
Karl Heuer
0759c4d083 (frame-initialize): Set frame-creation-function to `make-terminal-frame' if
appropriate.
1995-03-16 20:23:22 +00:00
Karl Heuer
3ce3ff1151 (frame-notice-user-settings): Avoid having the window manager re-prompt for
the initial frame's clone.
1995-01-30 23:47:17 +00:00