emacs-ess/ESS — pull request #101 by DarwinAwardWinner (2014-07-15 18:17:18+00:00)
Title: Better newline-and-indent for ess-roxy

This implements more intelligent behavior for the ess-roxy advice to "newline-and-indent". The two changes in behavior are:

1. If point is at the very beginning of the first line of an roxy entry, the advice doesn't activate, which means that pressing enter will simply insert a blank line before the roxy entry instead of inserting a new line with a roxy comment at the beginning of the entry.
2. If point is inside the roxy comment (e.g. between the "#" and the "'"), then pressing enter no longer breaks the existing roxy comment on the current line by inserting the newline and new roxy comment inside of it. Instead, it moves point to the end of the roxy comment on the current line and then inserts the newline.