Function: find-file-read-only-other-tab

find-file-read-only-other-tab is an interactive and byte-compiled function defined in tab-bar.el.gz.

Signature

(find-file-read-only-other-tab FILENAME &optional WILDCARDS)

Documentation

Edit file FILENAME, in another tab, but don't allow changes.

Like C-x 5 C-f (find-file-other-frame) (which see), but creates a new tab. Like C-x t C-f (find-file-other-tab), but marks buffer as read-only. Use C-x C-q (read-only-mode) to permit editing. Interactively, prompt for FILENAME. If WILDCARDS is non-nil, FILENAME can include widcards, and all matching files will be visited.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/tab-bar.el.gz
(defun find-file-read-only-other-tab (filename &optional wildcards)
  "Edit file FILENAME, in another tab, but don't allow changes.
Like \\[find-file-other-frame] (which see), but creates a new tab.
Like \\[find-file-other-tab], but marks buffer as read-only.
Use \\[read-only-mode] to permit editing.
Interactively, prompt for FILENAME.
If WILDCARDS is non-nil, FILENAME can include widcards, and all matching
files will be visited."
  (interactive
   (find-file-read-args "Find file read-only in other tab: "
                        (confirm-nonexistent-file-or-buffer)))
  (find-file--read-only (lambda (filename wildcards)
                          (window-buffer
                           (find-file-other-tab filename wildcards)))
                        filename wildcards))