unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Drew Adams <drew.adams@oracle.com>
Cc: 8358@debbugs.gnu.org
Subject: bug#8358: 24.0.50; `minibuffer-scroll-window' with active minibuffer: always	*Completions*?
Date: Mon, 28 Mar 2011 08:34:23 +0200	[thread overview]
Message-ID: <4D902BEF.7050107@gmx.at> (raw)
In-Reply-To: <85A4B6FC9D55449098D84231439FAF9B@us.oracle.com>

 > I looked at the code in minibuffer.el and window.c to try to understand
 > where `minibuffer-scroll-window' is getting reset (to *Completions*),
 > but I haven't understood, so far.

`with-output-to-temp-buffer' which displays the *Completions* buffer
sets `minibuffer-scroll-window' to the window showing *Completions*.
This happens _after_ running `completion-setup-hook' so your "foo"
doesn't really do what you expected.

 > Help appreciated.  Is this a bug?  Shouldn't you be able to set the
 > window to be scrolled (using `scroll-other-window') during minibuffer
 > input to be some window other than *Completions*?  How can I do that?
 > Just where is `minibuffer-scroll-window' getting set and reset?  Thx.

Try doing

(add-hook 'temp-buffer-show-hook 'foo 'append)

instead.  Or write your own `temp-buffer-show-function'.

martin





  reply	other threads:[~2011-03-28  6:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-27 22:03 bug#8358: 24.0.50; `minibuffer-scroll-window' with active minibuffer: always *Completions*? Drew Adams
2011-03-28  6:34 ` martin rudalics [this message]
2011-03-28 13:44   ` Drew Adams
2011-03-28 15:01     ` martin rudalics
2011-03-28 16:22       ` Drew Adams
2011-03-28 18:51         ` martin rudalics
2011-03-28 20:00           ` Drew Adams
2011-03-29  1:05             ` Stefan Monnier
2022-02-13  9:58       ` Lars Ingebrigtsen
2011-03-28 15:07     ` Stefan Monnier
2011-03-29  4:13       ` Drew Adams
2011-03-29  8:54         ` martin rudalics
2011-03-29 14:22           ` Drew Adams

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=4D902BEF.7050107@gmx.at \
    --to=rudalics@gmx.at \
    --cc=8358@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).