diff options
author | Chong Yidong <cyd@gnu.org> | 2012-11-04 11:25:18 +0800 |
---|---|---|
committer | Chong Yidong <cyd@gnu.org> | 2012-11-04 11:25:18 +0800 |
commit | 2cbafa5672c8ed115a851368b9f2e435152b4643 (patch) | |
tree | 0b60f90d1cbe1fd4627d63a2d81013917311d94f /lisp/bookmark.el | |
parent | 85178ca1361874a4ce78f13b827d5c3fa8687856 (diff) | |
download | emacs-2cbafa5672c8ed115a851368b9f2e435152b4643.tar.gz |
* bookmark.el (bookmark-bmenu-switch-other-window): Avoid binding same-window-* variables.
Diffstat (limited to 'lisp/bookmark.el')
-rw-r--r-- | lisp/bookmark.el | 6 |
1 files changed, 2 insertions, 4 deletions
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." |