buffer-mode(2)buffer-mode - Change a local buffer mode
named-buffer-mode - Change a named buffer mode
add-mode - Set a local buffer mode
delete-mode - Remove a local buffer mode
unmark-buffer - Remove buffer change flag
n buffer-mode "mode" (C-x m)
n named-buffer-mode "buffer-name" "mode"
add-mode "mode"
delete-mode "mode"
unmark-buffer
buffer-mode changes the state of a given buffer mode, affecting only the current buffer. A buffer's mode affects the behavior of MicroEmacs '02. The about(2) command gives a list of the current global and buffer modes. Refer to Operating Modes for a description of the buffer modes.
The argument n when given, has the following meaning:
Delete Add toggle Mode -1 1 0 Use "mode" -2 2 130 auto -3 3 131 autosv -4 4 132 backup -5 5 133 binary -6 6 134 cmode -7 7 135 crlf -8 8 136 crypt -9 9 137 ctrlz -10 10 138 del -11 11 139 dir -12 12 140 edit -13 13 141 exact -14 14 142 hide -15 15 143 indent -16 16 144 justify -17 17 145 letter -18 18 146 line -19 19 147 lock -20 10 148 magic -21 21 149 nact -22 22 150 narrow -23 23 151 over -24 24 152 pipe -25 25 153 quiet -26 26 154 rbin -27 27 155 save -28 28 156 tab -29 29 157 time -30 30 158 undo -31 31 159 usr1 -32 32 160 usr2 -33 33 161 usr3 -34 34 162 usr4 -35 35 163 usr5 -36 36 164 usr6 -37 37 165 usr7 -38 38 166 usr8 -39 39 167 view -40 40 168 wrap
Note that when omitted the default argument is 0, i.e. prompt for and toggle a mode.
named-buffer-mode changes the state of a given buffer mode for a given buffer which may not be the current buffer.
add-mode and delete-mode are macros which use buffer-mode to add and remove a buffer mode. unmark-buffer is also a macro which removes the edit flag from the current buffer. They are defined for backward compatibility with MicroEMACS v3.8 and can be found in meme3_8.emf; add-mode is defined as follows:
define-macro add-mode ; Has the require mode been given as an argument, if so add it !force 1 buffer-mode @1 !if ¬ $status ; No - use 1 buffer-mode to add a mode !nma 1 buffer-mode !endif !emacro
When a buffer is created it inherits the current global mode state.
(c) Copyright JASSPA 2002
Last Modified: 2001/12/18
Generated On: 2002/01/06