diff options
| author | Stefan Monnier | 2007-10-16 16:28:39 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2007-10-16 16:28:39 +0000 |
| commit | 9beb8baa1f1b59f8e76df62e95647c39acbac5e7 (patch) | |
| tree | d01390c83402aff49ddf14e282a9edb9bc983ba3 /src/fns.c | |
| parent | d3f41ff55563551d241407ef640c9984156f87b8 (diff) | |
| download | emacs-9beb8baa1f1b59f8e76df62e95647c39acbac5e7.tar.gz emacs-9beb8baa1f1b59f8e76df62e95647c39acbac5e7.zip | |
* xfns.c (Fx_create_frame, Fx_display_list):
* window.c (window_fixed_size_p, enlarge_window, shrink_window_lowest_first):
* macterm.c (init_font_name_table):
* macfns.c (Fx_create_frame, Fx_display_list):
* lread.c (close_load_descs):
* keyboard.c (read_char_x_menu_prompt):
* fns.c (Fmember, Fmemql, Fdelete, Fset_char_table_parent):
* coding.c (code_convert_region_unwind): Test the type of an object
rather than just !NILP before extracting data from it.
Diffstat (limited to 'src/fns.c')
| -rw-r--r-- | src/fns.c | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -1451,7 +1451,7 @@ The value is actually the tail of LIST whose car is ELT. */) | |||
| 1451 | Lisp_Object list; | 1451 | Lisp_Object list; |
| 1452 | { | 1452 | { |
| 1453 | register Lisp_Object tail; | 1453 | register Lisp_Object tail; |
| 1454 | for (tail = list; !NILP (tail); tail = XCDR (tail)) | 1454 | for (tail = list; CONSP (tail); tail = XCDR (tail)) |
| 1455 | { | 1455 | { |
| 1456 | register Lisp_Object tem; | 1456 | register Lisp_Object tem; |
| 1457 | CHECK_LIST_CONS (tail, list); | 1457 | CHECK_LIST_CONS (tail, list); |
| @@ -1502,7 +1502,7 @@ The value is actually the tail of LIST whose car is ELT. */) | |||
| 1502 | if (!FLOATP (elt)) | 1502 | if (!FLOATP (elt)) |
| 1503 | return Fmemq (elt, list); | 1503 | return Fmemq (elt, list); |
| 1504 | 1504 | ||
| 1505 | for (tail = list; !NILP (tail); tail = XCDR (tail)) | 1505 | for (tail = list; CONSP (tail); tail = XCDR (tail)) |
| 1506 | { | 1506 | { |
| 1507 | register Lisp_Object tem; | 1507 | register Lisp_Object tem; |
| 1508 | CHECK_LIST_CONS (tail, list); | 1508 | CHECK_LIST_CONS (tail, list); |
| @@ -1806,7 +1806,7 @@ to be sure of changing the value of `foo'. */) | |||
| 1806 | { | 1806 | { |
| 1807 | Lisp_Object tail, prev; | 1807 | Lisp_Object tail, prev; |
| 1808 | 1808 | ||
| 1809 | for (tail = seq, prev = Qnil; !NILP (tail); tail = XCDR (tail)) | 1809 | for (tail = seq, prev = Qnil; CONSP (tail); tail = XCDR (tail)) |
| 1810 | { | 1810 | { |
| 1811 | CHECK_LIST_CONS (tail, seq); | 1811 | CHECK_LIST_CONS (tail, seq); |
| 1812 | 1812 | ||
| @@ -2440,7 +2440,8 @@ Return PARENT. PARENT must be either nil or another char-table. */) | |||
| 2440 | { | 2440 | { |
| 2441 | CHECK_CHAR_TABLE (parent); | 2441 | CHECK_CHAR_TABLE (parent); |
| 2442 | 2442 | ||
| 2443 | for (temp = parent; !NILP (temp); temp = XCHAR_TABLE (temp)->parent) | 2443 | for (temp = parent; CHAR_TABLE_P (temp); |
| 2444 | temp = XCHAR_TABLE (temp)->parent) | ||
| 2444 | if (EQ (temp, char_table)) | 2445 | if (EQ (temp, char_table)) |
| 2445 | error ("Attempt to make a chartable be its own parent"); | 2446 | error ("Attempt to make a chartable be its own parent"); |
| 2446 | } | 2447 | } |