aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJoakim Verona2013-01-05 00:04:41 +0100
committerJoakim Verona2013-01-05 00:04:41 +0100
commitb18e01b65e651d3b626b4edcaaa2aa636fe25b69 (patch)
tree2832e227a4c45d3a4d423f972df29fb7f8616b14 /src
parent55b74b54b179f340bdb311070273f26da3fbd0c9 (diff)
parent1bd71e9fe16541bc48868a00ff372018961380b0 (diff)
downloademacs-b18e01b65e651d3b626b4edcaaa2aa636fe25b69.tar.gz
emacs-b18e01b65e651d3b626b4edcaaa2aa636fe25b69.zip
auto upstream
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog18
-rw-r--r--src/fileio.c8
-rw-r--r--src/fns.c2
-rw-r--r--src/nsterm.m13
-rw-r--r--src/w32term.c7
-rw-r--r--src/xterm.c7
6 files changed, 37 insertions, 18 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7342f7c6add..8fc876e248c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,19 @@
12013-01-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * nsterm.m (ns_draw_underwave):
4 * w32term.c (w32_draw_underwave):
5 * xterm.c (x_draw_underwave): Make underwave look more triangular
6 and also degrade gracefully for small fonts. (Bug#13000)
7
8 * nsterm.m (ns_draw_text_decoration):
9 * w32term.c (x_draw_glyph_string):
10 * xterm.c (x_draw_glyph_string): Don't use previous underline
11 thickness and position if previous underline type is underwave.
12
132013-01-04 Stefan Monnier <monnier@iro.umontreal.ca>
14
15 * fileio.c (Ffile_acl): Undocument return format.
16
12013-01-02 Glenn Morris <rgm@gnu.org> 172013-01-02 Glenn Morris <rgm@gnu.org>
2 18
3 * keymap.c (Fkey_description): Doc fix. (Bug#13323) 19 * keymap.c (Fkey_description): Doc fix. (Bug#13323)
@@ -257,7 +273,7 @@
257 273
258 * xdisp.c (select_frame_for_redisplay, ensure_selected_frame): Remove. 274 * xdisp.c (select_frame_for_redisplay, ensure_selected_frame): Remove.
259 (redisplay_internal): Don't bother selecting the frame to get the 275 (redisplay_internal): Don't bother selecting the frame to get the
260 proper value of frame-local variables. 276 proper value of frame-local variables (bug#13225).
261 277
2622012-12-20 Dmitry Antipov <dmantipov@yandex.ru> 2782012-12-20 Dmitry Antipov <dmantipov@yandex.ru>
263 279
diff --git a/src/fileio.c b/src/fileio.c
index 05f615f0c88..5e9b36ee44a 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -3084,11 +3084,11 @@ or if Emacs was not compiled with SELinux support. */)
3084} 3084}
3085 3085
3086DEFUN ("file-acl", Ffile_acl, Sfile_acl, 1, 1, 0, 3086DEFUN ("file-acl", Ffile_acl, Sfile_acl, 1, 1, 0,
3087 doc: /* Return ACL entries of file named FILENAME, as a string. 3087 doc: /* Return ACL entries of file named FILENAME.
3088The entries are returned in a format suitable for use in `set-file-acl'
3089but is otherwise undocumented and subject to change.
3088Return nil if file does not exist or is not accessible, or if Emacs 3090Return nil if file does not exist or is not accessible, or if Emacs
3089was unable to determine the ACL entries. The latter can happen for 3091was unable to determine the ACL entries. */)
3090local files if Emacs was not compiled with ACL support, or for remote
3091files if the file handler returns nil for the file's ACL entries. */)
3092 (Lisp_Object filename) 3092 (Lisp_Object filename)
3093{ 3093{
3094 Lisp_Object absname; 3094 Lisp_Object absname;
diff --git a/src/fns.c b/src/fns.c
index 3beed018648..687c3f6ff39 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -86,7 +86,7 @@ Other values of LIMIT are ignored. */)
86 before it's time to do a QUIT. This must be a power of 2. */ 86 before it's time to do a QUIT. This must be a power of 2. */
87enum { QUIT_COUNT_HEURISTIC = 1 << 16 }; 87enum { QUIT_COUNT_HEURISTIC = 1 << 16 };
88 88
89/* Random data-structure functions */ 89/* Random data-structure functions. */
90 90
91DEFUN ("length", Flength, Slength, 1, 1, 0, 91DEFUN ("length", Flength, Slength, 1, 1, 0,
92 doc: /* Return the length of vector, list or string SEQUENCE. 92 doc: /* Return the length of vector, list or string SEQUENCE.
diff --git a/src/nsterm.m b/src/nsterm.m
index c8ce484a432..0fd062b7f17 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -2566,7 +2566,7 @@ ns_get_glyph_string_clip_rect (struct glyph_string *s, NativeRectangle *nr)
2566 Draw a wavy line under glyph string s. The wave fills wave_height 2566 Draw a wavy line under glyph string s. The wave fills wave_height
2567 pixels from y. 2567 pixels from y.
2568 2568
2569 x wave_length = 3 2569 x wave_length = 2
2570 -- 2570 --
2571 y * * * * * 2571 y * * * * *
2572 |* * * * * * * * * 2572 |* * * * * * * * *
@@ -2576,14 +2576,14 @@ ns_get_glyph_string_clip_rect (struct glyph_string *s, NativeRectangle *nr)
2576static void 2576static void
2577ns_draw_underwave (struct glyph_string *s, CGFloat width, CGFloat x) 2577ns_draw_underwave (struct glyph_string *s, CGFloat width, CGFloat x)
2578{ 2578{
2579 int wave_height = 3, wave_length = 3; 2579 int wave_height = 3, wave_length = 2;
2580 int y, dx, dy, odd, xmax; 2580 int y, dx, dy, odd, xmax;
2581 NSPoint a, b; 2581 NSPoint a, b;
2582 NSRect waveClip; 2582 NSRect waveClip;
2583 2583
2584 dx = wave_length; 2584 dx = wave_length;
2585 dy = wave_height - 1; 2585 dy = wave_height - 1;
2586 y = s->ybase + 1; 2586 y = s->ybase - wave_height + 3;
2587 xmax = x + width; 2587 xmax = x + width;
2588 2588
2589 /* Find and set clipping rectangle */ 2589 /* Find and set clipping rectangle */
@@ -2592,10 +2592,10 @@ ns_draw_underwave (struct glyph_string *s, CGFloat width, CGFloat x)
2592 NSRectClip (waveClip); 2592 NSRectClip (waveClip);
2593 2593
2594 /* Draw the waves */ 2594 /* Draw the waves */
2595 a.x = x - ((int)(x) % dx); 2595 a.x = x - ((int)(x) % dx) + 0.5;
2596 b.x = a.x + dx; 2596 b.x = a.x + dx;
2597 odd = (int)(a.x/dx) % 2; 2597 odd = (int)(a.x/dx) % 2;
2598 a.y = b.y = y; 2598 a.y = b.y = y + 0.5;
2599 2599
2600 if (odd) 2600 if (odd)
2601 a.y += dy; 2601 a.y += dy;
@@ -2606,7 +2606,7 @@ ns_draw_underwave (struct glyph_string *s, CGFloat width, CGFloat x)
2606 { 2606 {
2607 [NSBezierPath strokeLineFromPoint:a toPoint:b]; 2607 [NSBezierPath strokeLineFromPoint:a toPoint:b];
2608 a.x = b.x, a.y = b.y; 2608 a.x = b.x, a.y = b.y;
2609 b.x += dx, b.y = y + odd*dy; 2609 b.x += dx, b.y = y + 0.5 + odd*dy;
2610 odd = !odd; 2610 odd = !odd;
2611 } 2611 }
2612 2612
@@ -2646,6 +2646,7 @@ ns_draw_text_decoration (struct glyph_string *s, struct face *face,
2646 2646
2647 /* If the prev was underlined, match its appearance. */ 2647 /* If the prev was underlined, match its appearance. */
2648 if (s->prev && s->prev->face->underline_p 2648 if (s->prev && s->prev->face->underline_p
2649 && s->prev->face->underline_type == FACE_UNDER_LINE
2649 && s->prev->underline_thickness > 0) 2650 && s->prev->underline_thickness > 0)
2650 { 2651 {
2651 thickness = s->prev->underline_thickness; 2652 thickness = s->prev->underline_thickness;
diff --git a/src/w32term.c b/src/w32term.c
index c5681438bfe..36ae4d7797f 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -358,7 +358,7 @@ w32_restore_glyph_string_clip (struct glyph_string *s)
358void 358void
359w32_draw_underwave (struct glyph_string *s, COLORREF color) 359w32_draw_underwave (struct glyph_string *s, COLORREF color)
360{ 360{
361 int wave_height = 2, wave_length = 3; 361 int wave_height = 3, wave_length = 2;
362 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax; 362 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax;
363 XRectangle wave_clip, string_clip, final_clip; 363 XRectangle wave_clip, string_clip, final_clip;
364 RECT w32_final_clip, w32_string_clip; 364 RECT w32_final_clip, w32_string_clip;
@@ -367,7 +367,7 @@ w32_draw_underwave (struct glyph_string *s, COLORREF color)
367 dx = wave_length; 367 dx = wave_length;
368 dy = wave_height - 1; 368 dy = wave_height - 1;
369 x0 = s->x; 369 x0 = s->x;
370 y0 = s->ybase + 1; 370 y0 = s->ybase - wave_height + 3;
371 width = s->width; 371 width = s->width;
372 xmax = x0 + width; 372 xmax = x0 + width;
373 373
@@ -2456,7 +2456,8 @@ x_draw_glyph_string (struct glyph_string *s)
2456 unsigned long thickness, position; 2456 unsigned long thickness, position;
2457 int y; 2457 int y;
2458 2458
2459 if (s->prev && s->prev->face->underline_p) 2459 if (s->prev && s->prev->face->underline_p
2460 && s->prev->face->underline_type == FACE_UNDER_LINE)
2460 { 2461 {
2461 /* We use the same underline style as the previous one. */ 2462 /* We use the same underline style as the previous one. */
2462 thickness = s->prev->underline_thickness; 2463 thickness = s->prev->underline_thickness;
diff --git a/src/xterm.c b/src/xterm.c
index d1934b1986e..e24fbd19f2b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2634,14 +2634,14 @@ x_draw_stretch_glyph_string (struct glyph_string *s)
2634static void 2634static void
2635x_draw_underwave (struct glyph_string *s) 2635x_draw_underwave (struct glyph_string *s)
2636{ 2636{
2637 int wave_height = 2, wave_length = 3; 2637 int wave_height = 3, wave_length = 2;
2638 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax; 2638 int dx, dy, x0, y0, width, x1, y1, x2, y2, odd, xmax;
2639 XRectangle wave_clip, string_clip, final_clip; 2639 XRectangle wave_clip, string_clip, final_clip;
2640 2640
2641 dx = wave_length; 2641 dx = wave_length;
2642 dy = wave_height - 1; 2642 dy = wave_height - 1;
2643 x0 = s->x; 2643 x0 = s->x;
2644 y0 = s->ybase + 1; 2644 y0 = s->ybase - wave_height + 3;
2645 width = s->width; 2645 width = s->width;
2646 xmax = x0 + width; 2646 xmax = x0 + width;
2647 2647
@@ -2809,7 +2809,8 @@ x_draw_glyph_string (struct glyph_string *s)
2809 unsigned long thickness, position; 2809 unsigned long thickness, position;
2810 int y; 2810 int y;
2811 2811
2812 if (s->prev && s->prev->face->underline_p) 2812 if (s->prev && s->prev->face->underline_p
2813 && s->prev->face->underline_type == FACE_UNDER_LINE)
2813 { 2814 {
2814 /* We use the same underline style as the previous one. */ 2815 /* We use the same underline style as the previous one. */
2815 thickness = s->prev->underline_thickness; 2816 thickness = s->prev->underline_thickness;