Commit graph

10736 commits

Author SHA1 Message Date
Eli Zaretskii
2c52d7e4f7 *** empty log message *** 2000-01-27 17:14:00 +00:00
Eli Zaretskii
9863d8ff5c Change prototypes of XMenuAddSelection and XMenuActivate. 2000-01-27 17:08:40 +00:00
Eli Zaretskii
e25d96531e (IT_clear_end_of_line): Print the extent of the cleared
part of the line to the termscript file.
(IT_clear_to_end): Clear the entire line, not just its beginning.
(menu_help_message, prev_menu_help_message): New variables.
(IT_menu_make_room): Make room for the help_text member.
(IT_menu_display): New argument disp_help; all callers changed.
If disp_help is non-zero, store the help text of the active menu
item in menu_help_message.
(XMenuAddPane): Initialize the help_text member to NULL.
(XMenuAddSelection): New argument help_text.  Store it in the
XMenu structure.
(XMenuActivate): New argument help_callback.  If the value of
menu_help_message has changed since the last time, display the
menu help message text while waiting for the mouse to move.  Clear
the echo area before exiting.
(XMenuDestroy): Free the help_text member.
2000-01-27 17:07:27 +00:00
Gerd Moellmann
ffe0bcd1bb *** empty log message *** 2000-01-27 15:41:00 +00:00
Gerd Moellmann
3e703b25fb (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
XMenuAddSelection.  Pass help callback to XMenuActivate.
(menu_help_callback) [!USE_X_TOOLKIT]: New function.
2000-01-27 15:32:21 +00:00
Eli Zaretskii
50dbd23f42 *** empty log message *** 2000-01-27 15:22:29 +00:00
Eli Zaretskii
4ce94f9989 (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
and EMACS_SET_USECS.
2000-01-27 15:17:27 +00:00
Gerd Moellmann
f95d599c51 Lost version containing non-greedy changes from Emacs. 2000-01-27 11:40:40 +00:00
Dave Love
6c67ddee21 *** empty log message *** 2000-01-26 17:59:13 +00:00
Dave Love
4d54f79436 (Fchar_after, Fchar_before): Doc fix. 2000-01-26 17:53:22 +00:00
Gerd Moellmann
f5941bf8c0 (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
an error may be signalled.
2000-01-26 14:47:42 +00:00
Gerd Moellmann
fc3cb4607c [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
LD_SWITCH_SYSTEM inherited from irix5-0.h.
2000-01-26 13:07:11 +00:00
Gerd Moellmann
9e49c9901e (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo. 2000-01-26 12:02:58 +00:00
Gerd Moellmann
d0c037d81d (Fstring): If there is a multibyte char among
the args, always return a multibyte string.
2000-01-25 21:44:04 +00:00
Gerd Moellmann
e12489f9ab *** empty log message *** 2000-01-25 15:59:42 +00:00
Gerd Moellmann
ffdcc91d6d (sys_select): Turn atimers off and on instead of
recording and restoring old alarm handler
2000-01-25 15:58:45 +00:00
Gerd Moellmann
8a9f5d3c42 (toplevel): Include systime.h and atimer.h.
(polling_for_input): Removed because unused.
(input_poll_signal) [POLL_FOR_INPUT]: Removed.
(poll_timer): New variable.
(poll_for_input, poll_for_input_1): New functions.
(start_polling, stop_polling): Rewritten.
2000-01-25 15:57:26 +00:00
Gerd Moellmann
30904ab7d1 (toplevel): Include atimer.h.
(create_process_1): Rewritten.
(create_process): Use atimers instead of alarm.
(wait_reading_process_input) [hpux]: Turn atimers off instead
of turning off SIGALRM.
(wait_reading_process_input): Turn off atimers instead off
calling stop_polling.
2000-01-25 15:56:42 +00:00
Gerd Moellmann
ab5d035833 (main): Call init_atimer. 2000-01-25 15:55:49 +00:00
Gerd Moellmann
bffcfca924 (toplevel): Include atimer.h.
(toolkit_scroll_bar_interaction): New variable.
(Fxt_process_timeouts): Removed.
(x_process_timeouts): New function.
(xt_action_hook): Clear toolkit_scroll_bar_interaction.
(x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
(x_make_frame_visible): Call poll_for_input_1 instead of
input_poll_signal.  Don't call alarm.
(x_initialize): Install timer calling x_process_timeouts.
2000-01-25 15:55:13 +00:00
Gerd Moellmann
acb137e591 (popup_activated_flag): Add extern declaration. 2000-01-25 15:54:07 +00:00
Gerd Moellmann
95d9dd00bd (pending_atimers): Add extern declaration.
(UNBLOCK_INPUT): Rewritten.  Handle pending atimers.
2000-01-25 15:53:45 +00:00
Gerd Moellmann
7555d82571 (popup_activated_flag): Make externally visible.
(popup_activate_callback) [USE_MOTIF]: Increment
popup_activated_flag.
(popup_deactivate_callback) [USE_MOTIF]: Decrement it.
2000-01-25 15:53:29 +00:00
Gerd Moellmann
381c798c15 (polling_for_input): Removed. 2000-01-25 15:52:54 +00:00
Gerd Moellmann
e77ab12ef1 (obj): Add atimer.o.
(atimer.o): New target.
2000-01-25 15:52:34 +00:00
Dave Love
1e5279b950 *** empty log message *** 2000-01-24 15:38:44 +00:00
Dave Love
9482c3ea3b Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
Don't use -cckr -- apparently not now necessary.
2000-01-24 15:06:58 +00:00
Eli Zaretskii
edf6aeb890 (IT_menu_display): Truncate long menu lines at the right
screen boundary.
2000-01-24 14:44:26 +00:00
Jason Rumney
9badad414d (w32_defined_color): Apply gamma correction before trying to map to
the palette.
(w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
to w32_clear_rect.
2000-01-23 22:20:24 +00:00
Jason Rumney
00fe468b0b (w32_fill_rect): Do not try to deal with NULL hdc
here. Callers changed to always pass real device context.
(w32_draw_bitmap): Likewise.
(w32_get_glyph_overhangs): Likewise.
(w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
(w32_set_vertical_scroll_bar): Pass correct HWND parameters to
pfnSetScrollInfo and SetScrollRange.
(x_get_char_face_and_encoding): Don't turn iso8859-1 characters
back into MULE characters after decoding them.
(x_get_glyph_face_and_encoding): Likewise.
(w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
GetCharABCWidthsW fails, since this is defined on Windows 9x.
(x_produce_glyphs): Calculate per char metrics for a character
that we know exists in default font when font_not_found_p is true.
2000-01-23 22:15:12 +00:00
Jason Rumney
51dcffad6d (XCharStruct): New struct for emulating X. 2000-01-23 03:24:54 +00:00
Jason Rumney
791f420fea Complete rewrite based on xterm.c. 2000-01-23 03:23:49 +00:00
Jason Rumney
aba6b952ac (Fw32_set_clipboard_data): Update call to find_charset_in_str. 2000-01-23 03:23:12 +00:00
Jason Rumney
162d2499e2 Add skeleton support for help strings on menus.
(add_menu_item): Native checkbox and radio support added, but not yet
enabled due to bugs.
(push_menu_item): Add parameters type, selection and help.
Callers updated.
Formatting changes to reduce unnecessary diffs with xmenu.c.
2000-01-23 03:22:21 +00:00
Jason Rumney
4f4a5f699b (get_frame, w32_console_mouse_position, mouse_moved_to):
Use SELECTED_FRAME macro.
2000-01-23 03:21:01 +00:00
Jason Rumney
5a048001f7 (XGCValue): New struct for emulating X GCs. 2000-01-23 03:19:10 +00:00
Jason Rumney
6fc2811b20 Substantial rewrite for new redisplay. Major changes:
Skeleton support for images, toolbars, tooltips from xfns.c.
(Fx_create_frame): Use system default for default scroll bar width.
(w32_get_arg): Renamed from x_get_arg.
(Fx_file_dialog): New function.
(w32_list_fonts): Check cache before asking system.
(Vw32_enable_synthesized_fonts): New variable.
(Vw32_enable_italics): Obsolete, removed.
2000-01-23 03:18:25 +00:00
Jason Rumney
f6e15a141a Complete rewrite based on xfaces.c 2000-01-23 03:16:32 +00:00
Jason Rumney
8c2ac482fb (turn_on_face, turn_off_face): New functions.
(change_line_highlight): New prototype for new redisplay.
(write_glyphs): Support multibyte text. Support faces.
2000-01-23 03:16:02 +00:00
Jason Rumney
2e7aef9d1d Added composite.obj and intervals.obj. 2000-01-23 03:14:51 +00:00
Jason Rumney
63bd786b12 Port of redisplay to W32. 2000-01-23 03:09:45 +00:00
Richard M. Stallman
b50c92144c *** empty log message *** 2000-01-22 03:47:04 +00:00
Richard M. Stallman
1aa7a2c7dc (set_internal): Further fix in same criterion. 2000-01-22 02:57:37 +00:00
Richard M. Stallman
c87dbfd03c Comment change. 2000-01-21 02:22:56 +00:00
Richard M. Stallman
8cc956425f (set_internal): Fix the criteria for whether
to swap out the old cached binding.
2000-01-20 06:02:13 +00:00
Dave Love
60af03f1c8 *** empty log message *** 2000-01-19 14:59:52 +00:00
Dave Love
d826d78b71 (syms_of_lread) [user-init-file]: Doc change. 2000-01-19 14:25:26 +00:00
Richard M. Stallman
c3975772b8 (re_compile_fastmap): While checking a range table for
`charset', skip flag bits for a character class correctly.
2000-01-18 20:11:41 +00:00
Kenichi Handa
f9be074ff0 *** empty log message *** 2000-01-18 07:31:49 +00:00
Gerd Moellmann
32660797d3 *** empty log message *** 2000-01-17 12:45:41 +00:00