diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2012-02-26 00:26:40 +0100 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2012-02-26 00:26:40 +0100 |
commit | ea8fb88d46c612939011aad40dd131e1f9659c91 (patch) | |
tree | 16bd79968c28c5391f5387a0e4238bf58ed2012f | |
parent | 7e05b1ec635842490a459b300a0e4194d7035c27 (diff) | |
download | emacs-ea8fb88d46c612939011aad40dd131e1f9659c91.tar.gz |
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.
-rw-r--r-- | lisp/ChangeLog | 6 | ||||
-rw-r--r-- | lisp/bs.el | 3 |
2 files changed, 8 insertions, 1 deletions
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 <lekktu@gmail.com> + + * 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 <jan.h.d@swipnet.se> * 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))))) |