Olaf Dietrich wrote:
I tried this in all viper-mode levels (GNU Emacs 21.4.1, i386 Linux):
Inserting a new line break in an existing line by "r <Return>"
(more exactly: replacing the current character by a newline)
does not work; instead, '^M' appears as replacement text.
(The alternative "r C-j" _does_ work, but is not what my fingers
are used to do in vi.)
Is it possible to make "r <Return>" work as well? Is this a known
limitation or bug? (Well, yes, it is known, I found the post
From: [EMAIL PROTECTED]
Subject: Emacs VIPER mode: RETURN shows up as ^M after replace
Newsgroups: gnu.emacs.help
Message-ID: <[EMAIL PROTECTED]>
Date: Mon, 03 Jun 2002 08:29:47 GMT
but I haven't found any suggestions how to change this behavior.)
The version of viper-cmd.el distributed with Emacs 21.3 has this snippet
in the viper-replace-char-subr function:
(if (eq char ?\C-m) (setq char ?\n))
So perhaps you're using an old version of viper -- what do `M-x
locate-library RET viper' and `M-x list-load-path-shadows' tell
you?
--
Kevin Rodgers
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs