aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2011-06-26 13:23:23 +0200
committerJuanma Barranquero2011-06-26 13:23:23 +0200
commit7ca8fc42baeb89a0d5f84b6c8549fdf6f3d8d0e6 (patch)
tree9a6468be38d8d87ac00f2685160883b4ee4a6e8d
parent7d2a1c5ef54c81ba041cb74ab29d8deae76c5dfd (diff)
downloademacs-7ca8fc42baeb89a0d5f84b6c8549fdf6f3d8d0e6.tar.gz
emacs-7ca8fc42baeb89a0d5f84b6c8549fdf6f3d8d0e6.zip
lisp/bs.el (bs-cycle-next): Pass current buffer to `bury-buffer'.
Fixes: debbugs:8911
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/bs.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d86248454be..0dde4aa62bb 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-06-26 Juanma Barranquero <lekktu@gmail.com>
2
3 * bs.el (bs-cycle-next): Pass current buffer to `bury-buffer' to
4 avoid deleting the current window in some cases (bug#8911).
5
12011-06-26 Andreas Schwab <schwab@linux-m68k.org> 62011-06-26 Andreas Schwab <schwab@linux-m68k.org>
2 7
3 * emacs-lisp/smie.el (smie-bnf->prec2): Fix last change. 8 * emacs-lisp/smie.el (smie-bnf->prec2): Fix last change.
diff --git a/lisp/bs.el b/lisp/bs.el
index 95dc371e57b..73f8d0bf52a 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -1214,8 +1214,8 @@ by buffer configuration `bs-cycle-configuration-name'."
1214 (cycle-list (cdr tupel))) 1214 (cycle-list (cdr tupel)))
1215 (unless (window-dedicated-p (selected-window)) 1215 (unless (window-dedicated-p (selected-window))
1216 ;; We don't want the frame iconified if the only window in the frame 1216 ;; We don't want the frame iconified if the only window in the frame
1217 ;; happens to be dedicated; let's get the error from switch-to-buffer 1217 ;; happens to be dedicated
1218 (bury-buffer)) 1218 (bury-buffer (current-buffer)))
1219 (switch-to-buffer next) 1219 (switch-to-buffer next)
1220 (setq bs--cycle-list (append (cdr cycle-list) 1220 (setq bs--cycle-list (append (cdr cycle-list)
1221 (list (car cycle-list)))) 1221 (list (car cycle-list))))