From: "Drew Adams" <drew.adams@oracle.com>
To: 8358@debbugs.gnu.org
Subject: bug#8358: 24.0.50; `minibuffer-scroll-window' with active minibuffer: always *Completions*?
Date: Sun, 27 Mar 2011 15:03:17 -0700 [thread overview]
Message-ID: <85A4B6FC9D55449098D84231439FAF9B@us.oracle.com> (raw)
`minibuffer-scroll-window' is the window to be scrolled by
`scroll-other-window' from the minibuffer.
The doc suggests that setting `minibuffer-scroll-window' to some window
when the minibuffer is active would make other-window scrolling use that
window. E.g. the doc for `scroll-other-window' includes this:
"If in the minibuffer, `minibuffer-scroll-window' if non-nil specifies
the window to scroll. This takes precedence over
`other-window-scroll-buffer'."
It doesn't say that the *Completions* window is always the other window
scrolled. But `minibuffer-scroll-window' always seems to be reset to
the *Completions* window, AFAICT.
Help me understand how to make some other window than the *Completions*
window the target to be scrolled by `scroll-other-window' from the
minibuffer.
emacs -Q
C-x d RET
C-x 4 b *scratch* RET
(defun foo ()
(setq minibuffer-scroll-window
(get-buffer-window (get-buffer "*scratch*") 0))
(message "fffff, MSW: %S" minibuffer-scroll-window) (sleep-for 2))
(add-hook 'completion-setup-hook 'foo 'append)
(defun bar (arg)
(interactive "P")
(message "BBBBB, MSW: %S" minibuffer-scroll-window) (sleep-for 2)
(scroll-other-window arg))
(define-key minibuffer-local-completion-map "\C-\M-v" 'bar)
Return focus to the Dired window.
M-x for TAB C-M-v
That shows that `minibuffer-scroll-window' is the *Completions* window
when `C-M-v' is pressed, even though `minibuffer-scroll-window' was the
*scratch* window just after *Completions* was shown.
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.
(`minibuffer-complete' does set `minibuffer-scroll-window' (e.g. to
nil), but debugging that function shows that it doesn't seem to make a
difference here. And my own code, where I also see the problem, doesn't
even call `minibuffer-complete'.)
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.
In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
of 2011-03-21 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.5) --no-opt --cflags
-Ic:/imagesupport/include'
next reply other threads:[~2011-03-27 22:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-27 22:03 Drew Adams [this message]
2011-03-28 6:34 ` bug#8358: 24.0.50; `minibuffer-scroll-window' with active minibuffer: always *Completions*? martin rudalics
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=85A4B6FC9D55449098D84231439FAF9B@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=8358@debbugs.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.
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).