From 32b38787d6cb74d1677a4141569dfe0bef25ea32 Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Thu, 26 Jan 2012 16:57:51 +0200 Subject: [PATCH] minor fix to prelude-kill-other-buffers --- modules/prelude-core.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/prelude-core.el b/modules/prelude-core.el index bad5e9a..05dda38 100644 --- a/modules/prelude-core.el +++ b/modules/prelude-core.el @@ -352,10 +352,10 @@ there's a region, all lines that region covers will be duplicated." (other-window 1)) (defun prelude-kill-other-buffers () - "Kill all buffers but the current one" + "Kill all buffers but the current one. Doesn't mess with special buffers." (interactive) (dolist (buffer (buffer-list)) - (unless (eql buffer (current-buffer)) + (unless (or (eql buffer (current-buffer)) (not (buffer-file-name buffer))) (kill-buffer buffer)))) (provide 'prelude-core)