[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using a newline character in the newstring in M-x replace-regexp
From: |
harven |
Subject: |
Re: Using a newline character in the newstring in M-x replace-regexp |
Date: |
Sat, 16 Aug 2008 07:00:57 -0700 (PDT) |
User-agent: |
G2/1.0 |
> It works for me and should work in any emacs 22. For interactive use,
> i think C-q C-j is actually the only way to insert newlines.
C-o or C-012 RET also work for a query-replace.
C-o does not work by default for an incremental search.
The following code adds this shortcut to the incremental commands.
(define-key isearch-mode-map "\C-o"
(lambda () (interactive)
(isearch-process-search-char ?\n)))