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:
parent
7e05b1ec63
commit
ea8fb88d46
2 changed files with 8 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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)))))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue