diff options
| author | Dave Love | 1999-11-25 15:26:37 +0000 |
|---|---|---|
| committer | Dave Love | 1999-11-25 15:26:37 +0000 |
| commit | 71a8e74b6e663e9c711563cd49571e501476a62e (patch) | |
| tree | f526d5da116a1aded8f19bb2fa100f8f603d46a3 /src | |
| parent | 3221576ba2f2c074227dc4ca28843e1d8d578db5 (diff) | |
| download | emacs-71a8e74b6e663e9c711563cd49571e501476a62e.tar.gz emacs-71a8e74b6e663e9c711563cd49571e501476a62e.zip | |
(Fnthcdr, Fnreverse): Inline cdr.
(Fmember, Fdelq, Fdelete): Inline car.
(Fy_or_n_p): Doc fix.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/fns.c | 22 |
2 files changed, 22 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6c23fdb3eb3..8866f8447bc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 1999-11-25 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * fns.c (Fnthcdr, Fnreverse): Inline cdr. | ||
| 4 | (Fmember, Fdelq, Fdelete): Inline car. | ||
| 5 | (Fy_or_n_p): Doc fix. | ||
| 6 | |||
| 1 | 1999-11-25 Gerd Moellmann <gerd@gnu.org> | 7 | 1999-11-25 Gerd Moellmann <gerd@gnu.org> |
| 2 | 8 | ||
| 3 | * xfaces.c (set_lface_from_font_name): New parameter may_fail_p. | 9 | * xfaces.c (set_lface_from_font_name): New parameter may_fail_p. |
| @@ -1273,7 +1273,9 @@ DEFUN ("nthcdr", Fnthcdr, Snthcdr, 2, 2, 0, | |||
| 1273 | for (i = 0; i < num && !NILP (list); i++) | 1273 | for (i = 0; i < num && !NILP (list); i++) |
| 1274 | { | 1274 | { |
| 1275 | QUIT; | 1275 | QUIT; |
| 1276 | list = Fcdr (list); | 1276 | if (! CONSP (list)) |
| 1277 | wrong_type_argument (Qlistp, list); | ||
| 1278 | list = XCDR (list); | ||
| 1277 | } | 1279 | } |
| 1278 | return list; | 1280 | return list; |
| 1279 | } | 1281 | } |
| @@ -1316,7 +1318,9 @@ The value is actually the tail of LIST whose car is ELT.") | |||
| 1316 | for (tail = list; !NILP (tail); tail = XCDR (tail)) | 1318 | for (tail = list; !NILP (tail); tail = XCDR (tail)) |
| 1317 | { | 1319 | { |
| 1318 | register Lisp_Object tem; | 1320 | register Lisp_Object tem; |
| 1319 | tem = Fcar (tail); | 1321 | if (! CONSP (tail)) |
| 1322 | wrong_type_argument (Qlistp, list); | ||
| 1323 | tem = XCAR (tail); | ||
| 1320 | if (! NILP (Fequal (elt, tem))) | 1324 | if (! NILP (Fequal (elt, tem))) |
| 1321 | return tail; | 1325 | return tail; |
| 1322 | QUIT; | 1326 | QUIT; |
| @@ -1558,7 +1562,9 @@ to be sure of changing the value of `foo'.") | |||
| 1558 | prev = Qnil; | 1562 | prev = Qnil; |
| 1559 | while (!NILP (tail)) | 1563 | while (!NILP (tail)) |
| 1560 | { | 1564 | { |
| 1561 | tem = Fcar (tail); | 1565 | if (! CONSP (tail)) |
| 1566 | wrong_type_argument (Qlistp, list); | ||
| 1567 | tem = XCAR (tail); | ||
| 1562 | if (EQ (elt, tem)) | 1568 | if (EQ (elt, tem)) |
| 1563 | { | 1569 | { |
| 1564 | if (NILP (prev)) | 1570 | if (NILP (prev)) |
| @@ -1592,7 +1598,9 @@ to be sure of changing the value of `foo'.") | |||
| 1592 | prev = Qnil; | 1598 | prev = Qnil; |
| 1593 | while (!NILP (tail)) | 1599 | while (!NILP (tail)) |
| 1594 | { | 1600 | { |
| 1595 | tem = Fcar (tail); | 1601 | if (! CONSP (tail)) |
| 1602 | wrong_type_argument (Qlistp, list); | ||
| 1603 | tem = XCAR (tail); | ||
| 1596 | if (! NILP (Fequal (elt, tem))) | 1604 | if (! NILP (Fequal (elt, tem))) |
| 1597 | { | 1605 | { |
| 1598 | if (NILP (prev)) | 1606 | if (NILP (prev)) |
| @@ -1622,7 +1630,9 @@ Returns the beginning of the reversed list.") | |||
| 1622 | while (!NILP (tail)) | 1630 | while (!NILP (tail)) |
| 1623 | { | 1631 | { |
| 1624 | QUIT; | 1632 | QUIT; |
| 1625 | next = Fcdr (tail); | 1633 | if (! CONSP (tail)) |
| 1634 | wrong_type_argument (Qlistp, list); | ||
| 1635 | next = XCDR (tail); | ||
| 1626 | Fsetcdr (tail, prev); | 1636 | Fsetcdr (tail, prev); |
| 1627 | prev = tail; | 1637 | prev = tail; |
| 1628 | tail = next; | 1638 | tail = next; |
| @@ -2551,7 +2561,7 @@ Takes one argument, which is the string to display to ask the question.\n\ | |||
| 2551 | It should end in a space; `y-or-n-p' adds `(y or n) ' to it.\n\ | 2561 | It should end in a space; `y-or-n-p' adds `(y or n) ' to it.\n\ |
| 2552 | No confirmation of the answer is requested; a single character is enough.\n\ | 2562 | No confirmation of the answer is requested; a single character is enough.\n\ |
| 2553 | Also accepts Space to mean yes, or Delete to mean no. \(Actually, it uses\n\ | 2563 | Also accepts Space to mean yes, or Delete to mean no. \(Actually, it uses\n\ |
| 2554 | the bindings in query-replace-map; see the documentation of that variable\n\ | 2564 | the bindings in `query-replace-map'; see the documentation of that variable\n\ |
| 2555 | for more information. In this case, the useful bindings are `act', `skip',\n\ | 2565 | for more information. In this case, the useful bindings are `act', `skip',\n\ |
| 2556 | `recenter', and `quit'.\)\n\ | 2566 | `recenter', and `quit'.\)\n\ |
| 2557 | \n\ | 2567 | \n\ |