help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: viper-mode: "r <Return>" does not work as expected


From: Kevin Rodgers
Subject: Re: viper-mode: "r <Return>" does not work as expected
Date: Thu, 28 Apr 2005 12:44:55 -0600
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

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: address@hidden
  Subject: Emacs VIPER mode: RETURN shows up as ^M after replace
  Newsgroups: gnu.emacs.help
  Message-ID: <address@hidden>
  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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]