Vegard Øye <[email protected]> writes: > On 2011-09-23 15:28 +0200, Wolfgang Jenkner wrote: > >> I noticed this as well and tried to implement the behaviour specified in >> >> http://pubs.opengroup.org/onlinepubs/9699919799/utilities/vi.html > > Thanks for the patch, applied in commit 1cf75ed with some modifications > (I moved the \r -> \n stuff into `evil-read-key').
Thanks, but ... Wolfgang From d24096579015c5b66d55c492ca2cdafe2bb0ee6e Mon Sep 17 00:00:00 2001 From: Wolfgang Jenkner <[email protected]> Date: Mon, 26 Sep 2011 17:06:58 +0200 Subject: [PATCH] Fix rearrangement of the last submission. Make <return> quotable again. By the way, <newline> (= <linefeed> = C-j) is never quoted, because this is consistent with both POSIX vi(1p) and the usual emacs behavior. On the other hand, on typing C-vC-j vim inserts a NULL character, which looks like a bug. --- evil-compatibility.el | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/evil-compatibility.el b/evil-compatibility.el index 8779181..7d7740f 100644 --- a/evil-compatibility.el +++ b/evil-compatibility.el @@ -34,10 +34,10 @@ Translates it according to the input method." 'self-insert-command) t) (use-global-map new-global-map) (setq char (aref (read-key-sequence prompt nil t) 0)) - (when (memq char '(?\C-q ?\C-v)) - (setq char (read-quoted-char))) - (or (cdr (assq char '((?\r . ?\n)))) - char)) + (if (memq char '(?\C-q ?\C-v)) + (read-quoted-char) + (or (cdr (assq char '((?\r . ?\n)))) + char))) (use-global-map old-global-map)))) ;; `make-char-table' requires this property in Emacs 22 -- 1.7.6.1 _______________________________________________ implementations-list mailing list [email protected] https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
