Jan Djärv [Sat, 13 Nov 2004 23:09:11 +0000 (23:09 +0000)]
* 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.
Jan Djärv [Sat, 13 Nov 2004 20:18:21 +0000 (20:18 +0000)]
* 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.
Kim F. Storm [Sat, 13 Nov 2004 01:40:36 +0000 (01:40 +0000)]
Fixed these problems:
** Clicking on partially visible lines fails
From: David Kastrup <dak@gnu.org>
Date: 27 Apr 2004 16:42:58 +0200
I had gnus display a mouse-highlighted line (a URL from browse-url)
partially at the bottom of its window. If I click with middle mouse
key on it, the window gets recentered while I hold the mouse key
pressed. If I release it, the window returns into its old position
(cursor in top row) and nothing happens, presumably because the click
was not registered on the line itself, but on the magically
recentered version.
That is a nuisance. Recentering of even partially visible click
targets should only happen if window-point moves there, but not at
the time of the click. From the moment I hold down a key until it
gets released, the displayed window portion should not change, with
the sole exception of scrolling when dragging at the edge of the
screen.
Kim F. Storm [Sat, 13 Nov 2004 01:29:45 +0000 (01:29 +0000)]
(mouse-drag-copy-region): Add :version.
(mouse-drag-mode-line-1): Let bind mouse-autoselect-window to nil
while dragging mode line, so mode line can be dragged downwards.
(mouse-drag-region-1): Let bind make-cursor-line-fully-visible
while pressing mouse button so window doesn't scroll until we
release the mouse if clicking on partially visible line.
Kim F. Storm [Sat, 13 Nov 2004 01:05:47 +0000 (01:05 +0000)]
(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.
Kim F. Storm [Fri, 12 Nov 2004 14:26:53 +0000 (14:26 +0000)]
(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.
Kim F. Storm [Fri, 12 Nov 2004 14:26:34 +0000 (14:26 +0000)]
(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.
Jan Djärv [Fri, 12 Nov 2004 09:36:55 +0000 (09:36 +0000)]
(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.
Jan Djärv [Fri, 12 Nov 2004 08:33:51 +0000 (08:33 +0000)]
* 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.
Stefan Monnier [Thu, 11 Nov 2004 22:44:46 +0000 (22:44 +0000)]
Use push.
(byte-compile-file-form-defalias): Rename from byte-compile-defalias.
(defalias): Remove the `byte-compile' property and add a `byte-hunk-handler'.
* miles@gnu.org--gnu-2004/gnus--rel--5.10--patch-71
Update from CVS
2004-11-10 Katsumi Yamaoka <yamaoka@jpl.org>
* lisp/gnus/gnus-art.el (gnus-emphasis-alist): Don't hide asterisks by
default; improve customization type.
(gnus-emphasis-custom-with-format): New macro.
(gnus-emphasis-custom-value-to-external): New function.
(gnus-emphasis-custom-value-to-internal): New function.
Jay Belanger [Thu, 11 Nov 2004 20:59:02 +0000 (20:59 +0000)]
(math-prime-factors-finished): Declared it as a variable.
(calcFunc-dfac): Replaced max by n.
(math-stirling-local-cache): New variable.
(math-stirling-number, math-stirling-1, math-stirling-2): Replaced
the variable `cache' by the declared variable math-stirling-local-cache.
(var-RandSeed): Declared it.
(math-init-random-base, math-random-digit): Don't check to see if
var-RandSeed is bound.
(math-random-cache, math-gaussian-cache, calc-verbose-nextprime):
Declared them instead of just setting them.
(math-init-random-base): Made i a local variable.
(math-random-digit): Made math-random-last a local variable.
(math-prime-test-cache): Moved declaration to before it is used.
(math-prime-test-cache-k, math-prime-test-cache-q,
math-prime-test-cache-nm1, math-prime-factors-finished): Declared
them as variables.
André Spiegel [Tue, 9 Nov 2004 23:36:29 +0000 (23:36 +0000)]
Rewrite the introduction about version systems, mentioning the new
ones that we support. Thanks to Alex Ott, Karl Fogel, Stefan
Monnier, and David Kastrup for suggestions.
Kim F. Storm [Tue, 9 Nov 2004 13:26:58 +0000 (13:26 +0000)]
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.