Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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.