From: Juanma Barranquero Date: Sat, 25 Feb 2012 23:26:40 +0000 (+0100) Subject: lisp/bs.el: Fix bug#10882 X-Git-Tag: emacs-pretest-24.0.94~14 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea8fb88d46c612939011aad40dd131e1f9659c91;p=emacs.git 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. --- 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)))))