Function: ffap-other-tab

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

Signature

(ffap-other-tab FILENAME)

Documentation

Like ffap, but put buffer in another tab.

Only intended for interactive use.

Key Bindings

Source Code

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