From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.help Subject: Re: How to make moccur results to be inside the bottom window? Date: Mon, 18 Feb 2008 11:31:10 +0100 Message-ID: <47B95E6E.6000905@gmx.at> References: 9140000000030473733 <575411203326946@webmail23.yandex.ru> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203331616 27631 80.91.229.12 (18 Feb 2008 10:46:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Feb 2008 10:46:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Dmitry Bolshakov Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 18 11:47:20 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JR3WM-0003r0-SF for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2008 11:46:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JR3Vr-0001EG-IK for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Feb 2008 05:46:19 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JR3IV-0006jN-KQ for help-gnu-emacs@gnu.org; Mon, 18 Feb 2008 05:32:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JR3IS-0006iM-7o for help-gnu-emacs@gnu.org; Mon, 18 Feb 2008 05:32:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JR3IP-0006i9-9J for help-gnu-emacs@gnu.org; Mon, 18 Feb 2008 05:32:26 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JR3IO-0007Kc-Qw for help-gnu-emacs@gnu.org; Mon, 18 Feb 2008 05:32:25 -0500 Original-Received: (qmail invoked by alias); 18 Feb 2008 10:32:17 -0000 Original-Received: from M3093P030.adsl.highway.telekom.at (EHLO [88.117.34.158]) [88.117.34.158] by mail.gmx.net (mp027) with SMTP; 18 Feb 2008 11:32:17 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX18Lc98qBBcLO+HIMJL6d9nKAvBQ/Si1rgt0oOPzJ4 nFZU7HQXc2pI44 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <575411203326946@webmail23.yandex.ru> X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:51636 Archived-At: > It seems that you did not try color-moccur library. As I think, moccur > acts approximately so: searches buffers -> displays results in the > _current_ window -> binds up/down keys to the "go to prev/next > occurence" -> in the "go to", calls (switch-to-buffer-other-window > found-buffer) + (goto-line found-line) so _found buffers_ are > displayed inside the bottom window but I want them inside the top I didn't try it because it doesn't compile correctly here. But I suppose your analysis is correct. The problem seems with the `pop-to-buffer' calls (I found three of them) since they open a window below the window showing the list of matches. You can try to replace two of these calls - namely those appearing as (pop-to-buffer moccur-mocur-buffer) with (let ((window (selected-window))) (select-window (split-window)) (set-window-buffer window moccur-mocur-buffer)) Note: The `select-window' is here to select the window listing the matches - I suppose that's how moccur operates. Without warranty!