diff options
| author | Stefan Monnier | 2009-08-27 04:24:00 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2009-08-27 04:24:00 +0000 |
| commit | 4e3b4528ea1425c1fa82221c41d1c45294064b11 (patch) | |
| tree | d1db79ae5904b0055e63dd12649ab9311cd2b687 /doc | |
| parent | b3cca6a6971a38204dcbd11c45b0f67781c0b39b (diff) | |
| download | emacs-4e3b4528ea1425c1fa82221c41d1c45294064b11.tar.gz emacs-4e3b4528ea1425c1fa82221c41d1c45294064b11.zip | |
* subr.el (default-mode-line-format, default-header-line-format)
(default-line-spacing, default-abbrev-mode, default-ctl-arrow)
(default-direction-reversed, default-truncate-lines)
(default-left-margin, default-tab-width, default-case-fold-search)
(default-left-margin-width, default-right-margin-width)
(default-left-fringe-width, default-right-fringe-width)
(default-fringes-outside-margins, default-scroll-bar-width)
(default-vertical-scroll-bar, default-indicate-empty-lines)
(default-indicate-buffer-boundaries, default-fringe-indicator-alist)
(default-fringe-cursor-alist, default-scroll-up-aggressively)
(default-scroll-down-aggressively, default-fill-column)
(default-cursor-type, default-buffer-file-type)
(default-cursor-in-non-selected-windows)
(default-buffer-file-coding-system, default-major-mode)
(default-enable-multibyte-characters): Mark as obsolete.
* cus-start.el (default-major-mode): Customize `major-mode' instead.
(enable-multibyte-characters): Not customizable any more.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/buffers.texi | 4 | ||||
| -rw-r--r-- | doc/emacs/display.texi | 5 | ||||
| -rw-r--r-- | doc/emacs/major.texi | 9 | ||||
| -rw-r--r-- | doc/emacs/mule.texi | 25 | ||||
| -rw-r--r-- | doc/emacs/search.texi | 12 | ||||
| -rw-r--r-- | doc/lispintro/emacs-lisp-intro.texi | 18 | ||||
| -rw-r--r-- | doc/lispref/abbrevs.texi | 5 | ||||
| -rw-r--r-- | doc/lispref/buffers.texi | 8 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 36 | ||||
| -rw-r--r-- | doc/lispref/loading.texi | 5 | ||||
| -rw-r--r-- | doc/lispref/modes.texi | 38 | ||||
| -rw-r--r-- | doc/lispref/nonascii.texi | 36 | ||||
| -rw-r--r-- | doc/lispref/processes.texi | 6 | ||||
| -rw-r--r-- | doc/lispref/searching.texi | 11 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 10 | ||||
| -rw-r--r-- | doc/lispref/windows.texi | 4 | ||||
| -rw-r--r-- | doc/misc/faq.texi | 5 |
17 files changed, 71 insertions, 166 deletions
diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi index 848d1333a3c..cd7e42d9236 100644 --- a/doc/emacs/buffers.texi +++ b/doc/emacs/buffers.texi | |||
| @@ -117,8 +117,8 @@ variable also affects the @code{find-file} command (@pxref{Visiting}). | |||
| 117 | 117 | ||
| 118 | One reason to create a new buffer is to use it for making temporary | 118 | One reason to create a new buffer is to use it for making temporary |
| 119 | notes. If you try to save it, Emacs asks for the file name to use. | 119 | notes. If you try to save it, Emacs asks for the file name to use. |
| 120 | The variable @code{default-major-mode} determines the new buffer's | 120 | The default value of the variable @code{major-mode} determines the new |
| 121 | major mode; the default value is Fundamental mode. @xref{Major | 121 | buffer's major mode; the default value is Fundamental mode. @xref{Major |
| 122 | Modes}. | 122 | Modes}. |
| 123 | 123 | ||
| 124 | @kindex C-x @key{LEFT} | 124 | @kindex C-x @key{LEFT} |
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index efd543598a8..7164e33598f 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi | |||
| @@ -822,11 +822,6 @@ both arrow bitmaps in right fringe. To show just the angle bitmaps in | |||
| 822 | the left fringe, but no arrow bitmaps, use @code{((top . left) | 822 | the left fringe, but no arrow bitmaps, use @code{((top . left) |
| 823 | (bottom . left))}. | 823 | (bottom . left))}. |
| 824 | 824 | ||
| 825 | @vindex default-indicate-buffer-boundaries | ||
| 826 | The value of the variable @code{default-indicate-buffer-boundaries} | ||
| 827 | is the default value for @code{indicate-buffer-boundaries} in buffers | ||
| 828 | that do not override it. | ||
| 829 | |||
| 830 | @node Useless Whitespace | 825 | @node Useless Whitespace |
| 831 | @section Useless Whitespace | 826 | @section Useless Whitespace |
| 832 | 827 | ||
diff --git a/doc/emacs/major.texi b/doc/emacs/major.texi index 545b7080ee7..674239ba5c6 100644 --- a/doc/emacs/major.texi +++ b/doc/emacs/major.texi | |||
| @@ -196,13 +196,12 @@ only after @code{auto-mode-alist}. By default, | |||
| 196 | @code{magic-fallback-mode-alist} contains forms that check for image | 196 | @code{magic-fallback-mode-alist} contains forms that check for image |
| 197 | files, HTML/XML/SGML files, and Postscript files. | 197 | files, HTML/XML/SGML files, and Postscript files. |
| 198 | 198 | ||
| 199 | @vindex default-major-mode | ||
| 200 | When you visit a file that does not specify a major mode to use, or | 199 | When you visit a file that does not specify a major mode to use, or |
| 201 | when you create a new buffer with @kbd{C-x b}, the variable | 200 | when you create a new buffer with @kbd{C-x b}, the default value of |
| 202 | @code{default-major-mode} specifies which major mode to use. Normally | 201 | the variable @code{major-mode} specifies which major mode to use. Normally |
| 203 | its value is the symbol @code{fundamental-mode}, which specifies | 202 | its value is the symbol @code{fundamental-mode}, which specifies |
| 204 | Fundamental mode. If @code{default-major-mode} is @code{nil}, the | 203 | Fundamental mode. If the default value of @code{major-mode} is @code{nil}, |
| 205 | major mode is taken from the previously current buffer. | 204 | the major mode is taken from the previously current buffer. |
| 206 | 205 | ||
| 207 | @findex normal-mode | 206 | @findex normal-mode |
| 208 | If you change the major mode of a buffer, you can go back to the major | 207 | If you change the major mode of a buffer, you can go back to the major |
diff --git a/doc/emacs/mule.texi b/doc/emacs/mule.texi index 98713c79227..663011d6f32 100644 --- a/doc/emacs/mule.texi +++ b/doc/emacs/mule.texi | |||
| @@ -269,14 +269,10 @@ Coding}. Unlike @code{find-file-literally}, finding a file as | |||
| 269 | auto mode selection. | 269 | auto mode selection. |
| 270 | 270 | ||
| 271 | @vindex enable-multibyte-characters | 271 | @vindex enable-multibyte-characters |
| 272 | @vindex default-enable-multibyte-characters | ||
| 273 | @cindex environment variables, and non-@acronym{ASCII} characters | 272 | @cindex environment variables, and non-@acronym{ASCII} characters |
| 274 | To turn off multibyte character support by default, start Emacs with | 273 | To turn off multibyte character support by default, start Emacs with |
| 275 | the @samp{--unibyte} option (@pxref{Initial Options}), or set the | 274 | the @samp{--unibyte} option (@pxref{Initial Options}), or set the |
| 276 | environment variable @env{EMACS_UNIBYTE}. You can also customize | 275 | environment variable @env{EMACS_UNIBYTE}. |
| 277 | @code{enable-multibyte-characters} or, equivalently, directly set the | ||
| 278 | variable @code{default-enable-multibyte-characters} to @code{nil} in | ||
| 279 | your init file to have basically the same effect as @samp{--unibyte}. | ||
| 280 | With @samp{--unibyte}, multibyte strings are not created during | 276 | With @samp{--unibyte}, multibyte strings are not created during |
| 281 | initialization from the values of environment variables, | 277 | initialization from the values of environment variables, |
| 282 | @file{/etc/passwd} entries etc., even if those contain | 278 | @file{/etc/passwd} entries etc., even if those contain |
| @@ -307,12 +303,8 @@ are not enabled, nothing precedes the colon except a single dash. | |||
| 307 | @xref{Mode Line}, for more details about this. | 303 | @xref{Mode Line}, for more details about this. |
| 308 | 304 | ||
| 309 | @findex toggle-enable-multibyte-characters | 305 | @findex toggle-enable-multibyte-characters |
| 310 | To convert a unibyte session to a multibyte session, set | 306 | You can turn on multibyte support in a specific buffer by invoking the |
| 311 | @code{default-enable-multibyte-characters} to @code{t}. Buffers which | 307 | command @code{toggle-enable-multibyte-characters} in that buffer. |
| 312 | were created in the unibyte session before you turn on multibyte | ||
| 313 | support will stay unibyte. You can turn on multibyte support in a | ||
| 314 | specific buffer by invoking the command | ||
| 315 | @code{toggle-enable-multibyte-characters} in that buffer. | ||
| 316 | 308 | ||
| 317 | @node Language Environments | 309 | @node Language Environments |
| 318 | @section Language Environments | 310 | @section Language Environments |
| @@ -1058,12 +1050,11 @@ immediately following command does not use the coding system, then | |||
| 1058 | An easy way to visit a file with no conversion is with the @kbd{M-x | 1050 | An easy way to visit a file with no conversion is with the @kbd{M-x |
| 1059 | find-file-literally} command. @xref{Visiting}. | 1051 | find-file-literally} command. @xref{Visiting}. |
| 1060 | 1052 | ||
| 1061 | @vindex default-buffer-file-coding-system | 1053 | The default value of the variable @code{buffer-file-coding-system} |
| 1062 | The variable @code{default-buffer-file-coding-system} specifies the | 1054 | specifies the choice of coding system to use when you create a new file. |
| 1063 | choice of coding system to use when you create a new file. It applies | 1055 | It applies when you find a new file, and when you create a buffer and |
| 1064 | when you find a new file, and when you create a buffer and then save it | 1056 | then save it in a file. Selecting a language environment typically sets |
| 1065 | in a file. Selecting a language environment typically sets this | 1057 | this variable to a good choice of default coding system for that language |
| 1066 | variable to a good choice of default coding system for that language | ||
| 1067 | environment. | 1058 | environment. |
| 1068 | 1059 | ||
| 1069 | @kindex C-x RET r | 1060 | @kindex C-x RET r |
diff --git a/doc/emacs/search.texi b/doc/emacs/search.texi index 304ca1c6e97..0b3ccd925f2 100644 --- a/doc/emacs/search.texi +++ b/doc/emacs/search.texi | |||
| @@ -949,15 +949,13 @@ effect of adding or removing an upper-case letter in the current | |||
| 949 | search. | 949 | search. |
| 950 | 950 | ||
| 951 | @vindex case-fold-search | 951 | @vindex case-fold-search |
| 952 | @vindex default-case-fold-search | ||
| 953 | If you set the variable @code{case-fold-search} to @code{nil}, then | 952 | If you set the variable @code{case-fold-search} to @code{nil}, then |
| 954 | all letters must match exactly, including case. This is a per-buffer | 953 | all letters must match exactly, including case. This is a per-buffer |
| 955 | variable; altering the variable affects only the current buffer, but | 954 | variable; altering the variable normally affects only the current buffer, |
| 956 | there is a default value in @code{default-case-fold-search} that you | 955 | unless you change its default value. @xref{Locals}. |
| 957 | can also set. @xref{Locals}. This variable applies to nonincremental | 956 | This variable applies to nonincremental searches also, including those |
| 958 | searches also, including those performed by the replace commands | 957 | performed by the replace commands (@pxref{Replace}) and the minibuffer |
| 959 | (@pxref{Replace}) and the minibuffer history matching commands | 958 | history matching commands (@pxref{Minibuffer History}). |
| 960 | (@pxref{Minibuffer History}). | ||
| 961 | 959 | ||
| 962 | Several related variables control case-sensitivity of searching and | 960 | Several related variables control case-sensitivity of searching and |
| 963 | matching for specific commands or activities. For instance, | 961 | matching for specific commands or activities. For instance, |
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi index fbf1719b678..2d74991188a 100644 --- a/doc/lispintro/emacs-lisp-intro.texi +++ b/doc/lispintro/emacs-lisp-intro.texi | |||
| @@ -17393,21 +17393,21 @@ Here is the line again; how does it work? | |||
| 17393 | 17393 | ||
| 17394 | @cindex Text Mode turned on | 17394 | @cindex Text Mode turned on |
| 17395 | @smallexample | 17395 | @smallexample |
| 17396 | (setq default-major-mode 'text-mode) | 17396 | (setq major-mode 'text-mode) |
| 17397 | @end smallexample | 17397 | @end smallexample |
| 17398 | 17398 | ||
| 17399 | @noindent | 17399 | @noindent |
| 17400 | This line is a short, but complete Emacs Lisp expression. | 17400 | This line is a short, but complete Emacs Lisp expression. |
| 17401 | 17401 | ||
| 17402 | We are already familiar with @code{setq}. It sets the following variable, | 17402 | We are already familiar with @code{setq}. It sets the following variable, |
| 17403 | @code{default-major-mode}, to the subsequent value, which is | 17403 | @code{major-mode}, to the subsequent value, which is @code{text-mode}. |
| 17404 | @code{text-mode}. The single quote mark before @code{text-mode} tells | 17404 | The single quote mark before @code{text-mode} tells Emacs to deal directly |
| 17405 | Emacs to deal directly with the @code{text-mode} variable, not with | 17405 | with the @code{text-mode} symbol, not with whatever it might stand for. |
| 17406 | whatever it might stand for. @xref{set & setq, , Setting the Value of | 17406 | @xref{set & setq, , Setting the Value of a Variable}, |
| 17407 | a Variable}, for a reminder of how @code{setq} works. The main point | 17407 | for a reminder of how @code{setq} works. |
| 17408 | is that there is no difference between the procedure you use to set | 17408 | The main point is that there is no difference between the procedure you |
| 17409 | a value in your @file{.emacs} file and the procedure you use anywhere | 17409 | use to set a value in your @file{.emacs} file and the procedure you use |
| 17410 | else in Emacs. | 17410 | anywhere else in Emacs. |
| 17411 | 17411 | ||
| 17412 | @need 800 | 17412 | @need 800 |
| 17413 | Here is the next line: | 17413 | Here is the next line: |
diff --git a/doc/lispref/abbrevs.texi b/doc/lispref/abbrevs.texi index 9e14c3d4e9b..807b6d6abc0 100644 --- a/doc/lispref/abbrevs.texi +++ b/doc/lispref/abbrevs.texi | |||
| @@ -72,11 +72,6 @@ but they are not expanded automatically. | |||
| 72 | This variable automatically becomes buffer-local when set in any fashion. | 72 | This variable automatically becomes buffer-local when set in any fashion. |
| 73 | @end defopt | 73 | @end defopt |
| 74 | 74 | ||
| 75 | @defvar default-abbrev-mode | ||
| 76 | This is the value of @code{abbrev-mode} for buffers that do not | ||
| 77 | override it. It is the same as @code{(default-value 'abbrev-mode)}. | ||
| 78 | @end defvar | ||
| 79 | |||
| 80 | @node Abbrev Tables, Defining Abbrevs, Abbrev Mode, Abbrevs | 75 | @node Abbrev Tables, Defining Abbrevs, Abbrev Mode, Abbrevs |
| 81 | @section Abbrev Tables | 76 | @section Abbrev Tables |
| 82 | 77 | ||
diff --git a/doc/lispref/buffers.texi b/doc/lispref/buffers.texi index 97242d8d5de..331f0616348 100644 --- a/doc/lispref/buffers.texi +++ b/doc/lispref/buffers.texi | |||
| @@ -936,8 +936,8 @@ a string, it is returned as given, even if it is dead. | |||
| 936 | @end example | 936 | @end example |
| 937 | 937 | ||
| 938 | The major mode for a newly created buffer is set to Fundamental mode. | 938 | The major mode for a newly created buffer is set to Fundamental mode. |
| 939 | (The variable @code{default-major-mode} is handled at a higher level; | 939 | (The default value of the variable @code{major-mode} is handled at a higher |
| 940 | see @ref{Auto Major Mode}.) If the name begins with a space, the | 940 | level; see @ref{Auto Major Mode}.) If the name begins with a space, the |
| 941 | buffer initially disables undo information recording (@pxref{Undo}). | 941 | buffer initially disables undo information recording (@pxref{Undo}). |
| 942 | @end defun | 942 | @end defun |
| 943 | 943 | ||
| @@ -966,8 +966,8 @@ An error is signaled if @var{name} is not a string. | |||
| 966 | @end group | 966 | @end group |
| 967 | @end example | 967 | @end example |
| 968 | 968 | ||
| 969 | The major mode for the new buffer is set to Fundamental mode. The | 969 | The major mode for the new buffer is set to Fundamental mode. The default |
| 970 | variable @code{default-major-mode} is handled at a higher level. | 970 | value of the variable @code{major-mode} is handled at a higher level. |
| 971 | @xref{Auto Major Mode}. | 971 | @xref{Auto Major Mode}. |
| 972 | 972 | ||
| 973 | See the related function @code{generate-new-buffer-name} in @ref{Buffer | 973 | See the related function @code{generate-new-buffer-name} in @ref{Buffer |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 28c85042425..b2282b456b8 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -175,11 +175,6 @@ continued. As a special exception, the variable | |||
| 175 | entire frame width). | 175 | entire frame width). |
| 176 | @end defopt | 176 | @end defopt |
| 177 | 177 | ||
| 178 | @defopt default-truncate-lines | ||
| 179 | This variable is the default value for @code{truncate-lines}, for | ||
| 180 | buffers that do not have buffer-local values for it. | ||
| 181 | @end defopt | ||
| 182 | |||
| 183 | @defopt truncate-partial-width-windows | 178 | @defopt truncate-partial-width-windows |
| 184 | This variable controls line truncation in @dfn{partial-width} windows. | 179 | This variable controls line truncation in @dfn{partial-width} windows. |
| 185 | A partial-width window is one that does not occupy the entire frame | 180 | A partial-width window is one that does not occupy the entire frame |
| @@ -1768,8 +1763,8 @@ parts of Emacs text. | |||
| 1768 | @vindex default-line-spacing | 1763 | @vindex default-line-spacing |
| 1769 | On graphical terminals, you can specify the line spacing for all | 1764 | On graphical terminals, you can specify the line spacing for all |
| 1770 | lines in a frame, using the @code{line-spacing} frame parameter | 1765 | lines in a frame, using the @code{line-spacing} frame parameter |
| 1771 | (@pxref{Layout Parameters}). However, if the variable | 1766 | (@pxref{Layout Parameters}). However, if the default value of |
| 1772 | @code{default-line-spacing} is non-@code{nil}, it overrides the | 1767 | @code{line-spacing} is non-@code{nil}, it overrides the |
| 1773 | frame's @code{line-spacing} parameter. An integer value specifies the | 1768 | frame's @code{line-spacing} parameter. An integer value specifies the |
| 1774 | number of pixels put below lines. A floating point number specifies | 1769 | number of pixels put below lines. A floating point number specifies |
| 1775 | the spacing relative to the frame's default line height. | 1770 | the spacing relative to the frame's default line height. |
| @@ -3260,11 +3255,6 @@ arrow bitmaps in right fringe. To show the angle bitmaps in the left | |||
| 3260 | fringe, and no arrow bitmaps, use @code{((top . left) (bottom . left))}. | 3255 | fringe, and no arrow bitmaps, use @code{((top . left) (bottom . left))}. |
| 3261 | @end defopt | 3256 | @end defopt |
| 3262 | 3257 | ||
| 3263 | @defvar default-indicate-buffer-boundaries | ||
| 3264 | The value of this variable is the default value for | ||
| 3265 | @code{indicate-buffer-boundaries} in buffers that do not override it. | ||
| 3266 | @end defvar | ||
| 3267 | |||
| 3268 | @defvar fringe-indicator-alist | 3258 | @defvar fringe-indicator-alist |
| 3269 | This buffer-local variable specifies the mapping from logical fringe | 3259 | This buffer-local variable specifies the mapping from logical fringe |
| 3270 | indicators to the actual bitmaps displayed in the window fringes. | 3260 | indicators to the actual bitmaps displayed in the window fringes. |
| @@ -3308,17 +3298,12 @@ used in both left and right fringes. | |||
| 3308 | 3298 | ||
| 3309 | When @code{fringe-indicator-alist} has a buffer-local value, and there | 3299 | When @code{fringe-indicator-alist} has a buffer-local value, and there |
| 3310 | is no bitmap defined for a logical indicator, or the bitmap is | 3300 | is no bitmap defined for a logical indicator, or the bitmap is |
| 3311 | @code{t}, the corresponding value from the (non-local) | 3301 | @code{t}, the corresponding value from the default value of |
| 3312 | @code{default-fringe-indicator-alist} is used. | 3302 | @code{fringe-indicator-alist} is used. |
| 3313 | 3303 | ||
| 3314 | To completely hide a specific indicator, set the bitmap to @code{nil}. | 3304 | To completely hide a specific indicator, set the bitmap to @code{nil}. |
| 3315 | @end defvar | 3305 | @end defvar |
| 3316 | 3306 | ||
| 3317 | @defvar default-fringe-indicator-alist | ||
| 3318 | The value of this variable is the default value for | ||
| 3319 | @code{fringe-indicator-alist} in buffers that do not override it. | ||
| 3320 | @end defvar | ||
| 3321 | |||
| 3322 | Standard fringe bitmaps for indicators: | 3307 | Standard fringe bitmaps for indicators: |
| 3323 | @example | 3308 | @example |
| 3324 | left-arrow right-arrow up-arrow down-arrow | 3309 | left-arrow right-arrow up-arrow down-arrow |
| @@ -3371,12 +3356,7 @@ for that logical cursor type. | |||
| 3371 | 3356 | ||
| 3372 | When @code{fringe-cursor-alist} has a buffer-local value, and there is | 3357 | When @code{fringe-cursor-alist} has a buffer-local value, and there is |
| 3373 | no bitmap defined for a cursor type, the corresponding value from the | 3358 | no bitmap defined for a cursor type, the corresponding value from the |
| 3374 | (non-local) @code{default-fringes-indicator-alist} is used. | 3359 | default value of @code{fringes-indicator-alist} is used. |
| 3375 | @end defvar | ||
| 3376 | |||
| 3377 | @defvar default-fringes-cursor-alist | ||
| 3378 | The value of this variable is the default value for | ||
| 3379 | @code{fringe-cursor-alist} in buffers that do not override it. | ||
| 3380 | @end defvar | 3360 | @end defvar |
| 3381 | 3361 | ||
| 3382 | Standard bitmaps for displaying the cursor in right fringe: | 3362 | Standard bitmaps for displaying the cursor in right fringe: |
| @@ -5545,12 +5525,6 @@ followed by the character: @samp{^A}. If it is @code{nil}, they are | |||
| 5545 | displayed as a backslash followed by three octal digits: @samp{\001}. | 5525 | displayed as a backslash followed by three octal digits: @samp{\001}. |
| 5546 | @end defopt | 5526 | @end defopt |
| 5547 | 5527 | ||
| 5548 | @c Following may have overfull hbox. | ||
| 5549 | @defvar default-ctl-arrow | ||
| 5550 | The value of this variable is the default value for @code{ctl-arrow} in | ||
| 5551 | buffers that do not override it. @xref{Default Value}. | ||
| 5552 | @end defvar | ||
| 5553 | |||
| 5554 | @defopt tab-width | 5528 | @defopt tab-width |
| 5555 | The value of this buffer-local variable is the spacing between tab | 5529 | The value of this buffer-local variable is the spacing between tab |
| 5556 | stops used for displaying tab characters in Emacs buffers. The value | 5530 | stops used for displaying tab characters in Emacs buffers. The value |
diff --git a/doc/lispref/loading.texi b/doc/lispref/loading.texi index dc45ad88174..8ccc0071e2a 100644 --- a/doc/lispref/loading.texi +++ b/doc/lispref/loading.texi | |||
| @@ -376,10 +376,7 @@ decoding. | |||
| 376 | The reason Emacs is designed this way is so that Lisp programs give | 376 | The reason Emacs is designed this way is so that Lisp programs give |
| 377 | predictable results, regardless of how Emacs was started. In addition, | 377 | predictable results, regardless of how Emacs was started. In addition, |
| 378 | this enables programs that depend on using multibyte text to work even | 378 | this enables programs that depend on using multibyte text to work even |
| 379 | in a unibyte Emacs. Of course, such programs should be designed to | 379 | in a unibyte Emacs. |
| 380 | notice whether the user prefers unibyte or multibyte text, by checking | ||
| 381 | @code{default-enable-multibyte-characters}, and convert representations | ||
| 382 | appropriately. | ||
| 383 | 380 | ||
| 384 | In most Emacs Lisp programs, the fact that non-@acronym{ASCII} strings are | 381 | In most Emacs Lisp programs, the fact that non-@acronym{ASCII} strings are |
| 385 | multibyte strings should not be noticeable, since inserting them in | 382 | multibyte strings should not be noticeable, since inserting them in |
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 8313ef7fd70..3e3c7fa5465 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi | |||
| @@ -484,8 +484,8 @@ with value @code{special}, put on as follows: | |||
| 484 | 484 | ||
| 485 | @noindent | 485 | @noindent |
| 486 | This tells Emacs that new buffers created while the current buffer is | 486 | This tells Emacs that new buffers created while the current buffer is |
| 487 | in Funny mode should not inherit Funny mode, in case | 487 | in Funny mode should not inherit Funny mode, in case the default value |
| 488 | @code{default-major-mode} is @code{nil}. Modes such as Dired, Rmail, | 488 | of @code{major-mode} is @code{nil}. Modes such as Dired, Rmail, |
| 489 | and Buffer List use this feature. | 489 | and Buffer List use this feature. |
| 490 | 490 | ||
| 491 | The @code{define-derived-mode} macro automatically marks the derived | 491 | The @code{define-derived-mode} macro automatically marks the derived |
| @@ -559,7 +559,8 @@ If @code{normal-mode} processes the local variables list and this list | |||
| 559 | specifies a major mode, that mode overrides any mode chosen by | 559 | specifies a major mode, that mode overrides any mode chosen by |
| 560 | @code{set-auto-mode}. If neither @code{set-auto-mode} nor | 560 | @code{set-auto-mode}. If neither @code{set-auto-mode} nor |
| 561 | @code{hack-local-variables} specify a major mode, the buffer stays in | 561 | @code{hack-local-variables} specify a major mode, the buffer stays in |
| 562 | the major mode determined by @code{default-major-mode} (see below). | 562 | the major mode determined by the default value of @code{major-mode} |
| 563 | (see below). | ||
| 563 | 564 | ||
| 564 | @cindex file mode specification error | 565 | @cindex file mode specification error |
| 565 | @code{normal-mode} uses @code{condition-case} around the call to the | 566 | @code{normal-mode} uses @code{condition-case} around the call to the |
| @@ -588,11 +589,13 @@ mode. For instance, @code{set-visited-file-name} sets this to | |||
| 588 | have set. | 589 | have set. |
| 589 | @end defun | 590 | @end defun |
| 590 | 591 | ||
| 591 | @defopt default-major-mode | 592 | @defopt major-mode |
| 592 | This variable holds the default major mode for new buffers. The | 593 | The buffer-local value of this variable holds the major mode |
| 593 | standard value is @code{fundamental-mode}. | 594 | currently active. The default value of this variable holds the |
| 595 | default major mode for new buffers. The standard default value is | ||
| 596 | @code{fundamental-mode}. | ||
| 594 | 597 | ||
| 595 | If the value of @code{default-major-mode} is @code{nil}, Emacs uses | 598 | If the default value of @code{major-mode} is @code{nil}, Emacs uses |
| 596 | the (previously) current buffer's major mode as the default major mode | 599 | the (previously) current buffer's major mode as the default major mode |
| 597 | of a new buffer. However, if that major mode symbol has a @code{mode-class} | 600 | of a new buffer. However, if that major mode symbol has a @code{mode-class} |
| 598 | property with value @code{special}, then it is not used for new buffers; | 601 | property with value @code{special}, then it is not used for new buffers; |
| @@ -602,8 +605,8 @@ been specially prepared. | |||
| 602 | @end defopt | 605 | @end defopt |
| 603 | 606 | ||
| 604 | @defun set-buffer-major-mode buffer | 607 | @defun set-buffer-major-mode buffer |
| 605 | This function sets the major mode of @var{buffer} to the value of | 608 | This function sets the major mode of @var{buffer} to the default value of |
| 606 | @code{default-major-mode}; if that variable is @code{nil}, it uses the | 609 | @code{major-mode}; if that is @code{nil}, it uses the |
| 607 | current buffer's major mode (if that is suitable). As an exception, | 610 | current buffer's major mode (if that is suitable). As an exception, |
| 608 | if @var{buffer}'s name is @samp{*scratch*}, it sets the mode to | 611 | if @var{buffer}'s name is @samp{*scratch*}, it sets the mode to |
| 609 | @code{initial-major-mode}. | 612 | @code{initial-major-mode}. |
| @@ -1897,16 +1900,8 @@ The @samp{%M} construct substitutes the value of | |||
| 1897 | included in the mode line from @code{mode-line-format}. | 1900 | included in the mode line from @code{mode-line-format}. |
| 1898 | @end defvar | 1901 | @end defvar |
| 1899 | 1902 | ||
| 1900 | The variable @code{default-mode-line-format} is where | ||
| 1901 | @code{mode-line-format} usually gets its value: | ||
| 1902 | |||
| 1903 | @defvar default-mode-line-format | ||
| 1904 | This variable holds the default @code{mode-line-format} for buffers | ||
| 1905 | that do not override it. This is the same as @code{(default-value | ||
| 1906 | 'mode-line-format)}. | ||
| 1907 | |||
| 1908 | Here is a simplified version of the default value of | 1903 | Here is a simplified version of the default value of |
| 1909 | @code{default-mode-line-format}. The real default value also | 1904 | @code{mode-line-format}. The real default value also |
| 1910 | specifies addition of text properties. | 1905 | specifies addition of text properties. |
| 1911 | 1906 | ||
| 1912 | @example | 1907 | @example |
| @@ -2103,13 +2098,6 @@ controlled by different variables. | |||
| 2103 | This variable, local in every buffer, specifies how to display the | 2098 | This variable, local in every buffer, specifies how to display the |
| 2104 | header line, for windows displaying the buffer. The format of the value | 2099 | header line, for windows displaying the buffer. The format of the value |
| 2105 | is the same as for @code{mode-line-format} (@pxref{Mode Line Data}). | 2100 | is the same as for @code{mode-line-format} (@pxref{Mode Line Data}). |
| 2106 | @end defvar | ||
| 2107 | |||
| 2108 | @defvar default-header-line-format | ||
| 2109 | This variable holds the default @code{header-line-format} for buffers | ||
| 2110 | that do not override it. This is the same as @code{(default-value | ||
| 2111 | 'header-line-format)}. | ||
| 2112 | |||
| 2113 | It is normally @code{nil}, so that ordinary buffers have no header line. | 2101 | It is normally @code{nil}, so that ordinary buffers have no header line. |
| 2114 | @end defvar | 2102 | @end defvar |
| 2115 | 2103 | ||
diff --git a/doc/lispref/nonascii.texi b/doc/lispref/nonascii.texi index 7b99c1ca5bd..f0ad49cdb7d 100644 --- a/doc/lispref/nonascii.texi +++ b/doc/lispref/nonascii.texi | |||
| @@ -102,19 +102,10 @@ it contains unibyte encoded text or binary non-text data. | |||
| 102 | 102 | ||
| 103 | You cannot set this variable directly; instead, use the function | 103 | You cannot set this variable directly; instead, use the function |
| 104 | @code{set-buffer-multibyte} to change a buffer's representation. | 104 | @code{set-buffer-multibyte} to change a buffer's representation. |
| 105 | @end defopt | ||
| 106 | |||
| 107 | @defvar default-enable-multibyte-characters | ||
| 108 | This variable's value is entirely equivalent to @code{(default-value | ||
| 109 | 'enable-multibyte-characters)}, and setting this variable changes that | ||
| 110 | default value. Setting the local binding of | ||
| 111 | @code{enable-multibyte-characters} in a specific buffer is not allowed, | ||
| 112 | but changing the default value is supported, and it is a reasonable | ||
| 113 | thing to do, because it has no effect on existing buffers. | ||
| 114 | 105 | ||
| 115 | The @samp{--unibyte} command line option does its job by setting the | 106 | The @samp{--unibyte} command line option does its job by setting the |
| 116 | default value to @code{nil} early in startup. | 107 | default value to @code{nil} early in startup. |
| 117 | @end defvar | 108 | @end defopt |
| 118 | 109 | ||
| 119 | @defun position-bytes position | 110 | @defun position-bytes position |
| 120 | Buffer positions are measured in character units. This function | 111 | Buffer positions are measured in character units. This function |
| @@ -1052,7 +1043,7 @@ decoding, the end-of-line format of the text is auto-detected, and the | |||
| 1052 | eol conversion is set to match it (e.g., DOS-style CRLF format will | 1043 | eol conversion is set to match it (e.g., DOS-style CRLF format will |
| 1053 | imply @code{dos} eol conversion). For encoding, the eol conversion is | 1044 | imply @code{dos} eol conversion). For encoding, the eol conversion is |
| 1054 | taken from the appropriate default coding system (e.g., | 1045 | taken from the appropriate default coding system (e.g., |
| 1055 | @code{default-buffer-file-coding-system} for | 1046 | default value of @code{buffer-file-coding-system} for |
| 1056 | @code{buffer-file-coding-system}), or from the default eol conversion | 1047 | @code{buffer-file-coding-system}), or from the default eol conversion |
| 1057 | appropriate for the underlying platform. | 1048 | appropriate for the underlying platform. |
| 1058 | @end defun | 1049 | @end defun |
| @@ -1212,8 +1203,8 @@ coding system to try; if that can handle the text, | |||
| 1212 | also be a list of coding systems; then the function tries each of them | 1203 | also be a list of coding systems; then the function tries each of them |
| 1213 | one by one. After trying all of them, it next tries the current | 1204 | one by one. After trying all of them, it next tries the current |
| 1214 | buffer's value of @code{buffer-file-coding-system} (if it is not | 1205 | buffer's value of @code{buffer-file-coding-system} (if it is not |
| 1215 | @code{undecided}), then the value of | 1206 | @code{undecided}), then the default value of |
| 1216 | @code{default-buffer-file-coding-system} and finally the user's most | 1207 | @code{buffer-file-coding-system} and finally the user's most |
| 1217 | preferred coding system, which the user can set using the command | 1208 | preferred coding system, which the user can set using the command |
| 1218 | @code{prefer-coding-system} (@pxref{Recognize Coding,, Recognizing | 1209 | @code{prefer-coding-system} (@pxref{Recognize Coding,, Recognizing |
| 1219 | Coding Systems, emacs, The GNU Emacs Manual}). | 1210 | Coding Systems, emacs, The GNU Emacs Manual}). |
| @@ -1758,6 +1749,13 @@ Otherwise, @code{undecided-dos} is used. | |||
| 1758 | 1749 | ||
| 1759 | Normally this variable is set by visiting a file; it is set to | 1750 | Normally this variable is set by visiting a file; it is set to |
| 1760 | @code{nil} if the file was visited without any actual conversion. | 1751 | @code{nil} if the file was visited without any actual conversion. |
| 1752 | |||
| 1753 | Its default value is used to decide how to handle files for which | ||
| 1754 | @code{file-name-buffer-file-type-alist} says nothing about the type: | ||
| 1755 | If the default value is non-@code{nil}, then these files are treated as | ||
| 1756 | binary: the coding system @code{no-conversion} is used. Otherwise, | ||
| 1757 | nothing special is done for them---the coding system is deduced solely | ||
| 1758 | from the file contents, in the usual Emacs fashion. | ||
| 1761 | @end defvar | 1759 | @end defvar |
| 1762 | 1760 | ||
| 1763 | @defopt file-name-buffer-file-type-alist | 1761 | @defopt file-name-buffer-file-type-alist |
| @@ -1774,17 +1772,7 @@ which coding system to use when reading a file. For a text file, | |||
| 1774 | is used. | 1772 | is used. |
| 1775 | 1773 | ||
| 1776 | If no element in this alist matches a given file name, then | 1774 | If no element in this alist matches a given file name, then |
| 1777 | @code{default-buffer-file-type} says how to treat the file. | 1775 | the default value of @code{buffer-file-type} says how to treat the file. |
| 1778 | @end defopt | ||
| 1779 | |||
| 1780 | @defopt default-buffer-file-type | ||
| 1781 | This variable says how to handle files for which | ||
| 1782 | @code{file-name-buffer-file-type-alist} says nothing about the type. | ||
| 1783 | |||
| 1784 | If this variable is non-@code{nil}, then these files are treated as | ||
| 1785 | binary: the coding system @code{no-conversion} is used. Otherwise, | ||
| 1786 | nothing special is done for them---the coding system is deduced solely | ||
| 1787 | from the file contents, in the usual Emacs fashion. | ||
| 1788 | @end defopt | 1776 | @end defopt |
| 1789 | 1777 | ||
| 1790 | @node Input Methods | 1778 | @node Input Methods |
diff --git a/doc/lispref/processes.texi b/doc/lispref/processes.texi index b198abb91f4..effada450c1 100644 --- a/doc/lispref/processes.texi +++ b/doc/lispref/processes.texi | |||
| @@ -2157,12 +2157,6 @@ Initialize the process query flag to @var{query-flag}. | |||
| 2157 | @item :filter @var{filter} | 2157 | @item :filter @var{filter} |
| 2158 | Initialize the process filter to @var{filter}. | 2158 | Initialize the process filter to @var{filter}. |
| 2159 | 2159 | ||
| 2160 | @item :filter-multibyte @var{bool} | ||
| 2161 | If @var{bool} is non-@code{nil}, strings given to the process filter | ||
| 2162 | are multibyte, otherwise they are unibyte. If you don't specify this | ||
| 2163 | keyword at all, the default is that the strings are multibyte if | ||
| 2164 | @code{default-enable-multibyte-characters} is non-@code{nil}. | ||
| 2165 | |||
| 2166 | @item :sentinel @var{sentinel} | 2160 | @item :sentinel @var{sentinel} |
| 2167 | Initialize the process sentinel to @var{sentinel}. | 2161 | Initialize the process sentinel to @var{sentinel}. |
| 2168 | 2162 | ||
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi index 2b89a89c3e9..60b807c8ebf 100644 --- a/doc/lispref/searching.texi +++ b/doc/lispref/searching.texi | |||
| @@ -187,9 +187,8 @@ regular expressions, too; thus, @samp{[aB]} would match @samp{a} or | |||
| 187 | @code{case-fold-search} to @code{nil}. Then all letters must match | 187 | @code{case-fold-search} to @code{nil}. Then all letters must match |
| 188 | exactly, including case. This is a buffer-local variable; altering the | 188 | exactly, including case. This is a buffer-local variable; altering the |
| 189 | variable affects only the current buffer. (@xref{Intro to | 189 | variable affects only the current buffer. (@xref{Intro to |
| 190 | Buffer-Local}.) Alternatively, you may change the value of | 190 | Buffer-Local}.) Alternatively, you may change the default value of |
| 191 | @code{default-case-fold-search}, which is the default value of | 191 | @code{case-fold-search}. |
| 192 | @code{case-fold-search} for buffers that do not override it. | ||
| 193 | 192 | ||
| 194 | Note that the user-level incremental search feature handles case | 193 | Note that the user-level incremental search feature handles case |
| 195 | distinctions differently. When the search string contains only lower | 194 | distinctions differently. When the search string contains only lower |
| @@ -204,12 +203,6 @@ case. If the variable is @code{nil} they do not ignore case; otherwise | |||
| 204 | they do ignore case. | 203 | they do ignore case. |
| 205 | @end defopt | 204 | @end defopt |
| 206 | 205 | ||
| 207 | @defvar default-case-fold-search | ||
| 208 | The value of this variable is the default value for | ||
| 209 | @code{case-fold-search} in buffers that do not override it. This is the | ||
| 210 | same as @code{(default-value 'case-fold-search)}. | ||
| 211 | @end defvar | ||
| 212 | |||
| 213 | @defopt case-replace | 206 | @defopt case-replace |
| 214 | This variable determines whether the higher level replacement | 207 | This variable determines whether the higher level replacement |
| 215 | functions should preserve case. If the variable is @code{nil}, that | 208 | functions should preserve case. If the variable is @code{nil}, that |
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 5c2a3ce99c7..89dd53998c6 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -1629,15 +1629,9 @@ As a practical matter, if you are writing text for other people to | |||
| 1629 | read, you should set @code{fill-column} to no more than 70. Otherwise | 1629 | read, you should set @code{fill-column} to no more than 70. Otherwise |
| 1630 | the line will be too long for people to read comfortably, and this can | 1630 | the line will be too long for people to read comfortably, and this can |
| 1631 | make the text seem clumsy. | 1631 | make the text seem clumsy. |
| 1632 | @end defopt | ||
| 1633 | |||
| 1634 | @defvar default-fill-column | ||
| 1635 | The value of this variable is the default value for @code{fill-column} in | ||
| 1636 | buffers that do not override it. This is the same as | ||
| 1637 | @code{(default-value 'fill-column)}. | ||
| 1638 | 1632 | ||
| 1639 | The default value for @code{default-fill-column} is 70. | 1633 | The default value for @code{fill-column} is 70. |
| 1640 | @end defvar | 1634 | @end defopt |
| 1641 | 1635 | ||
| 1642 | @deffn Command set-left-margin from to margin | 1636 | @deffn Command set-left-margin from to margin |
| 1643 | This sets the @code{left-margin} property on the text from @var{from} to | 1637 | This sets the @code{left-margin} property on the text from @var{from} to |
diff --git a/doc/lispref/windows.texi b/doc/lispref/windows.texi index 539ed6e4514..372725c1d39 100644 --- a/doc/lispref/windows.texi +++ b/doc/lispref/windows.texi | |||
| @@ -791,7 +791,7 @@ If @var{buffer-or-name} is @code{nil}, @code{switch-to-buffer} chooses a | |||
| 791 | buffer using @code{other-buffer}. If @var{buffer-or-name} is a string | 791 | buffer using @code{other-buffer}. If @var{buffer-or-name} is a string |
| 792 | that does not identify an existing buffer, then a new buffer by that | 792 | that does not identify an existing buffer, then a new buffer by that |
| 793 | name is created. The major mode for the new buffer is set according to | 793 | name is created. The major mode for the new buffer is set according to |
| 794 | the variable @code{default-major-mode}; see @ref{Auto Major Mode}. | 794 | the variable @code{major-mode}; see @ref{Auto Major Mode}. |
| 795 | 795 | ||
| 796 | When the selected window is the minibuffer window or is strongly | 796 | When the selected window is the minibuffer window or is strongly |
| 797 | dedicated to its buffer (@pxref{Dedicated Windows}), this function calls | 797 | dedicated to its buffer (@pxref{Dedicated Windows}), this function calls |
| @@ -837,7 +837,7 @@ If @var{buffer-or-name} is @code{nil}, that means to choose some other | |||
| 837 | buffer, but you don't specify which. If @var{buffer-or-name} is a | 837 | buffer, but you don't specify which. If @var{buffer-or-name} is a |
| 838 | string that does not name an existing buffer, a buffer by that name is | 838 | string that does not name an existing buffer, a buffer by that name is |
| 839 | created. The major mode for the new buffer is set according to the | 839 | created. The major mode for the new buffer is set according to the |
| 840 | variable @code{default-major-mode}. @xref{Auto Major Mode}. | 840 | variable @code{major-mode}. @xref{Auto Major Mode}. |
| 841 | 841 | ||
| 842 | If either of the variables @code{display-buffer-reuse-frames} or | 842 | If either of the variables @code{display-buffer-reuse-frames} or |
| 843 | @code{pop-up-frames} is non-@code{nil}, @code{pop-to-buffer} looks for a | 843 | @code{pop-up-frames} is non-@code{nil}, @code{pop-to-buffer} looks for a |
diff --git a/doc/misc/faq.texi b/doc/misc/faq.texi index dfd1175faa1..1c10c91c763 100644 --- a/doc/misc/faq.texi +++ b/doc/misc/faq.texi | |||
| @@ -2154,14 +2154,13 @@ about them. | |||
| 2154 | @section How do I change Emacs's idea of the @key{TAB} character's length? | 2154 | @section How do I change Emacs's idea of the @key{TAB} character's length? |
| 2155 | @cindex Tab length | 2155 | @cindex Tab length |
| 2156 | @cindex Length of tab character | 2156 | @cindex Length of tab character |
| 2157 | @cindex @code{default-tab-width} | ||
| 2158 | 2157 | ||
| 2159 | Set the variable @code{default-tab-width}. For example, to set | 2158 | Set the default value of the variable @code{tab-width}. For example, to set |
| 2160 | @key{TAB} stops every 10 characters, insert the following in your | 2159 | @key{TAB} stops every 10 characters, insert the following in your |
| 2161 | @file{.emacs} file: | 2160 | @file{.emacs} file: |
| 2162 | 2161 | ||
| 2163 | @lisp | 2162 | @lisp |
| 2164 | (setq default-tab-width 10) | 2163 | (setq-default tab-width 10) |
| 2165 | @end lisp | 2164 | @end lisp |
| 2166 | 2165 | ||
| 2167 | Do not confuse variable @code{tab-width} with variable | 2166 | Do not confuse variable @code{tab-width} with variable |