Merge from emacs--devo--0
authorMiles Bader <miles@gnu.org>
Mon, 28 Aug 2006 04:33:45 +0000 (04:33 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 28 Aug 2006 04:33:45 +0000 (04:33 +0000)
Patches applied:

 * emacs--devo--0  (patch 399-413)

   - Update from CVS
   - Rcirc update from Ryan Yeske
   - Merge from gnus--rel--5.10
   - Miscellaneous tq-related fixes.

 * gnus--rel--5.10  (patch 126-127)

   - Merge from emacs--devo--0
   - Update from CVS

Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-105

25 files changed:
1  2 
etc/NEWS
etc/TODO
lisp/ChangeLog
lisp/cus-start.el
lisp/font-lock.el
lisp/simple.el
lisp/startup.el
lisp/term/mac-win.el
src/ChangeLog
src/alloc.c
src/buffer.c
src/dired.c
src/editfns.c
src/fileio.c
src/fns.c
src/keyboard.c
src/macfns.c
src/macterm.c
src/w32fns.c
src/w32term.c
src/window.c
src/xdisp.c
src/xfaces.c
src/xfns.c
src/xterm.c

diff --cc etc/NEWS
Simple merge
diff --cc etc/TODO
Simple merge
diff --cc lisp/ChangeLog
Simple merge
Simple merge
Simple merge
diff --cc lisp/simple.el
Simple merge
diff --cc lisp/startup.el
Simple merge
Simple merge
diff --cc src/ChangeLog
Simple merge
diff --cc src/alloc.c
Simple merge
diff --cc src/buffer.c
Simple merge
diff --cc src/dired.c
Simple merge
diff --cc src/editfns.c
Simple merge
diff --cc src/fileio.c
Simple merge
diff --cc src/fns.c
Simple merge
diff --cc src/keyboard.c
Simple merge
diff --cc src/macfns.c
Simple merge
diff --cc src/macterm.c
Simple merge
diff --cc src/w32fns.c
Simple merge
diff --cc src/w32term.c
Simple merge
diff --cc src/window.c
Simple merge
diff --cc src/xdisp.c
Simple merge
diff --cc src/xfaces.c
Simple merge
diff --cc src/xfns.c
Simple merge
diff --cc src/xterm.c
@@@ -2858,32 -2689,24 +2864,35 @@@ x_draw_glyph_string (s
          if (!XGetFontProperty (s->font, XA_UNDERLINE_THICKNESS, &h))
            h = 1;
  
-         /* Get the underline position.  This is the recommended
-            vertical offset in pixels from the baseline to the top of
-            the underline.  This is a signed value according to the
-            specs, and its default is
-            ROUND ((maximum descent) / 2), with
-            ROUND(x) = floor (x + 0.5)  */
 +#ifdef USE_FONT_BACKEND
 +        if (enable_font_backend)
 +          {
 +            if (s->face->font)
 +              /* In the future, we must use information of font.  */
 +              y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2;
 +            else
 +              y = s->y + s->height - h;
 +          }
 +        else
 +#endif
-         if (x_use_underline_position_properties
-             && XGetFontProperty (s->font, XA_UNDERLINE_POSITION, &tem))
-           y = s->ybase + (long) tem;
-         else if (s->face->font)
-           y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2;
-         else
+           if (x_underline_at_descent_line)
            y = s->y + s->height - h;
+           else
+             {
+             /* Get the underline position.  This is the recommended
+                  vertical offset in pixels from the baseline to the top of
+                  the underline.  This is a signed value according to the
+                  specs, and its default is
+                ROUND ((maximum descent) / 2), with
+                ROUND(x) = floor (x + 0.5)  */
+               if (x_use_underline_position_properties
+                   && XGetFontProperty (s->font, XA_UNDERLINE_POSITION, &tem))
+                 y = s->ybase + (long) tem;
+               else if (s->face->font)
+                 y = s->ybase + (s->face->font->max_bounds.descent + 1) / 2;
+             }
  
          if (s->face->underline_defaulted_p)
            XFillRectangle (s->display, s->window, s->gc,