unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* *Completions* in minibuffer-only frames
@ 2019-02-19  9:31 martin rudalics
  2019-02-19 16:26 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: martin rudalics @ 2019-02-19  9:31 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 459 bytes --]

With Emacs 26 and a minibuffer-only frame, *Completions* may be
displayed in the minibuffer window.  To reproduce with emacs -Q do
(make-frame '((minibuffer . only))) and in that minibuffer-only frame
type C-h f followed by TAB.  This will display *Completions* in the
minibuffer window and it can become quite complicated to get rid of it
again.  Hence I would like to apply the attached trivial patch to the
release branch.  Any objections?

Thanks, martin

[-- Attachment #2: display-buffer-avoid-minibuffer-window.diff --]
[-- Type: text/plain, Size: 881 bytes --]

diff --git a/lisp/window.el b/lisp/window.el
index 4b30609..0a36ae7 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -7397,6 +7397,7 @@ display-buffer-below-selected
 	     (window--display-buffer
 	      buffer window 'window alist display-buffer-mark-dedicated))
 	(and (setq window (window-in-direction 'below))
+             (not (window-minibuffer-p window))
 	     (not (window-dedicated-p window))
 	     (window--display-buffer
 	      buffer window 'reuse alist display-buffer-mark-dedicated)))))
@@ -7432,6 +7433,7 @@ display-buffer-at-bottom
 	     (window--display-buffer
 	      buffer window 'window alist display-buffer-mark-dedicated))
 	(and (setq window bottom-window)
+             (not (window-minibuffer-p window))
 	     (not (window-dedicated-p window))
 	     (window--display-buffer
 	      buffer window 'reuse alist display-buffer-mark-dedicated)))))

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-20 10:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-19  9:31 *Completions* in minibuffer-only frames martin rudalics
2019-02-19 16:26 ` Eli Zaretskii
2019-02-19 17:46   ` martin rudalics
2019-02-19 18:15     ` Eli Zaretskii
2019-02-20 10:20       ` martin rudalics

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