Mercurial > emacs
comparison lisp/indent.el @ 38151:9fb3fc20b9b0
(indent-relative-maybe, indent-relative): Doc fix.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 22 Jun 2001 11:46:52 +0000 |
parents | 160182fbcbbf |
children | ec3016b59706 |
comparison
equal
deleted
inserted
replaced
38150:e8daadee7c3c | 38151:9fb3fc20b9b0 |
---|---|
343 (indent-to column 0)) | 343 (indent-to column 0)) |
344 (forward-line 1)) | 344 (forward-line 1)) |
345 (move-marker end nil)))) | 345 (move-marker end nil)))) |
346 | 346 |
347 (defun indent-relative-maybe () | 347 (defun indent-relative-maybe () |
348 "Indent a new line like previous nonblank line." | 348 "Indent a new line like previous nonblank line. |
349 If the previous nonblank line has no indent points beyond the | |
350 column point starts at, this command does nothing. | |
351 | |
352 See also `indent-relative'." | |
349 (interactive) | 353 (interactive) |
350 (indent-relative t)) | 354 (indent-relative t)) |
351 | 355 |
352 (defun indent-relative (&optional unindented-ok) | 356 (defun indent-relative (&optional unindented-ok) |
353 "Space out to under next indent point in previous nonblank line. | 357 "Space out to under next indent point in previous nonblank line. |
354 An indent point is a non-whitespace character following whitespace. | 358 An indent point is a non-whitespace character following whitespace. |
355 The following line shows the indentation points in this line. | 359 The following line shows the indentation points in this line. |
356 ^ ^ ^ ^ ^ ^ ^ ^ ^ | 360 ^ ^ ^ ^ ^ ^ ^ ^ ^ |
357 If the previous nonblank line has no indent points beyond the | 361 If the previous nonblank line has no indent points beyond the |
358 column point starts at, `tab-to-tab-stop' is done instead." | 362 column point starts at, `tab-to-tab-stop' is done instead, unless |
363 this command is invoked with a numeric argument, in which case it | |
364 does nothing. | |
365 | |
366 See also `indent-relative-maybe'." | |
359 (interactive "P") | 367 (interactive "P") |
360 (if (and abbrev-mode | 368 (if (and abbrev-mode |
361 (eq (char-syntax (preceding-char)) ?w)) | 369 (eq (char-syntax (preceding-char)) ?w)) |
362 (expand-abbrev)) | 370 (expand-abbrev)) |
363 (let ((start-column (current-column)) | 371 (let ((start-column (current-column)) |