diff options
| author | Gerd Moellmann | 2000-09-09 13:14:56 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-09 13:14:56 +0000 |
| commit | 28e6fb6637c2a7249364a299cb07f0fc33d1b1ec (patch) | |
| tree | 595ddfcdbe6a0d6f2fbafe15d62149b182bf6264 /src | |
| parent | 7f8b6551debdd35a316e4fe1caae843b0bc3a562 (diff) | |
| download | emacs-28e6fb6637c2a7249364a299cb07f0fc33d1b1ec.tar.gz emacs-28e6fb6637c2a7249364a299cb07f0fc33d1b1ec.zip | |
(CYCLE_CHECK): Don't use the Lisp_Object returned
by Fmemq in a condition.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xfaces.c | 20 |
2 files changed, 15 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b337d3a1b3f..1c4ef8951a8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2000-09-09 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned | ||
| 4 | by Fmemq in a condition. | ||
| 5 | |||
| 1 | 2000-09-08 Stefan Monnier <monnier@cs.yale.edu> | 6 | 2000-09-08 Stefan Monnier <monnier@cs.yale.edu> |
| 2 | 7 | ||
| 3 | * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko. | 8 | * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko. |
diff --git a/src/xfaces.c b/src/xfaces.c index 22530657c18..b3856127d9d 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -3195,16 +3195,16 @@ merge_face_vectors (f, from, to, cycle_check) | |||
| 3195 | CHECK is evaluated multiple times, EL and SUSPICIOUS 0 or 1 times, so | 3195 | CHECK is evaluated multiple times, EL and SUSPICIOUS 0 or 1 times, so |
| 3196 | the caller should make sure that's ok. */ | 3196 | the caller should make sure that's ok. */ |
| 3197 | 3197 | ||
| 3198 | #define CYCLE_CHECK(check, el, suspicious) \ | 3198 | #define CYCLE_CHECK(check, el, suspicious) \ |
| 3199 | (NILP (check) \ | 3199 | (NILP (check) \ |
| 3200 | ? make_number (0) \ | 3200 | ? make_number (0) \ |
| 3201 | : INTEGERP (check) \ | 3201 | : (INTEGERP (check) \ |
| 3202 | ? (XFASTINT (check) < (suspicious) \ | 3202 | ? (XFASTINT (check) < (suspicious) \ |
| 3203 | ? make_number (XFASTINT (check) + 1) \ | 3203 | ? make_number (XFASTINT (check) + 1) \ |
| 3204 | : Fcons (el, Qnil)) \ | 3204 | : Fcons (el, Qnil)) \ |
| 3205 | : Fmemq ((el), (check)) \ | 3205 | : (!NILP (Fmemq ((el), (check))) \ |
| 3206 | ? Qnil \ | 3206 | ? Qnil \ |
| 3207 | : Fcons ((el), (check))) | 3207 | : Fcons ((el), (check))))) |
| 3208 | 3208 | ||
| 3209 | 3209 | ||
| 3210 | /* Merge face attributes from the face on frame F whose name is | 3210 | /* Merge face attributes from the face on frame F whose name is |