<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Evaluating Lisp Forms in Regular Expressions</title>
	<atom:link href="http://www.masteringemacs.org/articles/2013/01/25/evaluating-lisp-forms-regular-expressions/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masteringemacs.org/articles/2013/01/25/evaluating-lisp-forms-regular-expressions/</link>
	<description>a blog about mastering the world&#039;s best text editor</description>
	<lastBuildDate>Fri, 17 May 2013 21:26:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Swapping with replace-regexp &#124; Irreal</title>
		<link>http://www.masteringemacs.org/articles/2013/01/25/evaluating-lisp-forms-regular-expressions/#comment-21997</link>
		<dc:creator>Swapping with replace-regexp &#124; Irreal</dc:creator>
		<pubDate>Thu, 31 Jan 2013 10:23:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=650#comment-21997</guid>
		<description><![CDATA[[...] Irreal readers have probably already seen Mickey&#8217;s post on Evaluating Lisp Forms in Regular Expressions, but he mentions one trick that is too good to miss so I&#8217;m going to repeat [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Irreal readers have probably already seen Mickey&#8217;s post on Evaluating Lisp Forms in Regular Expressions, but he mentions one trick that is too good to miss so I&#8217;m going to repeat [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mickey</title>
		<link>http://www.masteringemacs.org/articles/2013/01/25/evaluating-lisp-forms-regular-expressions/#comment-21447</link>
		<dc:creator>mickey</dc:creator>
		<pubDate>Mon, 28 Jan 2013 12:04:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=650#comment-21447</guid>
		<description><![CDATA[Neat! Good idea. It&#039;s a bit like dropping into Recursive editing mode and doing it. Another useful idea might be to combine Emacs&#039;s &quot;skeletons&quot; with this... hmm... you&#039;ve given me some ideas! :)]]></description>
		<content:encoded><![CDATA[<p>Neat! Good idea. It&#8217;s a bit like dropping into Recursive editing mode and doing it. Another useful idea might be to combine Emacs&#8217;s &#8220;skeletons&#8221; with this&#8230; hmm&#8230; you&#8217;ve given me some ideas! <img src='http://www.masteringemacs.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean</title>
		<link>http://www.masteringemacs.org/articles/2013/01/25/evaluating-lisp-forms-regular-expressions/#comment-20947</link>
		<dc:creator>Sean</dc:creator>
		<pubDate>Fri, 25 Jan 2013 19:56:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=650#comment-20947</guid>
		<description><![CDATA[One trick I stumbled across is that you can call read-from-minibuffer in a \,(...) construct to do interactive replacement.  For example, using your Initech example, you could ask for the specific new salary for each employee, offering double the original salary as a default.  Replace:

\(\(.*?\)\s-+\$\)\([0-9]+\)

...with:

\1\,(read-from-minibuffer (concat &quot;New salary for &quot; \2 &quot; (was $&quot; \3 &quot;) : &quot;) (number-to-string (* 2 \#3)))]]></description>
		<content:encoded><![CDATA[<p>One trick I stumbled across is that you can call read-from-minibuffer in a \,(&#8230;) construct to do interactive replacement.  For example, using your Initech example, you could ask for the specific new salary for each employee, offering double the original salary as a default.  Replace:</p>
<p>\(\(.*?\)\s-+\$\)\([0-9]+\)</p>
<p>&#8230;with:</p>
<p>\1\,(read-from-minibuffer (concat &#8220;New salary for &#8221; \2 &#8221; (was $&#8221; \3 &#8220;) : &#8220;) (number-to-string (* 2 \#3)))</p>
]]></content:encoded>
	</item>
</channel>
</rss>
