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
Kim F. Storm
e870dd8926
(Fdelete): Add EXFUN.
...
(replace_range_2): Add prototype.
2004-11-09 13:24:07 +00:00
Kim F. Storm
caa5a925ae
(read_avail_input): Remove unused variable 'discard'.
2004-11-09 13:23:55 +00:00
Kim F. Storm
825e0e0b53
(NULL_INTERVAL_P): Add separate version when
...
ENABLE_CHECKING is not defined to silence compiler.
(compare_string_intervals): Add prototype.
2004-11-09 13:23:42 +00:00
Kim F. Storm
c3c69bb625
(destroy_fringe_bitmap): Fix return type.
...
(Ffringe_bitmaps_at_pos): Remove unused var 'old_buffer'.
2004-11-09 13:23:32 +00:00
Kim F. Storm
9b33d5960f
(Fdump_emacs): Fix format string.
2004-11-09 13:23:13 +00:00
Kim F. Storm
9f77d2aaef
Include <ctype.h>.
...
(Fsubstitute_command_keys): Remove unused variable 'firstkey'.
2004-11-09 13:23:00 +00:00
Kim F. Storm
43e50e40db
(store_symval_forwarding): Remove unused variables.
2004-11-09 13:19:11 +00:00
Kim F. Storm
33247f0c3a
(Fcall_interactively): Remove unused variable 'funcar'.
2004-11-09 13:18:58 +00:00
Kim F. Storm
0faf68065e
*** empty log message ***
2004-11-09 13:18:39 +00:00
Kim F. Storm
d0c38d631d
Fix commentary.
2004-11-09 11:16:32 +00:00
Kim F. Storm
eb943af045
(Fmake_network_process): Remove unused var 'retry'.
2004-11-09 11:15:46 +00:00
Jan Djärv
16bf4e3264
* Makefile.in (stamp-oldxmenu): If HAVE_GTK, don't add dependencies
...
to ${OLDXMENU}.
2004-11-09 10:59:49 +00:00
Kim F. Storm
4e9dd03b8c
(Fmake_network_process): Remove kludge for interrupted
...
connects on BSD. If connect is interrupted, just close socket and
start over rather than sleeping and retry with same socket.
2004-11-09 09:40:37 +00:00
Kim F. Storm
cdb805a935
*** empty log message ***
2004-11-09 09:40:07 +00:00
Jan Djärv
a8b16c80cd
* .cvsignore: Add buildobj.lst.
2004-11-09 08:23:44 +00:00
Jan Djärv
d87a9ab893
* doc.c: New variable Vbuild_files.
...
(Fsnarf_documentation): If Vbuild_files is nil, populate it with
file names from buildobh.lst. Only attach docstrings from files
that are in Vbuild_files.
(syms_of_doc): Defvar Vbuild_files.
* Makefile.in (SOME_MACHINE_OBJECTS): Add fringe.o, image.o
and w32*.o.
(temacs${EXEEXT}): Generate buildobj.lst when temacs is linked.
(mostlyclean): rm buildobj.lst
* makefile.w32-in ($(TEMACS)): Generate buildobj.lst when temacs
is linked.
2004-11-09 08:19:51 +00:00
Kim F. Storm
81544a1d14
(update_window_fringes): Update fringe bitmaps if
...
cur and row ends_at_zv_p differs. If bitmaps of a row is updated,
also update previous row to get rid of misc. artifacts.
2004-11-08 23:34:12 +00:00
Kim F. Storm
b6709e7744
*** empty log message ***
2004-11-08 23:32:56 +00:00
Kim F. Storm
4674c583e2
(note_mouse_highlight): Clear mouse face if we move out of text area.
2004-11-08 22:25:30 +00:00
Kim F. Storm
b7127aa8d0
*** empty log message ***
2004-11-08 22:24:51 +00:00
Kim F. Storm
a78bc3c08a
(fast_find_position): Fix start pos if header line present.
2004-11-08 22:12:13 +00:00
Kim F. Storm
bae9677d95
*** empty log message ***
2004-11-08 22:11:40 +00:00