↧
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 ArticleAnswer 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 ArticleQuery-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