all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to remove buffers created during command completion from an emacs shell
@ 2012-11-13  6:53 bharmaji
  2012-11-13  9:44 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bharmaji @ 2012-11-13  6:53 UTC (permalink / raw)
  To: help-gnu-emacs

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?


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

* Re: how to remove buffers created during command completion from an emacs shell
  2012-11-13  6:53 how to remove buffers created during command completion from an emacs shell bharmaji
@ 2012-11-13  9:44 ` Peter Dyballa
  2012-11-13 20:48 ` Xavier Maillard
  2012-11-14 16:23 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Peter Dyballa @ 2012-11-13  9:44 UTC (permalink / raw)
  To: bharmaji; +Cc: help-gnu-emacs


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




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

* Re: how to remove buffers created during command completion from an emacs shell
  2012-11-13  6:53 how to remove buffers created during command completion from an emacs shell bharmaji
  2012-11-13  9:44 ` Peter Dyballa
@ 2012-11-13 20:48 ` Xavier Maillard
  2012-11-14 16:23 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Xavier Maillard @ 2012-11-13 20:48 UTC (permalink / raw)
  To: bharmaji; +Cc: help-gnu-emacs

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



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

* Re: how to remove buffers created during command completion from an emacs shell
  2012-11-13  6:53 how to remove buffers created during command completion from an emacs shell bharmaji
  2012-11-13  9:44 ` Peter Dyballa
  2012-11-13 20:48 ` Xavier Maillard
@ 2012-11-14 16:23 ` Stefan Monnier
  2 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2012-11-14 16:23 UTC (permalink / raw)
  To: help-gnu-emacs

> 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


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

end of thread, other threads:[~2012-11-14 16:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-13  6:53 how to remove buffers created during command completion from an emacs shell bharmaji
2012-11-13  9:44 ` Peter Dyballa
2012-11-13 20:48 ` Xavier Maillard
2012-11-14 16:23 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.