Mercurial > emacs
diff lisp/view.el @ 256:7e4c7ef44243
*** empty log message ***
author | Roland McGrath <roland@gnu.org> |
---|---|
date | Thu, 09 May 1991 21:50:34 +0000 |
parents | a25bf36b0410 |
children | 5d45fc2b81e9 |
line wrap: on
line diff
--- a/lisp/view.el Thu May 09 17:10:09 1991 +0000 +++ b/lisp/view.el Thu May 09 21:50:34 1991 +0000 @@ -90,6 +90,7 @@ ) +;;;###autoload (defun view-file (file-name) "View FILE in View mode, returning to previous buffer when done. The usual Emacs commands are not available; instead, @@ -108,6 +109,7 @@ (and (not had-a-buf) (not (buffer-modified-p buf-to-view)) 'kill-buffer)))) +;;;###autoload (defun view-buffer (buffer-name) "View BUFFER in View mode, returning to previous buffer when done. The usual Emacs commands are not available; instead, @@ -122,6 +124,7 @@ (switch-to-buffer buffer-name t) (view-mode old-buf nil))) +;;;###autoload (defun view-mode (&optional prev-buffer action) "Major mode for viewing text but not editing it. Letters do not insert themselves. Instead these commands are provided.