diff options
| author | Miles Bader | 2007-10-19 00:00:21 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-10-19 00:00:21 +0000 |
| commit | 9c8020a8df03dc67a56d7df15664dcf7ace54bf0 (patch) | |
| tree | 09b0646addff3c39f9e96ba89c04bdcc038a87a7 /src/textprop.c | |
| parent | dfc3268dfa133a2e0a677f1af7c1ee548eae065d (diff) | |
| parent | bd3164743080f3eb5fc316aca7cc5322ca58fe33 (diff) | |
| download | emacs-9c8020a8df03dc67a56d7df15664dcf7ace54bf0.tar.gz emacs-9c8020a8df03dc67a56d7df15664dcf7ace54bf0.zip | |
Merge from emacs--devo--0
Patches applied:
* emacs--devo--0 (patch 890-898)
- Update from CVS
- Merge from emacs--rel--22
* emacs--rel--22 (patch 122-128)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 257-258)
- Merge from emacs--rel--22
- Update from CVS
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-270
Diffstat (limited to 'src/textprop.c')
| -rw-r--r-- | src/textprop.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/src/textprop.c b/src/textprop.c index 8ce5656e5a2..e8ba1d87afc 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -201,9 +201,9 @@ validate_plist (list) | |||
| 201 | { | 201 | { |
| 202 | register int i; | 202 | register int i; |
| 203 | register Lisp_Object tail; | 203 | register Lisp_Object tail; |
| 204 | for (i = 0, tail = list; !NILP (tail); i++) | 204 | for (i = 0, tail = list; CONSP (tail); i++) |
| 205 | { | 205 | { |
| 206 | tail = Fcdr (tail); | 206 | tail = XCDR (tail); |
| 207 | QUIT; | 207 | QUIT; |
| 208 | } | 208 | } |
| 209 | if (i & 1) | 209 | if (i & 1) |
| @@ -226,18 +226,18 @@ interval_has_all_properties (plist, i) | |||
| 226 | register int found; | 226 | register int found; |
| 227 | 227 | ||
| 228 | /* Go through each element of PLIST. */ | 228 | /* Go through each element of PLIST. */ |
| 229 | for (tail1 = plist; ! NILP (tail1); tail1 = Fcdr (Fcdr (tail1))) | 229 | for (tail1 = plist; CONSP (tail1); tail1 = Fcdr (XCDR (tail1))) |
| 230 | { | 230 | { |
| 231 | sym1 = Fcar (tail1); | 231 | sym1 = XCAR (tail1); |
| 232 | found = 0; | 232 | found = 0; |
| 233 | 233 | ||
| 234 | /* Go through I's plist, looking for sym1 */ | 234 | /* Go through I's plist, looking for sym1 */ |
| 235 | for (tail2 = i->plist; ! NILP (tail2); tail2 = Fcdr (Fcdr (tail2))) | 235 | for (tail2 = i->plist; CONSP (tail2); tail2 = Fcdr (XCDR (tail2))) |
| 236 | if (EQ (sym1, Fcar (tail2))) | 236 | if (EQ (sym1, XCAR (tail2))) |
| 237 | { | 237 | { |
| 238 | /* Found the same property on both lists. If the | 238 | /* Found the same property on both lists. If the |
| 239 | values are unequal, return zero. */ | 239 | values are unequal, return zero. */ |
| 240 | if (! EQ (Fcar (Fcdr (tail1)), Fcar (Fcdr (tail2)))) | 240 | if (! EQ (Fcar (XCDR (tail1)), Fcar (XCDR (tail2)))) |
| 241 | return 0; | 241 | return 0; |
| 242 | 242 | ||
| 243 | /* Property has same value on both lists; go to next one. */ | 243 | /* Property has same value on both lists; go to next one. */ |
| @@ -263,13 +263,13 @@ interval_has_some_properties (plist, i) | |||
| 263 | register Lisp_Object tail1, tail2, sym; | 263 | register Lisp_Object tail1, tail2, sym; |
| 264 | 264 | ||
| 265 | /* Go through each element of PLIST. */ | 265 | /* Go through each element of PLIST. */ |
| 266 | for (tail1 = plist; ! NILP (tail1); tail1 = Fcdr (Fcdr (tail1))) | 266 | for (tail1 = plist; CONSP (tail1); tail1 = Fcdr (XCDR (tail1))) |
| 267 | { | 267 | { |
| 268 | sym = Fcar (tail1); | 268 | sym = XCAR (tail1); |
| 269 | 269 | ||
| 270 | /* Go through i's plist, looking for tail1 */ | 270 | /* Go through i's plist, looking for tail1 */ |
| 271 | for (tail2 = i->plist; ! NILP (tail2); tail2 = Fcdr (Fcdr (tail2))) | 271 | for (tail2 = i->plist; CONSP (tail2); tail2 = Fcdr (XCDR (tail2))) |
| 272 | if (EQ (sym, Fcar (tail2))) | 272 | if (EQ (sym, XCAR (tail2))) |
| 273 | return 1; | 273 | return 1; |
| 274 | } | 274 | } |
| 275 | 275 | ||
| @@ -287,12 +287,12 @@ interval_has_some_properties_list (list, i) | |||
| 287 | register Lisp_Object tail1, tail2, sym; | 287 | register Lisp_Object tail1, tail2, sym; |
| 288 | 288 | ||
| 289 | /* Go through each element of LIST. */ | 289 | /* Go through each element of LIST. */ |
| 290 | for (tail1 = list; ! NILP (tail1); tail1 = XCDR (tail1)) | 290 | for (tail1 = list; CONSP (tail1); tail1 = XCDR (tail1)) |
| 291 | { | 291 | { |
| 292 | sym = Fcar (tail1); | 292 | sym = Fcar (tail1); |
| 293 | 293 | ||
| 294 | /* Go through i's plist, looking for tail1 */ | 294 | /* Go through i's plist, looking for tail1 */ |
| 295 | for (tail2 = i->plist; ! NILP (tail2); tail2 = XCDR (XCDR (tail2))) | 295 | for (tail2 = i->plist; CONSP (tail2); tail2 = XCDR (XCDR (tail2))) |
| 296 | if (EQ (sym, XCAR (tail2))) | 296 | if (EQ (sym, XCAR (tail2))) |
| 297 | return 1; | 297 | return 1; |
| 298 | } | 298 | } |
| @@ -391,21 +391,21 @@ add_properties (plist, i, object) | |||
| 391 | GCPRO3 (tail1, sym1, val1); | 391 | GCPRO3 (tail1, sym1, val1); |
| 392 | 392 | ||
| 393 | /* Go through each element of PLIST. */ | 393 | /* Go through each element of PLIST. */ |
| 394 | for (tail1 = plist; ! NILP (tail1); tail1 = Fcdr (Fcdr (tail1))) | 394 | for (tail1 = plist; CONSP (tail1); tail1 = Fcdr (XCDR (tail1))) |
| 395 | { | 395 | { |
| 396 | sym1 = Fcar (tail1); | 396 | sym1 = XCAR (tail1); |
| 397 | val1 = Fcar (Fcdr (tail1)); | 397 | val1 = Fcar (XCDR (tail1)); |
| 398 | found = 0; | 398 | found = 0; |
| 399 | 399 | ||
| 400 | /* Go through I's plist, looking for sym1 */ | 400 | /* Go through I's plist, looking for sym1 */ |
| 401 | for (tail2 = i->plist; ! NILP (tail2); tail2 = Fcdr (Fcdr (tail2))) | 401 | for (tail2 = i->plist; CONSP (tail2); tail2 = Fcdr (XCDR (tail2))) |
| 402 | if (EQ (sym1, Fcar (tail2))) | 402 | if (EQ (sym1, XCAR (tail2))) |
| 403 | { | 403 | { |
| 404 | /* No need to gcpro, because tail2 protects this | 404 | /* No need to gcpro, because tail2 protects this |
| 405 | and it must be a cons cell (we get an error otherwise). */ | 405 | and it must be a cons cell (we get an error otherwise). */ |
| 406 | register Lisp_Object this_cdr; | 406 | register Lisp_Object this_cdr; |
| 407 | 407 | ||
| 408 | this_cdr = Fcdr (tail2); | 408 | this_cdr = XCDR (tail2); |
| 409 | /* Found the property. Now check its value. */ | 409 | /* Found the property. Now check its value. */ |
| 410 | found = 1; | 410 | found = 1; |
| 411 | 411 | ||
| @@ -1965,10 +1965,10 @@ text_property_list (object, start, end, prop) | |||
| 1965 | plist = i->plist; | 1965 | plist = i->plist; |
| 1966 | 1966 | ||
| 1967 | if (!NILP (prop)) | 1967 | if (!NILP (prop)) |
| 1968 | for (; !NILP (plist); plist = Fcdr (Fcdr (plist))) | 1968 | for (; CONSP (plist); plist = Fcdr (XCDR (plist))) |
| 1969 | if (EQ (Fcar (plist), prop)) | 1969 | if (EQ (XCAR (plist), prop)) |
| 1970 | { | 1970 | { |
| 1971 | plist = Fcons (prop, Fcons (Fcar (Fcdr (plist)), Qnil)); | 1971 | plist = Fcons (prop, Fcons (Fcar (XCDR (plist)), Qnil)); |
| 1972 | break; | 1972 | break; |
| 1973 | } | 1973 | } |
| 1974 | 1974 | ||