comparison src/xdisp.c @ 39131:544f85c0de57

(string_buffer_position): Use *single_char_property* functions instead of the *single_property* functions.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 05 Sep 2001 07:43:47 +0000
parents ee6a2760c8dc
children 18505c69ffa6
comparison
equal deleted inserted replaced
39130:31fa91a57bb5 39131:544f85c0de57
3225 { 3225 {
3226 prop = Fget_char_property (pos, Qdisplay, Qnil); 3226 prop = Fget_char_property (pos, Qdisplay, Qnil);
3227 if (!NILP (prop) && display_prop_string_p (prop, string)) 3227 if (!NILP (prop) && display_prop_string_p (prop, string))
3228 found = 1; 3228 found = 1;
3229 else 3229 else
3230 pos = Fnext_single_property_change (pos, Qdisplay, Qnil, limit); 3230 pos = Fnext_single_char_property_change (pos, Qdisplay, Qnil, limit);
3231 } 3231 }
3232 3232
3233 if (!found) 3233 if (!found)
3234 { 3234 {
3235 pos = make_number (around_charpos); 3235 pos = make_number (around_charpos);
3238 { 3238 {
3239 prop = Fget_char_property (pos, Qdisplay, Qnil); 3239 prop = Fget_char_property (pos, Qdisplay, Qnil);
3240 if (!NILP (prop) && display_prop_string_p (prop, string)) 3240 if (!NILP (prop) && display_prop_string_p (prop, string))
3241 found = 1; 3241 found = 1;
3242 else 3242 else
3243 pos = Fprevious_single_property_change (pos, Qdisplay, Qnil, 3243 pos = Fprevious_single_char_property_change (pos, Qdisplay, Qnil,
3244 limit); 3244 limit);
3245 } 3245 }
3246 } 3246 }
3247 3247
3248 return found ? XINT (pos) : 0; 3248 return found ? XINT (pos) : 0;
3249 } 3249 }