Note in Lisp manual that mouse-face cannot change the text size.
authorChong Yidong <cyd@stupidchicken.com>
Tue, 9 Aug 2011 21:14:11 +0000 (17:14 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 9 Aug 2011 21:14:11 +0000 (17:14 -0400)
* doc/lispref/text.texi (Special Properties):
* doc/lispref/display.texi (Overlay Properties): Note that mouse-face cannot
change the text size.

Fixes: debbugs:8530

doc/lispref/ChangeLog
doc/lispref/display.texi
doc/lispref/text.texi

index bf17010..5bdc171 100644 (file)
@@ -1,3 +1,9 @@
+2011-08-09  Chong Yidong  <cyd@stupidchicken.com>
+
+       * text.texi (Special Properties):
+       * display.texi (Overlay Properties): Note that mouse-face cannot
+       change the text size (Bug#8530).
+
 2011-08-08  Chong Yidong  <cyd@stupidchicken.com>
 
        * os.texi (Time of Day): Remove set-time-zone-rule, and recommend
index 077d099..64a9054 100644 (file)
@@ -1454,7 +1454,10 @@ specify just the foreground color or just the background color.
 @item mouse-face
 @kindex mouse-face @r{(overlay property)}
 This property is used instead of @code{face} when the mouse is within
-the range of the overlay.
+the range of the overlay.  However, Emacs ignores all face attributes
+from this property that alter the text size (e.g.  @code{:height},
+@code{:weight}, and @code{:slant}).  Those attributes are always the
+same as in the unhighlighted text.
 
 @item display
 @kindex display @r{(overlay property)}
index b91afb0..2348e37 100644 (file)
@@ -3015,6 +3015,11 @@ near the character.  For this purpose, ``near'' means that all text
 between the character and where the mouse is have the same
 @code{mouse-face} property value.
 
+Emacs ignores all face attributes from the @code{mouse-face} property
+that alter the text size (e.g. @code{:height}, @code{:weight}, and
+@code{:slant}).  Those attributes are always the same as for the
+unhighlighted text.
+
 @item fontified
 @kindex fontified @r{(text property)}
 This property says whether the text is ready for display.  If