[R] emacs: reformat \items paragraph in .Rd

Hans-Peter Suter gchappi at gmail.com
Sat Mar 27 19:30:02 CET 2010

(emacs newb here)

After having made some changes in an \items paragraph of \arguments
the lines are no longer nicely wrapped. I was looking for a command to
reindent/rewrap/reformat the whole \items paragraph but couldn't find

The only way, I found, was to go to the end of the first line, do
'c-j'  (or RET) which wraps *this* line nicely, but now there is a
hard line-break to the next line. So I go back with 'c-p', delete the
gap to the next line with 'c-k' and some 'c-d' s. Then got to the end
of this line and start again with 'c-j', ...

There certainly must be some easier way to reformat a paragraph?
(I tried 'm-c-q' (not defined) and 'm-c-\' (but was not able to input
the backslash); I'm on GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600).

Thanks for your help!


More information about the R-help mailing list