Mercurial > emacs
changeset 11173:f1a876b8bf5c
(scheme-indent-sexp): Don't fail when
calculate-scheme-indent returns a one-element list.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 31 Mar 1995 19:23:55 +0000 |
parents | e1ca77e22c12 |
children | b400b109a398 |
files | lisp/progmodes/scheme.el |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/scheme.el Fri Mar 31 19:16:44 1995 +0000 +++ b/lisp/progmodes/scheme.el Fri Mar 31 19:23:55 1995 +0000 @@ -500,7 +500,8 @@ (if (integerp val) (setcar indent-stack (setq this-indent val)) - (setcar indent-stack (- (car (cdr val)))) + (if (cdr val) + (setcar indent-stack (- (car (cdr val))))) (setq this-indent (car val))))) (if (/= (current-column) this-indent) (progn (delete-region bol (point))