diff options
| author | Stefan Monnier | 2008-06-29 13:56:50 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-06-29 13:56:50 +0000 |
| commit | baed8445dd2b64d5aaa19fcf110ae05ce591f4d6 (patch) | |
| tree | 8c2168f76dc3b440818de43f89cd21aef3c02451 /src | |
| parent | b861de913e16a1bd216e87797cae1a8d1c0d8421 (diff) | |
| download | emacs-baed8445dd2b64d5aaa19fcf110ae05ce591f4d6.tar.gz emacs-baed8445dd2b64d5aaa19fcf110ae05ce591f4d6.zip | |
(Fvertical_motion): Properly handle float column arg.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 62 | ||||
| -rw-r--r-- | src/indent.c | 15 |
2 files changed, 42 insertions, 35 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index df8c4b524be..5e26e44b61d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,39 +1,43 @@ | |||
| 1 | 2008-06-29 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * indent.c (Fvertical_motion): Properly handle float column arg. | ||
| 4 | |||
| 1 | 2008-06-28 Jason Rumney <jasonr@gnu.org> | 5 | 2008-06-28 Jason Rumney <jasonr@gnu.org> |
| 2 | 6 | ||
| 3 | * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer. | 7 | * w32term.c (pfnGetFontUnicodeRanges): Remove unused function pointer. |
| 4 | (pfnSetLayeredWindowAttributes): New function pointer. | 8 | (pfnSetLayeredWindowAttributes): New function pointer. |
| 5 | (w32_initialize): Initialize it when supported. | 9 | (w32_initialize): Initialize it when supported. |
| 6 | (x_set_frame_alpha): New function. | 10 | (x_set_frame_alpha): New function. |
| 7 | 11 | ||
| 8 | * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'. | 12 | * w32fns.c (Fx_create_frame): Initialize frame parameter `alpha'. |
| 9 | (w32_frame_parm_handlers): Set alpha handler. | 13 | (w32_frame_parm_handlers): Set alpha handler. |
| 10 | 14 | ||
| 11 | * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha. | 15 | * frame.c (x_set_alpha) [HAVE_NTGUI]: Call x_set_frame_alpha. |
| 12 | 16 | ||
| 13 | 2008-06-27 Jason Rumney <jasonr@gnu.org> | 17 | 2008-06-27 Jason Rumney <jasonr@gnu.org> |
| 14 | 18 | ||
| 15 | * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight) | 19 | * w32fns.c (x_to_w32_font, w32_to_x_font, x_to_w32_weight) |
| 16 | (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions. | 20 | (w32_to_x_weight, w32_to_all_x_charsets): Remove obsolete functions. |
| 17 | (w32_to_x_charset, x_to_w32_charset) | 21 | (w32_to_x_charset, x_to_w32_charset) |
| 18 | (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) | 22 | (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) |
| 19 | (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) | 23 | (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) |
| 20 | (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) | 24 | (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) |
| 21 | (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) | 25 | (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) |
| 22 | (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) | 26 | (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) |
| 23 | (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) | 27 | (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) |
| 24 | (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c. | 28 | (Qw32_charset_mac, Vw32_charset_info_alist): Move to w32font.c. |
| 25 | (Qw32_charset_unicode): Remove. | 29 | (Qw32_charset_unicode): Remove. |
| 26 | (syms_of_w32fns): Update for above changes. | 30 | (syms_of_w32fns): Update for above changes. |
| 27 | 31 | ||
| 28 | * w32font.c (w32_to_x_charset, x_to_w32_charset) | 32 | * w32font.c (w32_to_x_charset, x_to_w32_charset) |
| 29 | (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) | 33 | (Qw32_charset_ansi, Qw32_charset_symbol, Qw32_charset_default) |
| 30 | (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) | 34 | (Qw32_charset_shiftjis, Qw32_charset_hangeul, Qw32_charset_johab) |
| 31 | (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) | 35 | (Qw32_charset_chinesebig5, Qw32_charset_gb2312, Qw32_charset_oem) |
| 32 | (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) | 36 | (Qw32_charset_easteurope, Qw32_charset_turkish, Qw32_charset_baltic) |
| 33 | (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) | 37 | (Qw32_charset_russian, Qw32_charset_arabic, Qw32_charset_greek) |
| 34 | (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) | 38 | (Qw32_charset_hebrew, Qw32_charset_vietnamese, Qw32_charset_thai) |
| 35 | (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c. | 39 | (Qw32_charset_mac, Vw32_charset_info_alist): Move from w32fns.c. |
| 36 | (syms_of_w32font): Update for above changes. | 40 | (syms_of_w32font): Update for above changes. |
| 37 | 41 | ||
| 38 | 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu> | 42 | 2008-06-27 Dan Nicolaescu <dann@ics.uci.edu> |
| 39 | 43 | ||
diff --git a/src/indent.c b/src/indent.c index 71e993e31a2..be5dc5f667f 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -2020,12 +2020,14 @@ whether or not it is currently displayed in some window. */) | |||
| 2020 | struct window *w; | 2020 | struct window *w; |
| 2021 | Lisp_Object old_buffer; | 2021 | Lisp_Object old_buffer; |
| 2022 | struct gcpro gcpro1; | 2022 | struct gcpro gcpro1; |
| 2023 | int cols = 0; | 2023 | Lisp_Object lcols = Qnil; |
| 2024 | double cols; | ||
| 2024 | 2025 | ||
| 2025 | /* Allow LINES to be of the form (HPOS . VPOS) aka (COLUMNS . LINES). */ | 2026 | /* Allow LINES to be of the form (HPOS . VPOS) aka (COLUMNS . LINES). */ |
| 2026 | if (CONSP (lines) && (NUMBERP (XCAR (lines)))) | 2027 | if (CONSP (lines) && (NUMBERP (XCAR (lines)))) |
| 2027 | { | 2028 | { |
| 2028 | cols = XINT (XCAR (lines)); | 2029 | lcols = XCAR (lines); |
| 2030 | cols = INTEGERP (lcols) ? (double) XINT (lcols) : XFLOAT_DATA (lcols); | ||
| 2029 | lines = XCDR (lines); | 2031 | lines = XCDR (lines); |
| 2030 | } | 2032 | } |
| 2031 | 2033 | ||
| @@ -2116,10 +2118,11 @@ whether or not it is currently displayed in some window. */) | |||
| 2116 | if (XINT (lines) >= 0 || IT_CHARPOS (it) > 0) | 2118 | if (XINT (lines) >= 0 || IT_CHARPOS (it) > 0) |
| 2117 | move_it_by_lines (&it, XINT (lines), 0); | 2119 | move_it_by_lines (&it, XINT (lines), 0); |
| 2118 | 2120 | ||
| 2119 | if (cols) | 2121 | if (!NILP (lcols)) |
| 2120 | move_it_in_display_line (&it, ZV, | 2122 | move_it_in_display_line |
| 2121 | cols * FRAME_COLUMN_WIDTH (XFRAME (w->frame)), | 2123 | (&it, ZV, |
| 2122 | MOVE_TO_X); | 2124 | (int)(cols * FRAME_COLUMN_WIDTH (XFRAME (w->frame)) + 0.5), |
| 2125 | MOVE_TO_X); | ||
| 2123 | 2126 | ||
| 2124 | SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); | 2127 | SET_PT_BOTH (IT_CHARPOS (it), IT_BYTEPOS (it)); |
| 2125 | } | 2128 | } |