# HG changeset patch # User Stefan Monnier # Date 1142893345 0 # Node ID 40a0e06dc5aa167aafa9c3cb126a8a2f27f3ff5b # Parent 2d529c65c661b0bb903e9c9be977abfb6f5ba704 (window_scroll_pixel_based): Yet another int/Lisp_Object mixup (YAILOM). diff -r 2d529c65c661 -r 40a0e06dc5aa src/ChangeLog --- a/src/ChangeLog Mon Mar 20 20:34:16 2006 +0000 +++ b/src/ChangeLog Mon Mar 20 22:22:25 2006 +0000 @@ -1,11 +1,15 @@ +2006-03-20 Stefan Monnier + + * window.c (window_scroll_pixel_based): Yet another int/Lisp_Object + mixup (YAILOM). + 2006-03-20 Eli Zaretskii * emacs.c (main): Fix last change. 2006-03-20 Kenichi Handa - * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO - it. + * fileio.c (Fwrite_region): Set visit_file to Qnil before GCPRO it. * keymap.c (map_keymap): Set tail to Qnil before GCPRO it. @@ -63,15 +67,15 @@ * image.c [MAC_OS] (XPutPixel, XGetPixel) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Don't use specialized version when depth is 32. - (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]: New - function. + (mac_create_cg_image_from_image) [MAC_OS && USE_CG_DRAWING]: + New function. (prepare_image_for_display) [MAC_OS && USE_CG_DRAWING]: Use it. (x_clear_image_1) [MAC_OS && USE_CG_DRAWING]: Release CGImage. * macterm.c (XCreatePixmap) [!WORDS_BIG_ENDIAN && USE_CG_DRAWING]: Create GWorld in ARGB pixel format. - (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]: Remove - functions. + (mac_copy_area, mac_copy_area_with_mask) [USE_CG_DRAWING]: + Remove functions. (x_draw_image_foreground) [USE_CG_DRAWING]: Use mac_draw_cg_image instead of mac_copy_area/mac_copy_area_with_mask. @@ -175,8 +179,7 @@ 2006-03-11 David Ponce - * xfns.c (x_create_tip_frame): Preserve received parms by copying - them. + * xfns.c (x_create_tip_frame): Preserve received parms by copying them. 2006-03-11 Eli Zaretskii @@ -197,14 +200,14 @@ * keymap.c (describe_map): Shorten string to indicate shadowed binding. * vm-limit.c (get_lim_data, lim_data, data_space_start): - Moved from mem-limits.h. + Move from mem-limits.h. (enum warnlevel): New data type. (check_memory_limits): Rewrite the logic about warnings. Use standard `struct rlimit'. Check return values for nonsense. (memory_warnings): Always clear lim_data. * mem-limits.h (get_lim_data, lim_data, data_space_start): - Moved to vm-limit.c. + Move to vm-limit.c. * xterm.c (x_fully_uncatch_errors, x_catching_errors): New functions. diff -r 2d529c65c661 -r 40a0e06dc5aa src/window.c --- a/src/window.c Mon Mar 20 20:34:16 2006 +0000 +++ b/src/window.c Mon Mar 20 22:22:25 2006 +0000 @@ -4796,8 +4796,8 @@ possibility of point becoming "stuck" on a tall line when scrolling by one line. */ if (window_scroll_pixel_based_preserve_y < 0 - || (current_kboard->Vlast_command != Qscroll_up - && current_kboard->Vlast_command != Qscroll_down)) + || (!EQ (current_kboard->Vlast_command, Qscroll_up) + && !EQ (current_kboard->Vlast_command, Qscroll_down))) { start_display (&it, w, start); move_it_to (&it, PT, -1, -1, -1, MOVE_TO_POS);