unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Dmitry Bolshakov <bdimych@narod.ru>
To: "martin rudalics" <rudalics@gmx.at>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to make moccur results to be inside the bottom window?
Date: Mon, 18 Feb 2008 12:32:47 +0300	[thread overview]
Message-ID: <585491203327167@webmail23.yandex.ru> (raw)

> 

> > After moccur, window is splitted vertically and results appear inside the top

>  > window, but I would like to see them inside the bottom window like it is

>  > made in many other editors

>  >

>  > I looked into the color-moccur.el - there are many

>  > switch-to-buffer-other-window calls, Is it possible to configure this

>  > function or "defadvice" it so that it would open other-window at the top?

> 

> I'm not quite sure whether I understand what you mean.  In the first

> paragraph it seems you want the occurrences listed in the bottom window.

> That's what `switch-to-buffer-other-window' should do: If it doesn't

> find a suitable window it may split the largest or least recently used

> one.  The original window should become the upper one and the results of

> `moccur' should go to the lower one.  Please verify whether this fails

> to happen on your system, for example, by invoking C-x 4 b from the

> original window and typing in the name of the "moccur" buffer.

> 

> In the second paragraph it seems that you want to see the results in an

> "other-window at the top".  Please clarify this.



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



PS thanks for C-x 4 b, I did not know this key



--

with best regards

Dmitry Bolshakov







             reply	other threads:[~2008-02-18  9:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-18  9:32 Dmitry Bolshakov [this message]
     [not found] <575411203326946@webmail23.yandex.ru>
2008-02-18 10:31 ` How to make moccur results to be inside the bottom window? martin rudalics
  -- 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=585491203327167@webmail23.yandex.ru \
    --to=bdimych@narod.ru \
    --cc=help-gnu-emacs@gnu.org \
    --cc=rudalics@gmx.at \
    /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).