[Top][All Lists]

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

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

From: Olaf Dietrich
Subject: Re: viper-mode: "r <Return>" does not work as expected
Date: 29 Apr 2005 07:28:10 GMT
User-agent: tin/1.7.9-20050415 ("Hellisay") (UNIX) (Linux/2.6.8.olaf10 (i686))

Kevin Rodgers <address@hidden>:
> Olaf Dietrich wrote:
>> 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.)
> 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))

This line is in my viper-cmd.el as well:

| (defun viper-replace-char-subr (com arg)
|   (let ((inhibit-quit t)
|         char)
|     (viper-set-complex-command-for-undo)
|     (or (eq viper-intermediate-command 'viper-repeat)
|         (viper-special-read-and-insert-char))
|       (if (eq char ?\C-m) (setq char ?\n))

viper.el says:

| (defconst viper-version "3.11.1 of September 9, 2001"
|   "The current version of Viper")

> So perhaps you're using an old version of viper --
> what do `M-x locate-library RET viper'

| Library is file ..../emacs/21.4/lisp/emulation/viper.elc

(The path appears correct.)

> and `M-x list-load-path-shadows' tell you?

| No Emacs Lisp load-path shadowings were found

Does this make any sense?


reply via email to

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