;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/artdebug.scm,v 1.4 1991/02/15 18:13:01 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/artdebug.scm,v 1.5 1991/05/06 00:54:58 cph Exp $
;;;
;;; Copyright (c) 1989-91 Massachusetts Institute of Technology
;;;
()
(debugger-command-invocation command/condition-restart))
-(define-major-mode continuation-browser fundamental "Debug"
+(define-major-mode continuation-browser read-only "Debug"
"You are in the Scheme debugger, where you can do the following:
\\[continuation-browser-show-all-frames] shows All bindings of the current environment and its ancestors.
;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/bufmnu.scm,v 1.114 1991/05/02 01:12:36 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/bufmnu.scm,v 1.115 1991/05/06 00:56:07 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-91 Massachusetts Institute of Technology
;;;
(set-buffer-point! buffer (line-start (buffer-start buffer) 2))
(set-buffer-read-only! buffer))
\f
-(define-major-mode buffer-menu fundamental "Buffer Menu"
+(define-major-mode buffer-menu read-only-noarg "Buffer Menu"
"Major mode for editing a list of buffers.
Each line describes a buffer in the editor.
m -- mark buffer to be displayed.
;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/info.scm,v 1.101 1991/04/24 00:37:39 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/info.scm,v 1.102 1991/05/06 00:55:53 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-91 Massachusetts Institute of Technology
;;;
"Mark pointing at end of current Info file's tag table,
or #F if file has no tag table.")
\f
-(define-major-mode info fundamental "Info"
+(define-major-mode info read-only-noarg "Info"
"Info mode provides commands for browsing through the Info documentation tree.
Documentation in Info is divided into \"nodes\", each of which
discusses one topic and contains references to other nodes
;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/modefs.scm,v 1.125 1991/05/02 01:13:52 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/modefs.scm,v 1.126 1991/05/06 00:55:21 cph Exp $
;;;
;;; Copyright (c) 1985, 1989-91 Massachusetts Institute of Technology
;;;
(define-major-mode fundamental #f "Fundamental"
"Major mode not specialized for anything in particular.
-Most other major modes are defined by comparison to this one."
- (event-distributor/invoke! (ref-variable fundamental-mode-hook)))
-
-(define-variable fundamental-mode-hook
- "An event distributor that is invoked when entering Fundamental mode."
- (make-event-distributor))
+Most other major modes are defined by comparison to this one.")
(define-variable editor-default-mode
"The default major mode for new buffers."
and the cdrs of which are major modes."
(os/file-type-to-major-mode))
-(define-default-key 'fundamental '^r-bad-command)
-
+(define-default-key 'fundamental 'undefined)
(define-key 'fundamental char-set:graphic 'self-insert-command)
(define-key 'fundamental char-set:numeric 'auto-digit-argument)
(define-key 'fundamental #\- 'auto-negative-argument)
-
(define-key 'fundamental #\rubout 'delete-backward-char)
+
+(define-major-mode read-only fundamental "Read-only"
+ "Major mode for read-only buffers.
+Like Fundamental mode, but no self-inserting characters.
+Digits and - are bound to prefix argument commands.")
+
+(define-key 'read-only char-set:graphic 'undefined)
+(define-key 'read-only char-set:numeric 'digit-argument)
+(define-key 'read-only #\- 'negative-argument)
+
+(define-major-mode read-only-noarg fundamental "Read-only-noarg"
+ "Major mode for read-only buffers.
+Like Fundamental mode, but no self-inserting characters.")
+
+(define-key 'read-only char-set:graphic 'undefined)
\f
(define-key 'fundamental #\c-% 'replace-string)
(define-key 'fundamental #\c-- 'negative-argument)