<?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: Emacs Utility Functions</title>
	<atom:link href="http://nflath.com/2009/07/emacs-utility-functions/feed/" rel="self" type="application/rss+xml" />
	<link>http://nflath.com/2009/07/emacs-utility-functions/</link>
	<description>Technology-related ideas, mainly involving Emacs</description>
	<pubDate>Sat, 19 May 2012 06:57:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: aaron</title>
		<link>http://nflath.com/2009/07/emacs-utility-functions/comment-page-1/#comment-127</link>
		<dc:creator>aaron</dc:creator>
		<pubDate>Sun, 26 Jul 2009 18:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=224#comment-127</guid>
		<description>WordPress's mindless HTML stripping system messed my comment up.  This should work.

M-x rename-file RET RET /path/to/dir RET</description>
		<content:encoded><![CDATA[<p>WordPress&#8217;s mindless HTML stripping system messed my comment up.  This should work.</p>
<p>M-x rename-file RET RET /path/to/dir RET</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Rodriguez</title>
		<link>http://nflath.com/2009/07/emacs-utility-functions/comment-page-1/#comment-126</link>
		<dc:creator>Paul Rodriguez</dc:creator>
		<pubDate>Sun, 26 Jul 2009 06:33:46 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=224#comment-126</guid>
		<description>I find move-buffer-file more useful with Ido, which is a relatively straightforward conversion.

&lt;pre&gt;
(defun ido-move-buffer-file ()
  (interactive)
  (let* ((name (buffer-name))
	 (filename (buffer-file-name))
	 (dir (ido-read-directory-name "New directory: "))
	 (newname (concat dir name)))
    (if (not filename)
	(message "Buffer %s is not visiting a file." name)
      (progn
	(copy-file filename newname 1)
	(delete-file filename)
	(set-visited-file-name newname)
	(set-buffer-modified-p nil)
	t))))
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>I find move-buffer-file more useful with Ido, which is a relatively straightforward conversion.</p>
<pre>
(defun ido-move-buffer-file ()
  (interactive)
  (let* ((name (buffer-name))
	 (filename (buffer-file-name))
	 (dir (ido-read-directory-name "New directory: "))
	 (newname (concat dir name)))
    (if (not filename)
	(message "Buffer %s is not visiting a file." name)
      (progn
	(copy-file filename newname 1)
	(delete-file filename)
	(set-visited-file-name newname)
	(set-buffer-modified-p nil)
	t))))
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: aaron</title>
		<link>http://nflath.com/2009/07/emacs-utility-functions/comment-page-1/#comment-125</link>
		<dc:creator>aaron</dc:creator>
		<pubDate>Sun, 26 Jul 2009 03:22:37 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=224#comment-125</guid>
		<description>M-x how-many RET \w+ RET

C-x h C-M-\

M-x rename-file RET RET  RET

I don't have an equivalent for the Amazon.com command, but you may want to look at Skeleton mode or Abbrev mode to accomplish those kinds of things.</description>
		<content:encoded><![CDATA[<p>M-x how-many RET \w+ RET</p>
<p>C-x h C-M-\</p>
<p>M-x rename-file RET RET  RET</p>
<p>I don&#8217;t have an equivalent for the Amazon.com command, but you may want to look at Skeleton mode or Abbrev mode to accomplish those kinds of things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Sullivan</title>
		<link>http://nflath.com/2009/07/emacs-utility-functions/comment-page-1/#comment-124</link>
		<dc:creator>John Sullivan</dc:creator>
		<pubDate>Sun, 26 Jul 2009 00:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=224#comment-124</guid>
		<description>Thanks, I was just thinking that I was going to write that Amazon function. I'd use format though...</description>
		<content:encoded><![CDATA[<p>Thanks, I was just thinking that I was going to write that Amazon function. I&#8217;d use format though&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: perusio</title>
		<link>http://nflath.com/2009/07/emacs-utility-functions/comment-page-1/#comment-123</link>
		<dc:creator>perusio</dc:creator>
		<pubDate>Sat, 25 Jul 2009 19:29:44 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=224#comment-123</guid>
		<description>The progn in 'move-buffer-file' is spurious. There's an implicity progn in the else clause of an 'if ' special form.

You can also replace the 'if' in the let* that binds dir by 'when'. 

Suggestions: 
                 i) Put a link that using JS can display a markup help when entering comments. 
                 ii) Put a preview button.</description>
		<content:encoded><![CDATA[<p>The progn in &#8216;move-buffer-file&#8217; is spurious. There&#8217;s an implicity progn in the else clause of an &#8216;if &#8216; special form.</p>
<p>You can also replace the &#8216;if&#8217; in the let* that binds dir by &#8216;when&#8217;. </p>
<p>Suggestions:<br />
                 i) Put a link that using JS can display a markup help when entering comments.<br />
                 ii) Put a preview button.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oz</title>
		<link>http://nflath.com/2009/07/emacs-utility-functions/comment-page-1/#comment-122</link>
		<dc:creator>Oz</dc:creator>
		<pubDate>Sat, 25 Jul 2009 17:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=224#comment-122</guid>
		<description>For counting words or other text elements there is also "M-x count-matches" command. For example, give it a regexp like \w+ or \S-+ and it will return the number of matches.</description>
		<content:encoded><![CDATA[<p>For counting words or other text elements there is also &#8220;M-x count-matches&#8221; command. For example, give it a regexp like \w+ or \S-+ and it will return the number of matches.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

