aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2011-04-24 19:59:37 +0300
committerEli Zaretskii2011-04-24 19:59:37 +0300
commiteb35682e38e8a13f776f61c1c5f53cac425495cc (patch)
tree860fcb814020378c3ef4e0cfe8edf6436a468148 /src
parente2ad650c71e9f0477163532e708e1054452fa34f (diff)
downloademacs-eb35682e38e8a13f776f61c1c5f53cac425495cc.tar.gz
emacs-eb35682e38e8a13f776f61c1c5f53cac425495cc.zip
Minor cleanup in src/xdisp.c.
src/xdisp.c (handle_single_display_spec): Rename the display_replaced_before_p argument into display_replaced_p, to make it consistent with the commentary. Fix typos in the commentary.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index f4dd3492001..f1d195c4544 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,10 @@
12011-04-24 Eli Zaretskii <eliz@gnu.org> 12011-04-24 Eli Zaretskii <eliz@gnu.org>
2 2
3 * xdisp.c (handle_single_display_spec): Rename the
4 display_replaced_before_p argument into display_replaced_p, to
5 make it consistent with the commentary. Fix typos in the
6 commentary.
7
3 * textprop.c (syms_of_textprop): Remove dead code. 8 * textprop.c (syms_of_textprop): Remove dead code.
4 (copy_text_properties): Delete obsolete commentary about an 9 (copy_text_properties): Delete obsolete commentary about an
5 interface that was deleted long ago. Fix typos in the description 10 interface that was deleted long ago. Fix typos in the description
diff --git a/src/xdisp.c b/src/xdisp.c
index 91d1b6ea2e3..219f414c9e8 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3855,7 +3855,7 @@ display_prop_end (struct it *it, Lisp_Object object, struct text_pos start_pos)
3855} 3855}
3856 3856
3857 3857
3858/* Set up IT from a single `display' specification PROP. OBJECT 3858/* Set up IT from a single `display' property specification SPEC. OBJECT
3859 is the object in which the `display' property was found. *POSITION 3859 is the object in which the `display' property was found. *POSITION
3860 is the position at which it was found. DISPLAY_REPLACED_P non-zero 3860 is the position at which it was found. DISPLAY_REPLACED_P non-zero
3861 means that we previously saw a display specification which already 3861 means that we previously saw a display specification which already
@@ -3865,7 +3865,7 @@ display_prop_end (struct it *it, Lisp_Object object, struct text_pos start_pos)
3865 OVERLAY is the overlay this `display' property came from, 3865 OVERLAY is the overlay this `display' property came from,
3866 or nil if it was a text property. 3866 or nil if it was a text property.
3867 3867
3868 If PROP is a `space' or `image' specification, and in some other 3868 If SPEC is a `space' or `image' specification, and in some other
3869 cases too, set *POSITION to the position where the `display' 3869 cases too, set *POSITION to the position where the `display'
3870 property ends. 3870 property ends.
3871 3871
@@ -3875,7 +3875,7 @@ display_prop_end (struct it *it, Lisp_Object object, struct text_pos start_pos)
3875static int 3875static int
3876handle_single_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object, 3876handle_single_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
3877 Lisp_Object overlay, struct text_pos *position, 3877 Lisp_Object overlay, struct text_pos *position,
3878 int display_replaced_before_p) 3878 int display_replaced_p)
3879{ 3879{
3880 Lisp_Object form; 3880 Lisp_Object form;
3881 Lisp_Object location, value; 3881 Lisp_Object location, value;
@@ -4171,7 +4171,7 @@ handle_single_display_spec (struct it *it, Lisp_Object spec, Lisp_Object object,
4171#endif /* not HAVE_WINDOW_SYSTEM */ 4171#endif /* not HAVE_WINDOW_SYSTEM */
4172 || (CONSP (value) && EQ (XCAR (value), Qspace))); 4172 || (CONSP (value) && EQ (XCAR (value), Qspace)));
4173 4173
4174 if (valid_p && !display_replaced_before_p) 4174 if (valid_p && !display_replaced_p)
4175 { 4175 {
4176 /* Save current settings of IT so that we can restore them 4176 /* Save current settings of IT so that we can restore them
4177 when we are finished with the glyph property value. */ 4177 when we are finished with the glyph property value. */