aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2010-08-19 09:34:21 +0200
committerJoakim Verona2010-08-19 09:34:21 +0200
commit96fa1768839e3a9aa5ab5f2b782cea376460df9d (patch)
treef4c2fc0e8bb15dd084aa10bb8b2fb7ab43630cdf /src
parent549a73b97bce9fe51547332424e0a6cb7070df1a (diff)
parent2c0ac86767b5b7f362a287b5282d8397777b98a2 (diff)
downloademacs-96fa1768839e3a9aa5ab5f2b782cea376460df9d.tar.gz
emacs-96fa1768839e3a9aa5ab5f2b782cea376460df9d.zip
upstream merge
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog10
-rw-r--r--src/bidi.c2
-rw-r--r--src/nsselect.m4
-rw-r--r--src/w32term.c5
-rw-r--r--src/xterm.c10
5 files changed, 26 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 45cccea1ebb..0a1a268d962 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,13 @@
12010-08-19 Jan Djärv <jan.h.d@swipnet.se>
2
3 * nsselect.m (nxatoms_of_nsselect): Use "Selection" and "Secondary".
4
52010-08-18 Eli Zaretskii <eliz@gnu.org>
6
7 * xterm.c (x_draw_bar_cursor):
8 * w32term.c (x_draw_bar_cursor): If the character under cursor is
9 R2L, draw the bar cursor on its right rather than on its left.
10
12010-08-18 Stefan Monnier <monnier@iro.umontreal.ca> 112010-08-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 12
3 * eval.c (Fdefmacro): Only obey one declaration. 13 * eval.c (Fdefmacro): Only obey one declaration.
diff --git a/src/bidi.c b/src/bidi.c
index 112d9b08b23..a6d4d1b2506 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -1533,7 +1533,7 @@ bidi_level_of_next_char (struct bidi_it *bidi_it)
1533 1533
1534 we want it to be displayed as 1534 we want it to be displayed as
1535 1535
1536 {RLO}STet{PDF} 1536 {PDF}STet{RLO}
1537 1537
1538 not as 1538 not as
1539 1539
diff --git a/src/nsselect.m b/src/nsselect.m
index 597d6e76253..9e434515edf 100644
--- a/src/nsselect.m
+++ b/src/nsselect.m
@@ -542,8 +542,8 @@ DEFUN ("ns-store-cut-buffer-internal", Fns_store_cut_buffer_internal,
542void 542void
543nxatoms_of_nsselect (void) 543nxatoms_of_nsselect (void)
544{ 544{
545 NXPrimaryPboard = @"PrimarySelection"; 545 NXPrimaryPboard = @"Selection";
546 NXSecondaryPboard = @"SecondarySelection"; 546 NXSecondaryPboard = @"Secondary";
547} 547}
548 548
549void 549void
diff --git a/src/w32term.c b/src/w32term.c
index 947ed5c9d44..992538e0e88 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -4897,6 +4897,11 @@ x_draw_bar_cursor (struct window *w, struct glyph_row *row,
4897 4897
4898 w->phys_cursor_width = width; 4898 w->phys_cursor_width = width;
4899 4899
4900 /* If the character under cursor is R2L, draw the bar cursor
4901 on the right of its glyph, rather than on the left. */
4902 if ((cursor_glyph->resolved_level & 1) != 0)
4903 x += cursor_glyph->pixel_width - width;
4904
4900 w32_fill_area (f, hdc, cursor_color, x, 4905 w32_fill_area (f, hdc, cursor_color, x,
4901 WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y), 4906 WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y),
4902 width, row->height); 4907 width, row->height);
diff --git a/src/xterm.c b/src/xterm.c
index 4325fb3d991..c049ce78913 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7152,14 +7152,20 @@ x_draw_bar_cursor (struct window *w, struct glyph_row *row, int width, enum text
7152 7152
7153 if (kind == BAR_CURSOR) 7153 if (kind == BAR_CURSOR)
7154 { 7154 {
7155 int x = WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x);
7156
7155 if (width < 0) 7157 if (width < 0)
7156 width = FRAME_CURSOR_WIDTH (f); 7158 width = FRAME_CURSOR_WIDTH (f);
7157 width = min (cursor_glyph->pixel_width, width); 7159 width = min (cursor_glyph->pixel_width, width);
7158 7160
7159 w->phys_cursor_width = width; 7161 w->phys_cursor_width = width;
7160 7162
7161 XFillRectangle (dpy, window, gc, 7163 /* If the character under cursor is R2L, draw the bar cursor
7162 WINDOW_TEXT_TO_FRAME_PIXEL_X (w, w->phys_cursor.x), 7164 on the right of its glyph, rather than on the left. */
7165 if ((cursor_glyph->resolved_level & 1) != 0)
7166 x += cursor_glyph->pixel_width - width;
7167
7168 XFillRectangle (dpy, window, gc, x,
7163 WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y), 7169 WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y),
7164 width, row->height); 7170 width, row->height);
7165 } 7171 }