1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-17 10:06:13 +00:00
Commit Graph

237 Commits

Author SHA1 Message Date
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