Kevin Rodgers <[EMAIL PROTECTED]>: > 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? Thanks, Olaf _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs