diff options
| author | Karl Heuer | 1997-10-16 18:07:23 +0000 |
|---|---|---|
| committer | Karl Heuer | 1997-10-16 18:07:23 +0000 |
| commit | 61185f425d232ec8bd41a94312f31e312b1ded41 (patch) | |
| tree | cd1631a6c09dce90dc11e9f942cb6c75314bee64 /lisp | |
| parent | db7f721d26195bec517ddd3213b53c30584136d4 (diff) | |
| download | emacs-61185f425d232ec8bd41a94312f31e312b1ded41.tar.gz emacs-61185f425d232ec8bd41a94312f31e312b1ded41.zip | |
(scheme-let-indent): New arg NORMAL-INDENT.
(scheme-indent-function): Pass normal-indent as 3rd arg
when calling an indentation function.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/scheme.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/progmodes/scheme.el b/lisp/progmodes/scheme.el index c9f9b4cdb0c..0487db7de2b 100644 --- a/lisp/progmodes/scheme.el +++ b/lisp/progmodes/scheme.el | |||
| @@ -356,7 +356,7 @@ if that value is non-nil and inserts the value of | |||
| 356 | (lisp-indent-specform method state | 356 | (lisp-indent-specform method state |
| 357 | indent-point normal-indent)) | 357 | indent-point normal-indent)) |
| 358 | (method | 358 | (method |
| 359 | (funcall method state indent-point))))))) | 359 | (funcall method state indent-point normal-indent))))))) |
| 360 | 360 | ||
| 361 | 361 | ||
| 362 | ;;; Let is different in Scheme | 362 | ;;; Let is different in Scheme |
| @@ -378,11 +378,11 @@ if that value is non-nil and inserts the value of | |||
| 378 | ;; (scheme-indent-specform 2 state indent-point) | 378 | ;; (scheme-indent-specform 2 state indent-point) |
| 379 | ;; (scheme-indent-specform 1 state indent-point))) | 379 | ;; (scheme-indent-specform 1 state indent-point))) |
| 380 | 380 | ||
| 381 | (defun scheme-let-indent (state indent-point) | 381 | (defun scheme-let-indent (state indent-point normal-indent) |
| 382 | (skip-chars-forward " \t") | 382 | (skip-chars-forward " \t") |
| 383 | (if (looking-at "[-a-zA-Z0-9+*/?!@$%^&_:~]") | 383 | (if (looking-at "[-a-zA-Z0-9+*/?!@$%^&_:~]") |
| 384 | (lisp-indent-specform 2 state indent-point (current-column)) | 384 | (lisp-indent-specform 2 state indent-point normal-indent) |
| 385 | (lisp-indent-specform 1 state indent-point (current-column)))) | 385 | (lisp-indent-specform 1 state indent-point normal-indent))) |
| 386 | 386 | ||
| 387 | ;; (put 'begin 'scheme-indent-function 0), say, causes begin to be indented | 387 | ;; (put 'begin 'scheme-indent-function 0), say, causes begin to be indented |
| 388 | ;; like defun if the first form is placed on the next line, otherwise | 388 | ;; like defun if the first form is placed on the next line, otherwise |