From ea8fb88d46c612939011aad40dd131e1f9659c91 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Sun, 26 Feb 2012 00:26:40 +0100 Subject: [PATCH] lisp/bs.el: Fix bug#10882 * bs.el (bs--show-with-configuration): Don't throw an error if the window cannot be split; otherwise, subsequent calls to bs-show fail, restoring a stale window config. --- lisp/ChangeLog | 6 ++++++ lisp/bs.el | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 353d40a9fa4..f585be4ec34 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2012-02-25 Juanma Barranquero + + * bs.el (bs--show-with-configuration): Don't throw an error + if the window cannot be split; otherwise, subsequent calls to + bs-show fail, restoring a stale window config. (Bug#10882) + 2012-02-25 Jan Djärv * term/ns-win.el (global-map): Bind ns-drag-file to diff --git a/lisp/bs.el b/lisp/bs.el index 2e0089d153f..4e54ef882fe 100644 --- a/lisp/bs.el +++ b/lisp/bs.el @@ -1414,7 +1414,8 @@ for buffer selection." (bs--restore-window-config) (setq bs--window-config-coming-from (current-window-configuration)) (when (> (window-height (selected-window)) 7) - (select-window (split-window-below)))) + ;; Errors would mess with the window configuration (bug#10882). + (ignore-errors (select-window (split-window-below))))) (bs-show-in-buffer liste) (bs-message-without-log "%s" (bs--current-config-message))))) -- 2.39.2