aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ffap.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ffap.el')
-rw-r--r--lisp/ffap.el11
1 files changed, 3 insertions, 8 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el
index 1ea32b75f12..87531110b86 100644
--- a/lisp/ffap.el
+++ b/lisp/ffap.el
@@ -1768,14 +1768,9 @@ Return value:
1768 "Like `ffap', but put buffer in another window. 1768 "Like `ffap', but put buffer in another window.
1769Only intended for interactive use." 1769Only intended for interactive use."
1770 (interactive) 1770 (interactive)
1771 (let (value) 1771 (pcase (save-window-excursion (call-interactively 'ffap))
1772 (switch-to-buffer-other-window 1772 ((or (and (pred bufferp) b) `(,(and (pred bufferp) b) . ,_))
1773 (save-window-excursion 1773 (switch-to-buffer-other-window b))))
1774 (setq value (call-interactively 'ffap))
1775 (unless (or (bufferp value) (bufferp (car-safe value)))
1776 (setq value (current-buffer)))
1777 (current-buffer)))
1778 value))
1779 1774
1780(defun ffap-other-frame () 1775(defun ffap-other-frame ()
1781 "Like `ffap', but put buffer in another frame. 1776 "Like `ffap', but put buffer in another frame.