<?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: SubEthaEdit 3</title>
	<atom:link href="http://iamthewalr.us/blog/2007/10/subethaedit-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamthewalr.us/blog/2007/10/subethaedit-3/</link>
	<description>by Colin Barrett</description>
	<lastBuildDate>Sun, 06 Jun 2010 00:19:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Colin</title>
		<link>http://iamthewalr.us/blog/2007/10/subethaedit-3/comment-page-1/#comment-15775</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Tue, 30 Oct 2007 17:11:33 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/2007/10/23/subethaedit-3/#comment-15775</guid>
		<description>&lt;p&gt;Sure, lets say you have this document:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if foo:
   do_the_foo()
 if bar:
   do_the_bar()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;You do some refactoring and want to store foo and bar in an opts dictionary instead. While you could accomplish this with regular expressions, it&#039;s not exactly easy to use, and prone to error:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;s/(foo&#124;bar)[^(]/opts.$1/
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I had to test that in a shell and do a bunch of editing to get that to work right. Maybe I just suck ;)&lt;/p&gt;

&lt;p&gt;With block editing, you&#039;d do a disjoint block edit on the first and third lines and type:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;opts.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Which would result in this document:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if opts.foo:
   do_the_foo()
 if opts.bar:
   do_the_bar()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This gets much more useful if you&#039;re working with more than two lines, of course ;)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Sure, lets say you have this document:</p>

<pre><code>if foo:
   do_the_foo()
 if bar:
   do_the_bar()
</code></pre>

<p>You do some refactoring and want to store foo and bar in an opts dictionary instead. While you could accomplish this with regular expressions, it&#8217;s not exactly easy to use, and prone to error:</p>

<pre><code>s/(foo|bar)[^(]/opts.$1/
</code></pre>

<p>I had to test that in a shell and do a bunch of editing to get that to work right. Maybe I just suck ;)</p>

<p>With block editing, you&#8217;d do a disjoint block edit on the first and third lines and type:</p>

<pre><code>opts.
</code></pre>

<p>Which would result in this document:</p>

<pre><code>if opts.foo:
   do_the_foo()
 if opts.bar:
   do_the_bar()
</code></pre>

<p>This gets much more useful if you&#8217;re working with more than two lines, of course ;)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Leo S</title>
		<link>http://iamthewalr.us/blog/2007/10/subethaedit-3/comment-page-1/#comment-15151</link>
		<dc:creator>Leo S</dc:creator>
		<pubDate>Thu, 25 Oct 2007 23:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/2007/10/23/subethaedit-3/#comment-15151</guid>
		<description>&lt;p&gt;I&#039;m trying to think of a scenario where I would want to change several lines with the exact same text....  Can you give an example?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I&#8217;m trying to think of a scenario where I would want to change several lines with the exact same text&#8230;.  Can you give an example?</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Colin</title>
		<link>http://iamthewalr.us/blog/2007/10/subethaedit-3/comment-page-1/#comment-14979</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Wed, 24 Oct 2007 16:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/2007/10/23/subethaedit-3/#comment-14979</guid>
		<description>&lt;p&gt;I thought that disjoint ones were new, somehow.&lt;/p&gt;

&lt;p&gt;I only found out about it after upgrading to 3.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I thought that disjoint ones were new, somehow.</p>

<p>I only found out about it after upgrading to 3.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Augie Fackler</title>
		<link>http://iamthewalr.us/blog/2007/10/subethaedit-3/comment-page-1/#comment-14858</link>
		<dc:creator>Augie Fackler</dc:creator>
		<pubDate>Tue, 23 Oct 2007 16:20:44 +0000</pubDate>
		<guid isPermaLink="false">http://iamthewalr.us/blog/2007/10/23/subethaedit-3/#comment-14858</guid>
		<description>&lt;p&gt;Blockedits (even disjoint ones) are not new in SEE 3, just to clarify...&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Blockedits (even disjoint ones) are not new in SEE 3, just to clarify&#8230;</p>]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.195 seconds -->
