[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: restore region after replace-string
From: |
LanX |
Subject: |
Re: restore region after replace-string |
Date: |
Sun, 16 Jan 2011 10:24:46 -0800 (PST) |
User-agent: |
G2/1.0 |
Hi Paul
I dunno why your approaches aren't working, and you seem to be much
more proficient with elisp than me. :)
Anyway Le's suggestion works flawlessly for me:
(defun rs ()
(interactive)
(let (deactivate-mark)
(save-excursion (call-interactively 'replace-string))
(exchange-point-and-mark)
(exchange-point-and-mark))
)
HTH
Rolf