Quantcast
Channel: Query-replace stops after first item in while - Emacs Stack Exchange
Browsing latest articles
Browse All 3 View Live

Answer by NickD for Query-replace stops after first item in while

If you try to match the form (while COND BODY) to what you have above, you will see that COND matches(let* ((pair (pop replacement-list)) (to-find (car pair)) (to-replace (cdr pair))) (message "%s %s"...

View Article


Answer by xuchunyang for Query-replace stops after first item in while

You are using while, not dolist, while stops when the TEST condition returns nil, not sure about the value of query-replace, but it definitely does not do what you want.

View Article


Query-replace stops after first item in while

Following this StackOverflow question, I coded this function to clean up text pasted from other sources, such as Google Docs:(defun sanitize-md ()"Replace characters." (interactive "*") (save-excursion...

View Article
Browsing latest articles
Browse All 3 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>