Commit 7ca8fc42 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

lisp/bs.el (bs-cycle-next): Pass current buffer to `bury-buffer'.

Fixes: debbugs:8911
parent 7d2a1c5e
2011-06-26 Juanma Barranquero <lekktu@gmail.com>
* bs.el (bs-cycle-next): Pass current buffer to `bury-buffer' to
avoid deleting the current window in some cases (bug#8911).
2011-06-26 Andreas Schwab <schwab@linux-m68k.org> 2011-06-26 Andreas Schwab <schwab@linux-m68k.org>
* emacs-lisp/smie.el (smie-bnf->prec2): Fix last change. * emacs-lisp/smie.el (smie-bnf->prec2): Fix last change.
......
...@@ -1214,8 +1214,8 @@ by buffer configuration `bs-cycle-configuration-name'." ...@@ -1214,8 +1214,8 @@ by buffer configuration `bs-cycle-configuration-name'."
(cycle-list (cdr tupel))) (cycle-list (cdr tupel)))
(unless (window-dedicated-p (selected-window)) (unless (window-dedicated-p (selected-window))
;; We don't want the frame iconified if the only window in the frame ;; We don't want the frame iconified if the only window in the frame
;; happens to be dedicated; let's get the error from switch-to-buffer ;; happens to be dedicated
(bury-buffer)) (bury-buffer (current-buffer)))
(switch-to-buffer next) (switch-to-buffer next)
(setq bs--cycle-list (append (cdr cycle-list) (setq bs--cycle-list (append (cdr cycle-list)
(list (car cycle-list)))) (list (car cycle-list))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment