How to display new line character (^J) in emacs replace query
Fresh3 days ago
Mar 15, 20261315 viewsConfidence Score0%
0%
Problem
Say I want to replace all the new lines in my emacs buffer with the character (wait for the -1, read the rest! :) ). I know I can type . It works fine. My problem is that the new line character, i.e. is not displayed in the replace query, I just get a new line in the query string. Instead if I try …
Error Output
k
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to display new line character (^J) in emacs replace query
Low Risk
I don't think Emacs's behavior can be changed in the way you want. Have you thought about using regexp-replace instead? That way you could see your new lines as .
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix