]> git.eshelyaron.com Git - emacs.git/commitdiff
*** empty log message ***
authorGerd Moellmann <gerd@gnu.org>
Tue, 2 May 2000 20:12:37 +0000 (20:12 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 2 May 2000 20:12:37 +0000 (20:12 +0000)
etc/NEWS
lisp/ChangeLog
src/ChangeLog

index 0c2c222507802f433c577973ca6cace637b11cd1..23e50b9eefd0566e35cc41381c19a83387da897b 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2273,8 +2273,17 @@ The following is a list of properties all image types share.
 
 `:ascent ASCENT'
 
-ASCENT must be a number in the range 0..100, and specifies the percentage
-of the image's height to use for its ascent.  Default is 50.
+ASCENT must be a number in the range 0..100, or the symbol `center'.
+If it is a number, it specifies the percentage of the image's height
+to use for its ascent.  
+
+If not specified, ASCENT defaults to the value 50 which means that the
+image will be centered with the base line of the row it appears in.
+
+If ASCENT is `center' the image is vertically centered with text drawn
+in the same face as the image.  The point the image is aligned with is
+the middle of the height of the face's font.  That point is usually
+different from the font's base line.
 
 `:margin MARGIN'
 
index 7c92ade76b25e189ca553527402103b0983ea2b4..a4762a29de5cc8235e908c38674b1c6f0c2818a9 100644 (file)
@@ -1,5 +1,8 @@
 2000-05-02  Gerd Moellmann  <gerd@gnu.org>
 
+       * files.el (recover-session): Make directories as necessary
+       if they don't exist yet.
+
        * calendar/cal-french.el 
        (french-calendar-multibyte-special-days-array) 
        (french-calendar-special-days-array): Change French text.
index 9e02c0ed45b0371ceb297fe23d281f7fccc2c543..19ee3b145f83fbc66a3db94a30016d21b82810ee 100644 (file)
@@ -1,5 +1,31 @@
 2000-05-02  Gerd Moellmann  <gerd@gnu.org>
 
+       * xterm.h (struct face): Add forward declaration.
+       (struct image): Ditto.
+       (image_ascent): Add prototype.
+
+       * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
+       (x_draw_image_relief, x_draw_image_foreground_1): Call function
+       image_ascent instead of using IMAGE_ASCENT.
+
+       * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
+       (IMAGE_ASCENT): Removed.
+
+       * xfns.c (Qcenter): New variable.
+       (enum image_value_type): Add IMAGE_ASCENT_VALUE.
+       (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
+       (image_ascent): New function.
+       (lookup_image): Recognize `:ascent center'.
+       (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
+       (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
+       (xbm_load): Don't set image's ascent here.
+       (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
+       (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
+       check ascent values here.
+       (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
+       (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
+       (syms_of_xfns): Initialize Qcenter.
+
        * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
        to the limits, increase the limits.