diff options
| author | Pavel Janík | 2001-11-02 20:46:55 +0000 |
|---|---|---|
| committer | Pavel Janík | 2001-11-02 20:46:55 +0000 |
| commit | b78265036088d5d0eac2a03b929adb50aa59b45c (patch) | |
| tree | de99fe733144deb926fd31ee7bdff95cb1bc5073 /src/cmds.c | |
| parent | 00a2cef7d11a1b193891eb3d28274ef7fc7c3fe4 (diff) | |
| download | emacs-b78265036088d5d0eac2a03b929adb50aa59b45c.tar.gz emacs-b78265036088d5d0eac2a03b929adb50aa59b45c.zip | |
Update usage of CHECK_ macros (remove unused second argument).
Diffstat (limited to 'src/cmds.c')
| -rw-r--r-- | src/cmds.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/cmds.c b/src/cmds.c index 791b410eb5b..36e1c8944ef 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -48,7 +48,7 @@ DEFUN ("forward-point", Fforward_point, Sforward_point, 1, 1, 0, | |||
| 48 | (n) | 48 | (n) |
| 49 | Lisp_Object n; | 49 | Lisp_Object n; |
| 50 | { | 50 | { |
| 51 | CHECK_NUMBER (n, 0); | 51 | CHECK_NUMBER (n); |
| 52 | 52 | ||
| 53 | return make_number (PT + XINT (n)); | 53 | return make_number (PT + XINT (n)); |
| 54 | } | 54 | } |
| @@ -62,7 +62,7 @@ On reaching end of buffer, stop and signal error.") | |||
| 62 | if (NILP (n)) | 62 | if (NILP (n)) |
| 63 | XSETFASTINT (n, 1); | 63 | XSETFASTINT (n, 1); |
| 64 | else | 64 | else |
| 65 | CHECK_NUMBER (n, 0); | 65 | CHECK_NUMBER (n); |
| 66 | 66 | ||
| 67 | /* This used to just set point to point + XINT (n), and then check | 67 | /* This used to just set point to point + XINT (n), and then check |
| 68 | to see if it was within boundaries. But now that SET_PT can | 68 | to see if it was within boundaries. But now that SET_PT can |
| @@ -98,7 +98,7 @@ On attempt to pass beginning or end of buffer, stop and signal error.") | |||
| 98 | if (NILP (n)) | 98 | if (NILP (n)) |
| 99 | XSETFASTINT (n, 1); | 99 | XSETFASTINT (n, 1); |
| 100 | else | 100 | else |
| 101 | CHECK_NUMBER (n, 0); | 101 | CHECK_NUMBER (n); |
| 102 | 102 | ||
| 103 | XSETINT (n, - XINT (n)); | 103 | XSETINT (n, - XINT (n)); |
| 104 | return Fforward_char (n); | 104 | return Fforward_char (n); |
| @@ -123,7 +123,7 @@ With positive N, a non-empty line at the end counts as one line\n\ | |||
| 123 | count = 1; | 123 | count = 1; |
| 124 | else | 124 | else |
| 125 | { | 125 | { |
| 126 | CHECK_NUMBER (n, 0); | 126 | CHECK_NUMBER (n); |
| 127 | count = XINT (n); | 127 | count = XINT (n); |
| 128 | } | 128 | } |
| 129 | 129 | ||
| @@ -168,7 +168,7 @@ boundaries. */) | |||
| 168 | if (NILP (n)) | 168 | if (NILP (n)) |
| 169 | XSETFASTINT (n, 1); | 169 | XSETFASTINT (n, 1); |
| 170 | else | 170 | else |
| 171 | CHECK_NUMBER (n, 0); | 171 | CHECK_NUMBER (n); |
| 172 | 172 | ||
| 173 | SET_PT (XINT (Fline_beginning_position (n))); | 173 | SET_PT (XINT (Fline_beginning_position (n))); |
| 174 | 174 | ||
| @@ -190,7 +190,7 @@ boundaries bind `inhibit-field-text-motion' to t. */) | |||
| 190 | if (NILP (n)) | 190 | if (NILP (n)) |
| 191 | XSETFASTINT (n, 1); | 191 | XSETFASTINT (n, 1); |
| 192 | else | 192 | else |
| 193 | CHECK_NUMBER (n, 0); | 193 | CHECK_NUMBER (n); |
| 194 | 194 | ||
| 195 | SET_PT (XINT (Fline_end_position (n))); | 195 | SET_PT (XINT (Fline_end_position (n))); |
| 196 | 196 | ||
| @@ -207,7 +207,7 @@ N was explicitly specified.") | |||
| 207 | { | 207 | { |
| 208 | int pos; | 208 | int pos; |
| 209 | 209 | ||
| 210 | CHECK_NUMBER (n, 0); | 210 | CHECK_NUMBER (n); |
| 211 | 211 | ||
| 212 | pos = PT + XINT (n); | 212 | pos = PT + XINT (n); |
| 213 | if (NILP (killflag)) | 213 | if (NILP (killflag)) |
| @@ -247,7 +247,7 @@ N was explicitly specified.") | |||
| 247 | int deleted_special = 0; | 247 | int deleted_special = 0; |
| 248 | int pos, pos_byte, i; | 248 | int pos, pos_byte, i; |
| 249 | 249 | ||
| 250 | CHECK_NUMBER (n, 0); | 250 | CHECK_NUMBER (n); |
| 251 | 251 | ||
| 252 | /* See if we are about to delete a tab or newline backwards. */ | 252 | /* See if we are about to delete a tab or newline backwards. */ |
| 253 | pos = PT; | 253 | pos = PT; |
| @@ -294,7 +294,7 @@ Whichever character you type to run this command is inserted.") | |||
| 294 | { | 294 | { |
| 295 | int character = XINT (last_command_char); | 295 | int character = XINT (last_command_char); |
| 296 | 296 | ||
| 297 | CHECK_NUMBER (n, 0); | 297 | CHECK_NUMBER (n); |
| 298 | 298 | ||
| 299 | /* Barf if the key that invoked this was not a character. */ | 299 | /* Barf if the key that invoked this was not a character. */ |
| 300 | if (!INTEGERP (last_command_char)) | 300 | if (!INTEGERP (last_command_char)) |