* Killing all buffers
@ 2007-02-11 15:35 Alberto Simões
2007-02-11 17:40 ` Sebastian P. Luque
2007-02-11 18:33 ` Matthew Flaschen
0 siblings, 2 replies; 8+ messages in thread
From: Alberto Simões @ 2007-02-11 15:35 UTC (permalink / raw)
To: emacs
Hi,
Is there any way to kill all buffers (and get prompted about the ones
not saved)?
From time to time I like to kill all opened buffers (for instance when
changing from projects), and it takes me a long time killing one at a time.
Thank you
Kind regards
Alberto
--
Alberto Simões - Departamento de Informática - Universidade do Minho
Campus de Gualtar - 4710-057 Braga - Portugal
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Killing all buffers
[not found] <mailman.4345.1171208140.2155.help-gnu-emacs@gnu.org>
@ 2007-02-11 15:50 ` Joost Kremers
2007-02-11 17:02 ` Harald Hanche-Olsen
2007-02-11 19:18 ` Stefan Reichör
1 sibling, 1 reply; 8+ messages in thread
From: Joost Kremers @ 2007-02-11 15:50 UTC (permalink / raw)
To: help-gnu-emacs
Alberto Simões wrote:
> Is there any way to kill all buffers (and get prompted about the ones
> not saved)?
>
> From time to time I like to kill all opened buffers (for instance when
> changing from projects), and it takes me a long time killing one at a time.
there is a command kill-some-buffers, which asks you for each open buffer
if you want it killed.
you still need to type yes or no for each buffer, so in actual fact it may
be less trouble just to kill and restart emacs...
--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Killing all buffers
2007-02-11 15:50 ` Killing all buffers Joost Kremers
@ 2007-02-11 17:02 ` Harald Hanche-Olsen
0 siblings, 0 replies; 8+ messages in thread
From: Harald Hanche-Olsen @ 2007-02-11 17:02 UTC (permalink / raw)
To: help-gnu-emacs
+ Joost Kremers <joostkremers@yahoo.com>:
| Alberto Simões wrote:
|> Is there any way to kill all buffers (and get prompted about the ones
|> not saved)?
|>
|> From time to time I like to kill all opened buffers (for instance when
|> changing from projects), and it takes me a long time killing one at a time.
|
| there is a command kill-some-buffers, which asks you for each open buffer
| if you want it killed.
|
| you still need to type yes or no for each buffer, so in actual fact it may
| be less trouble just to kill and restart emacs...
As usual, google is your friend. There is a solution here, at the
second hit on googling for emacs "kill all buffers" :
http://www.shallowsky.com/dotfiles/.emacs
It calls kill-buffer on each buffer, which means no questions asked
unless the buffer is unsaved.
--
* Harald Hanche-Olsen <URL:http://www.math.ntnu.no/~hanche/>
- It is undesirable to believe a proposition
when there is no ground whatsoever for supposing it is true.
-- Bertrand Russell
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Killing all buffers
2007-02-11 15:35 Alberto Simões
@ 2007-02-11 17:40 ` Sebastian P. Luque
2007-02-11 18:33 ` Matthew Flaschen
1 sibling, 0 replies; 8+ messages in thread
From: Sebastian P. Luque @ 2007-02-11 17:40 UTC (permalink / raw)
To: help-gnu-emacs
On Sun, 11 Feb 2007 15:35:08 +0000,
Alberto Simões <albie@alfarrabio.di.uminho.pt> wrote:
> Hi,
> Is there any way to kill all buffers (and get prompted about the ones
> not saved)?
> From time to time I like to kill all opened buffers (for instance when
> changing from projects), and it takes me a long time killing one at a
> time.
The bs (no pun intended) library is very handy for this sort of thing. I
use the following for handling buffers:
(global-set-key "\C-x\C-b" 'bs-show)
and calling that temporarily splits the window (to a customizible size)
where 'k' would kill the buffer referred to in the current line. It has
many useful features ('customize-group bs RET'). Would that help?
--
Seb
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Killing all buffers
2007-02-11 15:35 Alberto Simões
2007-02-11 17:40 ` Sebastian P. Luque
@ 2007-02-11 18:33 ` Matthew Flaschen
2007-02-11 20:47 ` Drew Adams
1 sibling, 1 reply; 8+ messages in thread
From: Matthew Flaschen @ 2007-02-11 18:33 UTC (permalink / raw)
To: emacs
[-- Attachment #1.1: Type: text/plain, Size: 367 bytes --]
Alberto Simões wrote:
> Hi,
>
> Is there any way to kill all buffers (and get prompted about the ones
> not saved)?
>
> From time to time I like to kill all opened buffers (for instance when
> changing from projects), and it takes me a long time killing one at a time.
There was just a long thread about this. Search the archives.
Matthew Flaschen
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Killing all buffers
[not found] <mailman.4345.1171208140.2155.help-gnu-emacs@gnu.org>
2007-02-11 15:50 ` Killing all buffers Joost Kremers
@ 2007-02-11 19:18 ` Stefan Reichör
2007-02-11 21:34 ` Matthew Flaschen
1 sibling, 1 reply; 8+ messages in thread
From: Stefan Reichör @ 2007-02-11 19:18 UTC (permalink / raw)
To: help-gnu-emacs
Alberto Simões <albie@alfarrabio.di.uminho.pt> writes:
> Hi,
>
> Is there any way to kill all buffers (and get prompted about the ones
> not saved)?
>
> From time to time I like to kill all opened buffers (for instance when
> changing from projects), and it takes me a long time killing one at a
> time.
There is also M-x desktop-clear:
desktop-clear is an interactive compiled Lisp function in `desktop.el'.
(desktop-clear)
Empty the Desktop.
This kills all buffers except for internal ones and those with names matched by
a regular expression in the list `desktop-clear-preserve-buffers'.
Furthermore, it clears the variables listed in `desktop-globals-to-clear'.
Stefan.
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: Killing all buffers
2007-02-11 18:33 ` Matthew Flaschen
@ 2007-02-11 20:47 ` Drew Adams
0 siblings, 0 replies; 8+ messages in thread
From: Drew Adams @ 2007-02-11 20:47 UTC (permalink / raw)
To: Help-Gnu-Emacs
> > Is there any way to kill all buffers
>
> There was just a long thread about this. Search the archives.
The thread was at the end of January, subject "how can i kill all the
buffers".
My contribution: "In Icicles: C-x k TAB C-!"
http://www.emacswiki.org/cgi-bin/emacs-en/Icicles
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Killing all buffers
2007-02-11 19:18 ` Stefan Reichör
@ 2007-02-11 21:34 ` Matthew Flaschen
0 siblings, 0 replies; 8+ messages in thread
From: Matthew Flaschen @ 2007-02-11 21:34 UTC (permalink / raw)
To: emacs
[-- Attachment #1.1: Type: text/plain, Size: 514 bytes --]
Stefan Reichör wrote:
> Alberto Simões <albie@alfarrabio.di.uminho.pt> writes:
>
>> Hi,
>>
>> Is there any way to kill all buffers (and get prompted about the ones
>> not saved)?
>>
>> From time to time I like to kill all opened buffers (for instance when
>> changing from projects), and it takes me a long time killing one at a
>> time.
>
> There is also M-x desktop-clear:
This doesn't seem to be loaded by default.
Adding:
(require 'desktop)
to .emacs worked.
Matthew Flaschen
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-02-11 21:34 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.4345.1171208140.2155.help-gnu-emacs@gnu.org>
2007-02-11 15:50 ` Killing all buffers Joost Kremers
2007-02-11 17:02 ` Harald Hanche-Olsen
2007-02-11 19:18 ` Stefan Reichör
2007-02-11 21:34 ` Matthew Flaschen
2007-02-11 15:35 Alberto Simões
2007-02-11 17:40 ` Sebastian P. Luque
2007-02-11 18:33 ` Matthew Flaschen
2007-02-11 20:47 ` Drew Adams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).