1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-05 13:31:45 -08:00
Commit graph

18868 commits

Author SHA1 Message Date
Richard M. Stallman
0ea6ae0a0c (Fmap_keymap): New arg SORT-FIRST. Use
map-keymap-internal to implement that.
2004-11-16 17:00:59 +00:00
Richard M. Stallman
6df7142943 (Fvertical_motion): In batch mode, use vmotion directly. 2004-11-16 16:58:16 +00:00
Kim F. Storm
e20d27dc35 Typo. 2004-11-16 15:42:24 +00:00
Kim F. Storm
11e04b2ddf (Fdefine_fringe_bitmap): Always set 'h'. Simplify. 2004-11-16 15:41:54 +00:00
Stefan Monnier
94c4db3c60 (get_glyph_string_clip_rect, init_glyph_string): Check it's
a window before using XWINDOW.
2004-11-16 15:41:41 +00:00
Kim F. Storm
dda01a4c9c *** empty log message *** 2004-11-16 15:41:09 +00:00
Stefan Monnier
2a1893f46c Avoid side-effects inside XSETFASTINT's arguments. 2004-11-16 15:35:14 +00:00
Stefan Monnier
3c7a4fa359 (NILP): Use EQ rather than XFASTINT. 2004-11-16 15:32:33 +00:00
Kim F. Storm
9305b0e795 (Fvertical_motion): Fix last change. Only reseat when
moving backwards.
2004-11-16 14:21:37 +00:00
Kim F. Storm
b4d61105df *** empty log message *** 2004-11-16 14:21:15 +00:00
Luc Teirlinck
ce2bbf6a2f *** empty log message *** 2004-11-16 02:56:49 +00:00
Luc Teirlinck
a7416ec1c9 Extern reseat_at_previous_visible_line_start. 2004-11-16 02:01:00 +00:00
Kim F. Storm
78819ebbcc Cleanups. 2004-11-16 00:31:32 +00:00
Kenichi Handa
ab5b02b01f (display_mode_element): Fix previous change (calculate
end position of substring to display correctly).
2004-11-16 00:30:13 +00:00
Kim F. Storm
8f1657f036 (Fposn_at_point): Remove extra */ after doc string.
Reported by Andrew M. Scott.
2004-11-15 23:32:52 +00:00
Kim F. Storm
c482cf97b8 *** empty log message *** 2004-11-15 23:32:33 +00:00
Kim F. Storm
109b593f29 (store_mode_line_string, produce_stretch_glyph):
Use Fsafe_plist_get.
(note_mode_line_or_margin_highlight, note_mouse_highlight):
Fix image map element parsing.  Use Fsafe_plist_get.
2004-11-15 15:21:34 +00:00
Kim F. Storm
27f604dddf (Fsafe_plist_get): New defun.
(syms_of_fns): Defsubr it.
2004-11-15 15:21:14 +00:00
Kim F. Storm
479440d29c (Fsafe_plist_get): Add EXFUN. 2004-11-15 15:20:57 +00:00
Kim F. Storm
9f89426bd4 *** empty log message *** 2004-11-15 15:20:33 +00:00
Richard M. Stallman
27418463ce (get_next_display_element): Fix previous change. 2004-11-15 13:34:40 +00:00
Kim F. Storm
46303896cd *** empty log message *** 2004-11-14 23:21:14 +00:00
Jan Djärv
ef614e04c3 * window.c (shrink_windows): Handle special case of one window left
when trying to shrink the final reminder.  Grow windows if
total_removed is less than total_shrink.
2004-11-14 11:59:21 +00:00
Jan Djärv
234abfce95 Removed fprintf 2004-11-14 10:59:31 +00:00
Jan Djärv
a130b9017f * xmenu.c (pop_down_menu): Remove global variable current_menu,
extract pointer from arg with XSAVE_VALUE.
(create_and_show_popup_menu, create_and_show_dialog,
xmenu_show): Construct arg to record_unwind_protect with
make_save_value.
2004-11-14 10:55:45 +00:00
Jan Djärv
24ca7c5a6f * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
Record unwind with clean_up_file_dialog.
2004-11-14 09:59:02 +00:00
Luc Teirlinck
9de1330977 Reverse previous change. 2004-11-14 06:21:25 +00:00
Luc Teirlinck
3cffaddf34 extern reseat_at_previous_visible_line_start. 2004-11-14 05:24:59 +00:00
Richard M. Stallman
d9a03ad2b7 (syms_of_minibuf) <completion-ignore-case>: Doc fix. 2004-11-14 05:17:58 +00:00
Richard M. Stallman
0b2e177e3e (reseat_at_previous_visible_line_start): No longer static.
(get_next_display_element): Fix latest change: applies only to \n.
2004-11-14 04:31:03 +00:00
Richard M. Stallman
9136818a81 (Fvertical_motion): Scan to PT from start of line to make iterator consistent. 2004-11-14 04:13:54 +00:00
Jan Djärv
b393528900 * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.
Record unwind with clean_up_file_dialog.

* xterm.h: Declare x_menu_in_use, x_menu_set_in_use,
x_menu_wait_for_event.

* xmenu.c (x_menu_in_use, x_menu_set_in_use): New functions.
2004-11-13 23:29:11 +00:00
Jan Djärv
cd2531db72 Add BLOCK_INPUT in pop_down_file_dialog. 2004-11-13 23:17:55 +00:00
Jan Djärv
457a8155aa * gtkutil.c (xg_file_sel_ok, xg_file_sel_cancel)
(xg_file_sel_destroy): Removed.
(xg_file_response_cb, pop_down_file_dialog,
xg_get_file_name_from_chooser, xg_get_file_name_from_selector):
New functions.
(xg_get_file_with_chooser, xg_get_file_with_selection): Take
new argument func, set it to xg_get_file_name_from_chooser/selector.
Move common code to xg_get_file_name.  Return widget created.
(xg_get_file_name): Set name, transient for, modal and destroy
with parent here.  Connect response signal to xg_file_response_cb,
connect delete-event to gtk_true.  Record pop_down_file_dialog
for unwind.  Do event loop and call x_menu_wait_for_event in loop.
(xg_create_widget): Make dialogs modal.
2004-11-13 23:09:11 +00:00
Jan Djärv
af89e87102 * xmenu.c (unuse_menu_items, pop_down_menu): Arg is of type
Lisp_Object.
(popup_get_selection): Move unwind protect ...
(create_and_show_popup_menu, create_and_show_dialog): ... to here.
Move destroy of widget to pop_down_menu.
(popup_widget_loop): Move unwind protect ...
(create_and_show_popup_menu, create_and_show_dialog): ... to here.
Move destroy of widget to pop_down_menu.
(pop_down_menu): BLOCK_INPUT and destroy widget/window.
(xmenu_show): record unwind pop_down_menu.  Move XMenuDestroy,
x_mouse_leave and grabbed = 0 to pop_down_menu.
2004-11-13 20:18:21 +00:00
Kim F. Storm
5596fbf1d9 *** empty log message *** 2004-11-13 01:29:31 +00:00
Kim F. Storm
8232c9138e (make_cursor_line_fully_visible_p): New variable.
(syms_of_xdisp): DEFVAR_BOOL it.
(make_cursor_line_fully_visible, try_cursor_movement)
(try_window_id): Use it.
2004-11-13 01:05:47 +00:00
Kim F. Storm
546f98b838 (init_iterator): Clear it.max_extra_line_spacing.
(move_it_vertically_backward): Don't recure to move further back.
(move_it_vertically): Remove superfluous condition.
(move_it_by_lines): Clear last_height when moved 0 lines.
(resize_mini_window): use it.max_extra_line_spacing.
(display_tool_bar_line): Clear row->extra_line_spacing.
(try_scrolling): Use move_it_vertically_backward directly.
(redisplay_window): Likewise.
(compute_line_metrics): Set row->extra_line_spacing.
(display_line, display_string): Likewise.
(x_produce_glyphs): Update it->max_extra_line_spacing.
2004-11-12 14:27:07 +00:00
Kim F. Storm
f204989e2e (window_scroll_pixel_based, Frecenter): Use
move_it_vertically_backward directly.
(Frecenter): Fix calculation of new start pos for negative arg.
Before, the new start pos was sometimes chosen too far back, so
the last line became only partially visible, and thus would be
either only semi-visible or automatically scrolled to the middle
of the window by redisplay.
2004-11-12 14:26:53 +00:00
Kim F. Storm
db0c5a7d08 (struct glyph_row): New member extra_line_spacing.
(struct it): New member max_extra_line_spacing.
(MR_PARTIALLY_VISIBLE, MR_PARTIALLY_VISIBLE_AT_TOP)
(MR_PARTIALLY_VISIBLE_AT_BOTTOM): New helper macros.
(MATRIX_ROW_PARTIALLY_VISIBLE_P): Fix to return false if invisible
part of last line is only extra line spacing (so the text on the
line is fully visible). Use helper macros.
Add W arg (to use them).  All callers changed.
(MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P)
(MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): Use helper macros.
2004-11-12 14:26:34 +00:00
Kim F. Storm
381f7091f6 *** empty log message *** 2004-11-12 14:21:27 +00:00
Kim F. Storm
b9de078aa6 (pop_down_menu): Return nil. 2004-11-12 13:47:13 +00:00
Jan Djärv
f1d1cd24db (pop_down_menu): New function.
(popup_get_selection, popup_widget_loop): Unwind protect to
pop_down_menu.
(popup_widget_loop): Add argument widget.
(create_and_show_popup_menu, create_and_show_dialog): Pass new
argument widget to popup_widget_loop.
2004-11-12 10:34:36 +00:00
Jan Djärv
df00f4364c (popup_widget_loop): Add argument do_timers.
(create_and_show_popup_menu, create_and_show_dialog): Pass 1 for
do_timers to popup_widget_loop.
(create_and_show_popup_menu): Pass 1 for do_timers to
popup_get_selection.
2004-11-12 09:36:55 +00:00
Jan Djärv
c3438661cb * xmenu.c (x_menu_wait_for_event): New function.
(popup_get_selection, popup_widget_loop):  Call x_menu_wait_for_event
to handle timers.
(xmenu_show): Call XMenuActivateSetWaitFunction so that
x_menu_wait_for_event is called by XMenuActivate.
2004-11-12 08:33:51 +00:00
Stefan Monnier
32e2fb0429 (Fkeymap_prompt): Accept symbol keymaps. 2004-11-10 22:35:21 +00:00
Kim F. Storm
678b3958be Include <sys/types.h> and <unistd.h> (for getpid).
Fix various comments referring to XEvents instead of input events.
(x_queue_event): Fix format strings.
(x_stop_queuing_selection_requests): Likewise.
2004-11-09 13:26:58 +00:00
Kim F. Storm
0162fa4ea6 (produce_image_glyph): Remove unused variable 'face_ascent'.
(pint2hrstr): Add extra braces to silence compiler.
2004-11-09 13:26:01 +00:00
Kim F. Storm
44455197d9 (print_object): Fix format string. 2004-11-09 13:24:35 +00:00
Kim F. Storm
95af0924b4 (read1): Fix next_char matching. 2004-11-09 13:24:19 +00:00