<?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 Settings</title>
	<atom:link href="http://nflath.com/2009/10/emacs-settings/feed/" rel="self" type="application/rss+xml" />
	<link>http://nflath.com/2009/10/emacs-settings/</link>
	<description>Technology-related ideas, mainly involving Emacs</description>
	<pubDate>Tue, 22 May 2012 08:01:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lektu</title>
		<link>http://nflath.com/2009/10/emacs-settings/comment-page-1/#comment-423</link>
		<dc:creator>Lektu</dc:creator>
		<pubDate>Thu, 15 Oct 2009 01:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=426#comment-423</guid>
		<description>I think you can simplify line-matches by using line-end-position:

(defun line-matches (regexp)
  "Returns non-nil if the current line matches the given regexp, nil otherwise."
  (save-excursion
    (beginning-of-line)
    (re-search-forward regexp (line-end-position) t)))

Additionally, as this is to be used from elisp and not interactively, I'd opt for using the -p convention for predicates and protecting the match data:

(defun line-matches-p (regexp)
  "Return non-nil if the current line matches the given regexp, nil otherwise."
  (save-excursion
    (beginning-of-line)
    (let ((inhibit-changing-match-data t))
      (re-search-forward regexp (line-end-position) t))))</description>
		<content:encoded><![CDATA[<p>I think you can simplify line-matches by using line-end-position:</p>
<p>(defun line-matches (regexp)<br />
  &#8220;Returns non-nil if the current line matches the given regexp, nil otherwise.&#8221;<br />
  (save-excursion<br />
    (beginning-of-line)<br />
    (re-search-forward regexp (line-end-position) t)))</p>
<p>Additionally, as this is to be used from elisp and not interactively, I&#8217;d opt for using the -p convention for predicates and protecting the match data:</p>
<p>(defun line-matches-p (regexp)<br />
  &#8220;Return non-nil if the current line matches the given regexp, nil otherwise.&#8221;<br />
  (save-excursion<br />
    (beginning-of-line)<br />
    (let ((inhibit-changing-match-data t))<br />
      (re-search-forward regexp (line-end-position) t))))</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://nflath.com/2009/10/emacs-settings/comment-page-1/#comment-422</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Wed, 14 Oct 2009 16:56:03 +0000</pubDate>
		<guid isPermaLink="false">http://nflath.com/?p=426#comment-422</guid>
		<description>Re: your google function.  Have you seen webjump?  It's part of GNU Emacs and XEmacs now.

http://www.neilvandyke.org/webjump/</description>
		<content:encoded><![CDATA[<p>Re: your google function.  Have you seen webjump?  It&#8217;s part of GNU Emacs and XEmacs now.</p>
<p><a href="http://www.neilvandyke.org/webjump/" rel="nofollow">http://www.neilvandyke.org/webjump/</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

