Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
5a021dd0
Commit
5a021dd0
authored
Sep 02, 2009
by
Glenn Morris
Browse files
(default-major-mode): Move most of the doc from here...
(major-mode): ... to here.
parent
6e2ca895
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
10 deletions
+16
-10
src/ChangeLog
src/ChangeLog
+5
-0
src/buffer.c
src/buffer.c
+11
-10
No files found.
src/ChangeLog
View file @
5a021dd0
2009-09-02 Glenn Morris <rgm@gnu.org>
* buffer.c (default-major-mode): Move most of the doc from here...
(major-mode): ... to here.
2009-08-30 Nick Roberts <nickrob@snap.net.nz>
* process.c (wait_reading_process_output): Keep the descriptor
...
...
src/buffer.c
View file @
5a021dd0
...
...
@@ -5703,19 +5703,20 @@ A string is printed verbatim in the mode line except for %-constructs:
Decimal digits after the % specify field width to which to pad. */);
DEFVAR_LISP_NOPRO ("default-major-mode", &buffer_defaults.major_mode,
doc: /* *Major mode for new buffers. Defaults to `fundamental-mode'.
A value of nil means use current buffer's major mode,
provided it is not marked as "special".
When a mode is used by default, `find-file' switches to it
before it reads the contents into the buffer and before
it finishes setting up the buffer. Thus, the mode and
its hooks should not expect certain variables such as
`buffer-read-only' and `buffer-file-coding-system' to be set up. */);
doc: /* *Value of `major-mode' for new buffers. */);
DEFVAR_PER_BUFFER ("major-mode", ¤t_buffer->major_mode,
make_number (Lisp_Symbol),
doc: /* Symbol for current buffer's major mode. */);
doc: /* Symbol for current buffer's major mode.
The default value (normally `fundamental-mode') affects new buffers.
A value of nil means to use the current buffer's major mode, provided
it is not marked as "special".
When a mode is used by default, `find-file' switches to it before it
reads the contents into the buffer and before it finishes setting up
the buffer. Thus, the mode and its hooks should not expect certain
variables such as `buffer-read-only' and `buffer-file-coding-system'
to be set up. */);
DEFVAR_PER_BUFFER ("mode-name", ¤t_buffer->mode_name,
Qnil,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment