diff options
| author | Erik Naggum | 1996-01-09 00:32:30 +0000 |
|---|---|---|
| committer | Erik Naggum | 1996-01-09 00:32:30 +0000 |
| commit | 04c9843223efdb067639abd19dd881cbc4a14d3e (patch) | |
| tree | ced39a0f3260b2380751fda50b63dc0790c0a181 /src | |
| parent | 735eeca3172245f71acaf0534cec6261956962f5 (diff) | |
| download | emacs-04c9843223efdb067639abd19dd881cbc4a14d3e.tar.gz emacs-04c9843223efdb067639abd19dd881cbc4a14d3e.zip | |
(Findent_to): Harmonize arguments with documentation.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/indent.c b/src/indent.c index 3188c00fdb7..6b0fd786774 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -353,23 +353,23 @@ string_display_width (string, beg, end) | |||
| 353 | 353 | ||
| 354 | DEFUN ("indent-to", Findent_to, Sindent_to, 1, 2, "NIndent to column: ", | 354 | DEFUN ("indent-to", Findent_to, Sindent_to, 1, 2, "NIndent to column: ", |
| 355 | "Indent from point with tabs and spaces until COLUMN is reached.\n\ | 355 | "Indent from point with tabs and spaces until COLUMN is reached.\n\ |
| 356 | Optional second argument MIN says always do at least MIN spaces\n\ | 356 | Optional second argument MININUM says always do at least MININUM spaces\n\ |
| 357 | even if that goes past COLUMN; by default, MIN is zero.") | 357 | even if that goes past COLUMN; by default, MININUM is zero.") |
| 358 | (col, minimum) | 358 | (column, minimum) |
| 359 | Lisp_Object col, minimum; | 359 | Lisp_Object column, minimum; |
| 360 | { | 360 | { |
| 361 | int mincol; | 361 | int mincol; |
| 362 | register int fromcol; | 362 | register int fromcol; |
| 363 | register int tab_width = XINT (current_buffer->tab_width); | 363 | register int tab_width = XINT (current_buffer->tab_width); |
| 364 | 364 | ||
| 365 | CHECK_NUMBER (col, 0); | 365 | CHECK_NUMBER (column, 0); |
| 366 | if (NILP (minimum)) | 366 | if (NILP (minimum)) |
| 367 | XSETFASTINT (minimum, 0); | 367 | XSETFASTINT (minimum, 0); |
| 368 | CHECK_NUMBER (minimum, 1); | 368 | CHECK_NUMBER (minimum, 1); |
| 369 | 369 | ||
| 370 | fromcol = current_column (); | 370 | fromcol = current_column (); |
| 371 | mincol = fromcol + XINT (minimum); | 371 | mincol = fromcol + XINT (minimum); |
| 372 | if (mincol < XINT (col)) mincol = XINT (col); | 372 | if (mincol < XINT (column)) mincol = XINT (column); |
| 373 | 373 | ||
| 374 | if (fromcol == mincol) | 374 | if (fromcol == mincol) |
| 375 | return make_number (mincol); | 375 | return make_number (mincol); |
| @@ -388,15 +388,15 @@ even if that goes past COLUMN; by default, MIN is zero.") | |||
| 388 | } | 388 | } |
| 389 | } | 389 | } |
| 390 | 390 | ||
| 391 | XSETFASTINT (col, mincol - fromcol); | 391 | XSETFASTINT (column, mincol - fromcol); |
| 392 | Finsert_char (make_number (' '), col, Qt); | 392 | Finsert_char (make_number (' '), column, Qt); |
| 393 | 393 | ||
| 394 | last_known_column = mincol; | 394 | last_known_column = mincol; |
| 395 | last_known_column_point = point; | 395 | last_known_column_point = point; |
| 396 | last_known_column_modified = MODIFF; | 396 | last_known_column_modified = MODIFF; |
| 397 | 397 | ||
| 398 | XSETINT (col, mincol); | 398 | XSETINT (column, mincol); |
| 399 | return col; | 399 | return column; |
| 400 | } | 400 | } |
| 401 | 401 | ||
| 402 | 402 | ||