From: martin rudalics <rudalics@gmx.at>
To: Dmitry Bolshakov <bdimych@narod.ru>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to make moccur results to be inside the bottom window?
Date: Mon, 18 Feb 2008 11:31:10 +0100 [thread overview]
Message-ID: <47B95E6E.6000905@gmx.at> (raw)
In-Reply-To: <575411203326946@webmail23.yandex.ru>
> 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!
next parent reply other threads:[~2008-02-18 10:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <575411203326946@webmail23.yandex.ru>
2008-02-18 10:31 ` martin rudalics [this message]
2008-02-18 9:32 How to make moccur results to be inside the bottom window? Dmitry Bolshakov
-- strict thread matches above, loose matches on Subject: below --
2008-02-12 19:56 martin rudalics
2008-02-11 15:01 bdimych
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47B95E6E.6000905@gmx.at \
--to=rudalics@gmx.at \
--cc=bdimych@narod.ru \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).