[plt-scheme] fill-paragraph (M-q) analog in DrScheme?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Fri Nov 17 04:04:33 EST 2006

At Fri, 17 Nov 2006 00:44:01 -0500, Will M Farr wrote:
> This question has been puzzling me for a while: is there an analog of  
> Emacs' fill-paragraph (M-q) command in DrScheme?

No, not currently.

Enclosed is a first attempt (as a module to install with DrScheme's
"Add User-defined Keybindings..." menu item). It's based on SirMail's
M-q, which works well enough for me for plain text. To make it work
better for Scheme comments, the first thing to fix is how it determines
the range of lines to re-flow (i.e., not simply the region delimited by
blank lines).

Or, it may be better to port Emacs code, instead.

Matthew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reflow-para.scm
Type: application/octet-stream
Size: 6915 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20061117/601bd828/attachment.obj>

Posted on the users mailing list.