<?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: Searching in Buffers with Occur Mode</title>
	<atom:link href="http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/</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: Eric J</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-11830</link>
		<dc:creator>Eric J</dc:creator>
		<pubDate>Wed, 18 Jul 2012 16:45:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-11830</guid>
		<description><![CDATA[This was just what I was looking for! Thanks!]]></description>
		<content:encoded><![CDATA[<p>This was just what I was looking for! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sean Bryant</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-4421</link>
		<dc:creator>Sean Bryant</dc:creator>
		<pubDate>Tue, 13 Dec 2011 16:47:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-4421</guid>
		<description><![CDATA[I notice you&#039;re a fan of using setq to add to customizable variables. 
Why not M-x customize-group or M-x customize-variable the variables. 

That way people could get in the habit of working with, instead of against the customize interface. 

What do you think?]]></description>
		<content:encoded><![CDATA[<p>I notice you&#8217;re a fan of using setq to add to customizable variables.<br />
Why not M-x customize-group or M-x customize-variable the variables. </p>
<p>That way people could get in the habit of working with, instead of against the customize interface. </p>
<p>What do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-1489</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Sat, 27 Aug 2011 07:44:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-1489</guid>
		<description><![CDATA[What I meant was the package manager offers a package &quot;all&quot; which you have to install.  Load it with M-x all-mode and use the command &quot;all&quot; like you would &quot;occur&quot;.]]></description>
		<content:encoded><![CDATA[<p>What I meant was the package manager offers a package &#8220;all&#8221; which you have to install.  Load it with M-x all-mode and use the command &#8220;all&#8221; like you would &#8220;occur&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lukas</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-1488</link>
		<dc:creator>Lukas</dc:creator>
		<pubDate>Sat, 27 Aug 2011 07:41:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-1488</guid>
		<description><![CDATA[The package manager in Emacs 24 (M-x list packages) comes with all-mode which I think is what you&#039;re looking for.]]></description>
		<content:encoded><![CDATA[<p>The package manager in Emacs 24 (M-x list packages) comes with all-mode which I think is what you&#8217;re looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-1411</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Tue, 09 Aug 2011 02:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-1411</guid>
		<description><![CDATA[mickey: I don&#039;t understand what functionality you&#039;re referring to.

If you&#039;re talking about the &lt;pre&gt;open-line&lt;/pre&gt; then that functionality is still preserved since the code given by Anselm (thanks for the tip btw, I didn&#039;t knew isearch provided that function in a easy to use wrapper) since it only binds the &lt;pre&gt;C-o&lt;/pre&gt; combination when you are already inside a search.

I just tried in my emacs (with the &lt;pre&gt;-Q&lt;/pre&gt; flag) and &lt;pre&gt;C-o&lt;/pre&gt; doesn&#039;t seem to do anything while searching, except to quit the search and call &lt;pre&gt;open-line&lt;/pre&gt;.

Do you have anything else bind to &lt;pre&gt;C-o&lt;/pre&gt; in the &lt;pre&gt;isearch-mode-map&lt;/pre&gt;? Because I&#039;m always on the lookout for things others find &quot;too useful&quot; in emacs. :)]]></description>
		<content:encoded><![CDATA[<p>mickey: I don&#8217;t understand what functionality you&#8217;re referring to.</p>
<p>If you&#8217;re talking about the
<pre>open-line</pre>
<p> then that functionality is still preserved since the code given by Anselm (thanks for the tip btw, I didn&#8217;t knew isearch provided that function in a easy to use wrapper) since it only binds the
<pre>C-o</pre>
<p> combination when you are already inside a search.</p>
<p>I just tried in my emacs (with the
<pre>-Q</pre>
<p> flag) and
<pre>C-o</pre>
<p> doesn&#8217;t seem to do anything while searching, except to quit the search and call
<pre>open-line</pre>
<p>.</p>
<p>Do you have anything else bind to
<pre>C-o</pre>
<p> in the
<pre>isearch-mode-map</pre>
<p>? Because I&#8217;m always on the lookout for things others find &#8220;too useful&#8221; in emacs. <img src='http://www.masteringemacs.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mickey</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-1401</link>
		<dc:creator>mickey</dc:creator>
		<pubDate>Fri, 05 Aug 2011 18:58:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-1401</guid>
		<description><![CDATA[I think the default functionality provided by &lt;code&gt;C-o&lt;/code&gt;  is too useful to be overriden. A better choice might be the less useful &lt;code&gt;M-o&lt;/code&gt; face stuff.]]></description>
		<content:encoded><![CDATA[<p>I think the default functionality provided by <code>C-o</code>  is too useful to be overriden. A better choice might be the less useful <code>M-o</code> face stuff.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anselm Helbig</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-1400</link>
		<dc:creator>Anselm Helbig</dc:creator>
		<pubDate>Fri, 05 Aug 2011 18:53:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-1400</guid>
		<description><![CDATA[I used that code for a long time, too, but it&#039;s now much easier. If you prefer C-o as a key binding, you could strip that down to:
&lt;pre&gt;
(define-key isearch-mode-map (kbd &quot;C-o&quot;) &#039;isearch-occur)
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>I used that code for a long time, too, but it&#8217;s now much easier. If you prefer C-o as a key binding, you could strip that down to:</p>
<pre>
(define-key isearch-mode-map (kbd "C-o") 'isearch-occur)
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-1393</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Thu, 04 Aug 2011 15:05:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-1393</guid>
		<description><![CDATA[Instead of using M-s o, I find it easier to use C-o which can be accomplished with this piece of code:

&lt;pre&gt;
(define-key isearch-mode-map (kbd &quot;C-o&quot;)
  (lambda () (interactive)
    (let ((case-fold-search isearch-case-fold-search))
      (occur (if isearch-regexp isearch-string (regexp-quote isearch-string))))))
&lt;/pre&gt;

I think I found it in technomancy&#039;s &lt;a href=&quot;https://github.com/technomancy/emacs-starter-kit&quot; rel=&quot;nofollow&quot;&gt;emacs start kit&lt;/a&gt; and I use it all the time.]]></description>
		<content:encoded><![CDATA[<p>Instead of using M-s o, I find it easier to use C-o which can be accomplished with this piece of code:</p>
<pre>
(define-key isearch-mode-map (kbd "C-o")
  (lambda () (interactive)
    (let ((case-fold-search isearch-case-fold-search))
      (occur (if isearch-regexp isearch-string (regexp-quote isearch-string))))))
</pre>
<p>I think I found it in technomancy&#8217;s <a href="https://github.com/technomancy/emacs-starter-kit" rel="nofollow">emacs start kit</a> and I use it all the time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: François</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-1347</link>
		<dc:creator>François</dc:creator>
		<pubDate>Sat, 23 Jul 2011 08:38:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-1347</guid>
		<description><![CDATA[&quot;My only complaint about occur is that it does not let you quickly search a set of buffers that match a specific major mode — arguably a common use case if you’re a programmer&quot;
To do this, I first use ibuffer to select/filter the buffers I&#039;m interested in, then run occur directly from the *ibuffer* buffer using the &#039;O&#039; key binding.]]></description>
		<content:encoded><![CDATA[<p>&#8220;My only complaint about occur is that it does not let you quickly search a set of buffers that match a specific major mode — arguably a common use case if you’re a programmer&#8221;<br />
To do this, I first use ibuffer to select/filter the buffers I&#8217;m interested in, then run occur directly from the *ibuffer* buffer using the &#8216;O&#8217; key binding.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anselm Helbig</title>
		<link>http://www.masteringemacs.org/articles/2011/07/20/searching-buffers-occur-mode/#comment-1340</link>
		<dc:creator>Anselm Helbig</dc:creator>
		<pubDate>Fri, 22 Jul 2011 07:35:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.masteringemacs.org/?p=422#comment-1340</guid>
		<description><![CDATA[Here it is:

&lt;pre&gt;
(defun occur-multi-occur ()
  &quot;Starts multi-occur for the current search term on all buffers with the first matching buffer&#039;s major mode.&quot;
  (interactive)
  (multi-occur 
   (get-buffers-matching-mode 
    (with-current-buffer (car (nth 2 occur-revert-arguments))
      major-mode))
   (car occur-revert-arguments)))
(define-key occur-mode-map &quot;m&quot; &#039;occur-multi-occur)
&lt;/pre&gt;]]></description>
		<content:encoded><![CDATA[<p>Here it is:</p>
<pre>
(defun occur-multi-occur ()
  "Starts multi-occur for the current search term on all buffers with the first matching buffer's major mode."
  (interactive)
  (multi-occur 
   (get-buffers-matching-mode 
    (with-current-buffer (car (nth 2 occur-revert-arguments))
      major-mode))
   (car occur-revert-arguments)))
(define-key occur-mode-map "m" 'occur-multi-occur)
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
