From 2cbafa5672c8ed115a851368b9f2e435152b4643 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sun, 4 Nov 2012 11:25:18 +0800 Subject: [PATCH] * bookmark.el (bookmark-bmenu-switch-other-window): Avoid binding same-window-* variables. --- lisp/ChangeLog | 5 +++++ lisp/bookmark.el | 6 ++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 84d70ccab18..ce4919afa2b 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-11-04 Chong Yidong + + * bookmark.el (bookmark-bmenu-switch-other-window): Avoid binding + same-window-* variables. + 2012-11-04 Juri Linkov * isearch.el (isearch-help-for-help, isearch-describe-bindings) diff --git a/lisp/bookmark.el b/lisp/bookmark.el index 78ca6f22c8e..e3fdf1847b8 100644 --- a/lisp/bookmark.el +++ b/lisp/bookmark.el @@ -1873,10 +1873,8 @@ With a prefix arg, prompts for a file to save them in." The current window remains selected." (interactive) (let ((bookmark (bookmark-bmenu-bookmark)) - (pop-up-windows t) - same-window-buffer-names - same-window-regexps) - (bookmark--jump-via bookmark 'display-buffer))) + (fun (lambda (b) (display-buffer b t)))) + (bookmark--jump-via bookmark fun))) (defun bookmark-bmenu-other-window-with-mouse (event) "Select bookmark at the mouse pointer in other window, leaving bookmark menu visible." -- 2.39.5