Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-14-2014, 03:52 PM   #1
LQ Newbie
Registered: Nov 2013
Distribution: Gentoo
Posts: 26

Rep: Reputation: Disabled
Emacs Shell: Keep tab completions in same buffer.

I'd like to keep tab completion from the emacs shell in the same buffer. I have seen several posts about closing the extra buffer emacs opens automatically but I have not seen how to keep the tab completions in the same buffer. Anyone have thoughts on this?
Old 10-16-2014, 09:51 AM   #2
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,842
Blog Entries: 13

Rep: Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894Reputation: 4894
Never seen that capablity be able to be disabled. And I think a core part of emacs is that it creates a *completions* buffer specifically to retain that stuff.

I get the annoyance to a degree, but in my case, the split to the buffer goes away when you finish and hit ENTER.

Now, MORE of an annoyance, but also something I've gotten away from is compilation from inside emacs, it does the same thing. What I did, and you can probably also do the same for the *completions* buffer is to hit ESC-5-2 to add another frame and have that frame showing the *completions* buffer, in my case I had it showing the *compilation* buffer and as a result when I issued compile, it did not split the frame, it instead either just did the compilation or also did the compilation, and raised the *compilation* window to the forefront, a'la switching windows. I've since stopped that. The sole benefit was that you could type the "next-error" command or key sequence and it would bring you to the file line where a compilation error was located.

That's actually a reason why the *completions* buffer, or other buffers are kept like that, for instance if you perform a grep and you get a *grep* buffer. So that you can use the "next-error" command to proceed through the results.

Long and short is that you could try opening a second frame (this then affects ALT-TAB window swapping though by adding another window to the list), and have that second frame be on the *completions* buffer. This way it won't split the window. A caveat to watch out for is if you have *completions* somewhere, but not showing in a frame, then I believe it will then split the frame; i.e. *completions* has to be the foremost buffer on "a" frame/window.

Last edited by rtmistler; 10-16-2014 at 09:53 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
text on xemacs tab/buffer Moore Linux - Desktop 1 05-31-2010 12:34 AM
emacs + auctex - opening output PDF inside emacs buffer coenvh Linux - Newbie 1 04-29-2010 06:52 AM
Help with Emacs Indenting / TAB wilson47 Linux - Software 1 06-26-2009 09:04 AM
emacs and tab stops tanoatlq Linux - Software 4 09-10-2008 04:09 PM
How to set tab in Emacs? Mathsniper Linux - Software 2 06-15-2005 12:05 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration