Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I use the emacs shell mode or in gdb, when I type double tab, the emacs pop up a new window which always cover an existed window. While in terminal, when I type double tab, to complete a directory, the terminal just print all the candidates in the same window. Can I make the emacs not to pop up a new window when I use this feature?

share|improve this question

2 Answers 2

You could conceivably modify it to show completions in the minibuffer, but (a) you can't scroll the minibuffer sanely if needed, and (b) it would just expand and cover your other windows anyway. Creating a dedicated minibuffer frame might help.

share|improve this answer

Agreed, that's a really annoying behaviour. But you could use popwin. In short, popwin makes you can close windows such like *Help*, *Completion* by press C-g in anytime. By the way, you can install it from ELPA.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.