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.
This commit is contained in:
Juanma Barranquero 2012-02-26 00:26:40 +01:00
parent 7e05b1ec63
commit ea8fb88d46
2 changed files with 8 additions and 1 deletions

View file

@ -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

View file

@ -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)))))