Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Emacs 'M-x run-scheme' with MIT/GNU scheme

2 views
Skip to first unread message

EditingMacros

unread,
Mar 26, 2008, 12:47:07 AM3/26/08
to
When I do 'M-x run-scheme' in emacs, it doesn't autoindent
correctly with mit-scheme. If I do 'C-u M-x run-scheme' with guile or
mzscheme, autoindent works perfectly. Any ideas?

Matt Birkholz

unread,
Mar 31, 2008, 12:18:23 AM3/31/08
to

It is the right square bracket in the prompt. Try

(add-hook 'inferior-scheme-mode-hook
(lambda () (setq defun-prompt-regexp "^.*>?")))

Matt Birkholz

unread,
Mar 31, 2008, 4:28:25 AM3/31/08
to
Matt Birkholz <ma...@birkholz.chandler.az.us> writes:

> It is the right square bracket in the prompt. Try
>
> (add-hook 'inferior-scheme-mode-hook
> (lambda () (setq defun-prompt-regexp "^.*>?")))

I meant "^.*>+", not "^.*>?", but the former does not work. It needs
to match any whitespace after the ">". It is a bit loose too.
"^[^>]*>+\\s-*" is probably best, and seems to work. Thus:

(add-hook 'inferior-scheme-mode-hook
(lambda () (setq defun-prompt-regexp "^[^>]*>+\\s-*")))

0 new messages