help-emacs-windows
[Top][All Lists]
Advanced

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

Re: [h-e-w] Adding a new-line in replace-string


From: Eli Zaretskii
Subject: Re: [h-e-w] Adding a new-line in replace-string
Date: Wed, 14 Feb 2007 17:27:56 +0200

> Date: Wed, 14 Feb 2007 16:01:27 +0100
> From: Vaclav PEROUTKA <address@hidden>
> 
> I am trying to cut single long HTML line into more short lines. How
> can I add \n in the front of each <h3> label ?

  M-% <h3> RET C-q C-j <h3> RET

> but C-q does not work in the minibuffer.

Yes it does, but the question is what you types after C-q?  To insert
a literal newline, you need to type C-q C-j, as shows above.

> And vice-versa - how can I delete empty lines in some file in NTEmacs by 
> replace-regexp ?

This is better than replace-regexp:

   M-x delete-matching-lines RET ^$ RET




reply via email to

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