rms@PREP.AI.MIT.EDU (Richard M. Stallman) (12/29/86)
It has been suggested that C-o be changed to insert the fill prefix
after the newline that it inserts. Thus, given
** foo <cursor>bar
with `** ' as the fill prefix, typing C-o would produce
** foo <cursor>
** bar
If you like, or dislike, this idea, I would like to hear why.
You can try it out with
(defun open-line (arg)
"Insert a newline and leave point before it.
With arg, inserts that many newlines."
(interactive "*p")
(let ((flag (and (bolp) (not (bobp)))))
(if flag (forward-char -1))
(while (> arg 0)
(save-excursion
(insert ?\n)
(if fill-prefix (insert fill-prefix)))
(setq arg (1- arg)))
(if flag (forward-char 1))))umerin@flab.flab.fujitsu.JUNET (Masanobu UMEDA) (01/10/87)
In article <8612291943.AA25772@EDDIE.MIT.EDU> rms@PREP.AI.MIT.EDU (Richard M. Stallman) writes: >It has been suggested that C-o be changed to insert the fill prefix >after the newline that it inserts. Thus, given > > ** foo <cursor>bar > >with `** ' as the fill prefix, typing C-o would produce > > ** foo <cursor> > ** bar It is not so good idea. Suppose you are editing lisp programs. You may write comments with fill prefix, and then return to lisp codes. If you use C-o in this situation, the fill prefix will be inserted. It seems me better to change the meaning of C-o in text-mode, instead. Masanobu UMEDA umerin@flab.fujitsu.junet