Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
how to remove buffers created during command completion from an emacs shell
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
bharmaji  
View profile  
 More options Nov 13 2012, 1:53 am
Newsgroups: gnu.emacs.help
From: bharmaji <bharm...@gmail.com>
Date: Mon, 12 Nov 2012 22:53:15 -0800 (PST)
Local: Tues, Nov 13 2012 1:53 am
Subject: how to remove buffers created during command completion from an emacs shell
Hello
Can someone please help with the following problem. I do M-x shell to enter a shell. Then if I type a command and press TAB, a buffer is created for command completion. Now if I do not click on an entry in that buffer, the buffer continues to stay there. I have to do C-x 0 to get it removed. Is there a way for it to automatically get removed if I fill the command myself and press ENTER or is there a way for me to select an entry without using a mouse?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Dyballa  
View profile  
 More options Nov 13 2012, 4:44 am
Newsgroups: gnu.emacs.help
From: Peter Dyballa <Peter_Dyba...@Web.DE>
Date: Tue, 13 Nov 2012 10:44:35 +0100
Local: Tues, Nov 13 2012 4:44 am
Subject: Re: how to remove buffers created during command completion from an emacs shell

Am 13.11.2012 um 07:53 schrieb bharmaji:

> Is there a way for it to automatically get removed if I fill the command myself and press ENTER or is there a way for me to select an entry without using a mouse?

Add one more character to the incomplete command and then press TAB to complete. The *Completions* window will disappear. When reaching the end of a word and you don't need a longer completed word you can type SPACE and the *Completions* window will disappear as well.

--
Greetings

  Pete

The day Microsoft makes something that doesn't suck is the day they start selling vacuum cleaners.
                                – Ernest Jan Plugge


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Xavier Maillard  
View profile  
 More options Nov 13 2012, 3:48 pm
Newsgroups: gnu.emacs.help
From: Xavier Maillard <xav...@maillard.im>
Date: Tue, 13 Nov 2012 21:48:54 +0100
Local: Tues, Nov 13 2012 3:48 pm
Subject: Re: how to remove buffers created during command completion from an emacs shell
Hi,

> Can someone please help with the following problem. I do M-x
> shell to enter a shell. Then if I type a command and press TAB,
> a buffer is created for command completion. Now if I do not
> click on an entry in that buffer, the buffer continues to stay
> there. I have to do C-x 0 to get it removed. Is there a way for
> it to automatically get removed if I fill the command myself
> and press ENTER or is there a way for me to select an entry
> without using a mouse?

Here is how you can circumvent that simply:

;; Reduce open buffer list: first the completion buffer
(add-hook 'minibuffer-exit-hook
          '(lambda ()
             (let ((buffer "*Completions*"))
               (and (get-buffer buffer)
                    (kill-buffer buffer)
                    (message "Killing buffer %s" buffer)))))

        Xavier
--
http://www.gnu.org
http://www.april.org
http://www.lolica.org


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stefan Monnier  
View profile  
 More options Nov 14 2012, 11:23 am
Newsgroups: gnu.emacs.help
From: Stefan Monnier <monn...@iro.umontreal.ca>
Date: Wed, 14 Nov 2012 11:23:38 -0500
Local: Wed, Nov 14 2012 11:23 am
Subject: Re: how to remove buffers created during command completion from an emacs shell

> Can someone please help with the following problem.  I do M-x shell to
> enter a shell.  Then if I type a command and press TAB, a buffer is
> created for command completion.  Now if I do not click on an entry in
> that buffer, the buffer continues to stay there.  I have to do C-x
> 0 to get it removed.  Is there a way for it to automatically get
> removed if I fill the command myself and press ENTER or is there a way
> for me to select an entry without using a mouse?

Which version of Emacs are you using?
AFAIK this problem is fixed in Emacs-24.

        Stefan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »