Function: ffap-other-window

ffap-other-window is an interactive and byte-compiled function defined in ffap.el.gz.

Signature

(ffap-other-window FILENAME)

Documentation

Like ffap, but put buffer in another window.

Only intended for interactive use.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/ffap.el.gz
;;; ffap-other-*, ffap-read-only-*, ffap-alternate-* commands:

;; There could be a real `ffap-noselect' function, but we would need
;; at least two new user variables, and there is no w3-fetch-noselect.
;; So instead, we just fake it with a slow save-window-excursion.

(defun ffap-other-window (filename)
  "Like `ffap', but put buffer in another window.
Only intended for interactive use."
  (interactive (list (ffap-prompter nil " other window")))
  (pcase (save-window-excursion (find-file-at-point filename))
    ((or (and (pred bufferp) b) `(,(and (pred bufferp) b) . ,_))
     (switch-to-buffer-other-window b))))