Function: ebrowse-view-file-other-frame

ebrowse-view-file-other-frame is an interactive and byte-compiled function defined in ebrowse.el.gz.

Signature

(ebrowse-view-file-other-frame FILE)

Documentation

View FILE in another frame.

The new frame is deleted when you quit viewing the file in that frame.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/ebrowse.el.gz
(defun ebrowse-view-file-other-frame (file)
  "View FILE in another frame.
The new frame is deleted when you quit viewing the file in that frame."
  (interactive "fIn other frame view file: ")
  (let ((old-frame-configuration (current-frame-configuration))
	(had-a-buf (get-file-buffer file))
	(buf-to-view (find-file-noselect file)))
    (switch-to-buffer-other-frame buf-to-view)
    (setq-local ebrowse--frame-configuration
         old-frame-configuration)
    (setq-local ebrowse--view-exit-action
         (and (not had-a-buf)
              (not (buffer-modified-p buf-to-view))
              #'kill-buffer))
    (view-mode-enter (cons (selected-window) (cons (selected-window) t))
		     'ebrowse-view-exit-fn)))