aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2004-04-29 22:41:05 +0000
committerKim F. Storm2004-04-29 22:41:05 +0000
commite71caa4ed9bcaeae6e3cf6396c9f90c219e4f75a (patch)
tree333cfd90d8f308379f0db4dcf1956ce039957e7d
parenta9e5c93275d3d9ebbd89da4efd89d9e31ec3cf4e (diff)
downloademacs-e71caa4ed9bcaeae6e3cf6396c9f90c219e4f75a.tar.gz
emacs-e71caa4ed9bcaeae6e3cf6396c9f90c219e4f75a.zip
*** empty log message ***
-rw-r--r--etc/NEWS31
-rw-r--r--src/ChangeLog23
2 files changed, 42 insertions, 12 deletions
diff --git a/etc/NEWS b/etc/NEWS
index fe5447006ff..fc6986e1ac4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2013,20 +2013,27 @@ specifies the minimum line height in pixels. If necessary, the line
2013height it increased by increasing the line's ascent. 2013height it increased by increasing the line's ascent.
2014 2014
2015If the line-height property value is a float, the minimum line height 2015If the line-height property value is a float, the minimum line height
2016is calculated by multiplying the height of the current face font by 2016is calculated by multiplying the default frame line height by the
2017the given value. 2017given value.
2018 2018
2019If the line-height property value is t, the minimum line height is 2019If the line-height property value is a cons (RATIO . FACE), the
2020the height of the default frame font. 2020minimum line height is calculated as RATIO * height of named FACE.
2021RATIO is int or float. If FACE is t, it specifies the current face.
2021 2022
2022If the line-spacing property value is an integer, the value is used as 2023If the line-spacing property value is an positive integer, the value
2023additional space to put after the display line; this overrides the 2024is used as additional pixels to insert after the display line; this
2024default frame line-spacing and any buffer local value of the 2025overrides the default frame line-spacing and any buffer local value of
2025line-spacing variable. 2026the line-spacing variable.
2026 2027
2027If the line-spacing property value is a float, the value is multiplied 2028If the value is a negative integer, the absolute value is used as the
2028by the current height of the display row to determine the additional 2029total height of the line, i.e. a varying number of pixels are
2029space to put after the display line. 2030inserted after each line to make each line exactly that many pixels high.
2031
2032If the line-spacing property may be a float or cons, the line spacing
2033is calculated as specified above for the line-height property.
2034
2035** The buffer local line-spacing variable may now have a float value,
2036which is used as a height relative to the default frame line height.
2030 2037
2031** Enhancements to stretch display properties 2038** Enhancements to stretch display properties
2032 2039
@@ -3417,7 +3424,7 @@ using the text properties (esp. the face) of the prompt string.
3417running under X. 3424running under X.
3418 3425
3419** Arguments for remove-overlays are now optional, so that you can remove 3426** Arguments for remove-overlays are now optional, so that you can remove
3420all overlays in the buffer by just calling (remove-overlay). 3427all overlays in the buffer by just calling (remove-overlay).
3421 3428
3422** New packages: 3429** New packages:
3423 3430
diff --git a/src/ChangeLog b/src/ChangeLog
index 9be37a38531..77f9fb25ab1 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,26 @@
12004-04-30 Kim F. Storm <storm@cua.dk>
2
3 * buffer.c (syms_of_buffer) <line-spacing>: Allow float value.
4
5 * dispextern.h (struct it): Remove member use_default_face.
6 Add members override_ascent, override_descent, override_boff.
7
8 * xdisp.c (init_iterator): Handle line-spacing float value.
9 Initialize override_ascent member.
10 (append_space_for_newline): Reset override_ascent.
11 Remove use_default_face.
12 (calc_line_height_property): New function to calculate value of
13 line-height and line-spacing properties. Look at overlays, too.
14 Set override_ascent, override_descent, override_boff members when
15 using another face than the current face. Float values are now
16 relative to the frame default font, by default; accept a cons
17 of ratio and face name to specify value relative to a specific face.
18 (x_produce_glyphs): Use calc_line_height_property.
19 Use override_ascent etc. when set to handle different face heights.
20 A negative line-spacing property value is interpreted as a total
21 line height, rather than inter-line spacing.
22 (note_mouse_highlight): Allocate room for 40 overlays initially.
23
12004-04-29 Stefan Monnier <monnier@iro.umontreal.ca> 242004-04-29 Stefan Monnier <monnier@iro.umontreal.ca>
2 25
3 * data.c (Fsubr_name): New fun. 26 * data.c (Fsubr_name): New fun.