From: Chong Yidong Date: Sun, 4 Nov 2012 03:25:18 +0000 (+0800) Subject: * bookmark.el (bookmark-bmenu-switch-other-window): Avoid binding same-window-* varia... X-Git-Tag: emacs-24.3.90~173^2~9^2~167 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2cbafa5672c8ed115a851368b9f2e435152b4643;p=emacs.git * bookmark.el (bookmark-bmenu-switch-other-window): Avoid binding same-window-* variables. --- 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."