Subject: 23.1; ENTER in mapped to ^M in search but to ^J in editor

From: <[email-masked]>
Date: Wed, 18 Nov 2009 19:06:10 +0100

open a new buffer
enter hello
M-x string-replace RET h RET h c-q RET RET
you'll see  "h^Mello"

this inconsistency makes no sense

In GNU Emacs 23.1.1 (i686-pc-linux-gnu)
 of 2009-10-13 on andariel
configured using `configure  '--prefix=/usr' '--without-x' 'CFLAGS=-march=prescott -O2 -pipe -fomit-frame-pointer''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  show-paren-mode: t
  global-linum-mode: t
  linum-mode: t
  xterm-mouse-mode: t
  mouse-wheel-mode: t
  iswitchb-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-s C-q C-j RET RET RET RET C-s C-q RET C-c ESC x ESC 
x r e p o TAB r TAB RET

Recent messages:
("emacs")
Loading mouse...done
Loading /usr/share/emacs/site-lisp/themes/color-theme-example.el (source)...done
Loading /usr/share/emacs/site-lisp/themes/color-theme-example.elc...done
Loading /usr/share/emacs/site-lisp/themes/color-theme-library.el (source)...done
Loading /usr/share/emacs/site-lisp/themes/color-theme-library.elc...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...