Commit cd61af01 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

Avoid obsolete special default variables like default-major-mode.

* display.texi (Line Height):
* emacs-lisp-intro.texi (Text and Auto-fill, Mode Line):
* display.texi (Useless Whitespace, Text Display):
* custom.texi (Init Examples): Avoid obsolete special default variables
like default-major-mode.
parent 0bca393f
2010-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
* display.texi (Useless Whitespace, Text Display):
* custom.texi (Init Examples): Avoid obsolete special default variables
like default-major-mode.
2010-01-24 Mark A. Hershberger <mah@everybody.org> 2010-01-24 Mark A. Hershberger <mah@everybody.org>
* programs.texi (Other C Commands): Replace reference to obsolete * programs.texi (Other C Commands): Replace reference to obsolete
......
...@@ -2275,7 +2275,7 @@ Various Emacs packages that need your own email address use the value of ...@@ -2275,7 +2275,7 @@ Various Emacs packages that need your own email address use the value of
Make Text mode the default mode for new buffers. Make Text mode the default mode for new buffers.
@example @example
(setq default-major-mode 'text-mode) (setq-default major-mode 'text-mode)
@end example @end example
Note that @code{text-mode} is used because it is the command for Note that @code{text-mode} is used because it is the command for
......
...@@ -877,7 +877,6 @@ portion (@pxref{Narrowing}), type @kbd{M-x delete-trailing-whitespace ...@@ -877,7 +877,6 @@ portion (@pxref{Narrowing}), type @kbd{M-x delete-trailing-whitespace
@key{RET}}. This command does not remove newline characters. @key{RET}}. This command does not remove newline characters.
@vindex indicate-empty-lines @vindex indicate-empty-lines
@vindex default-indicate-empty-lines
@cindex unused lines @cindex unused lines
@cindex fringes, and unused line indication @cindex fringes, and unused line indication
Emacs can indicate unused lines at the end of the window with a Emacs can indicate unused lines at the end of the window with a
...@@ -887,11 +886,11 @@ lines at the end of the buffer then stand out because they do not have ...@@ -887,11 +886,11 @@ lines at the end of the buffer then stand out because they do not have
this image in the fringe. this image in the fringe.
To enable this feature, set the buffer-local variable To enable this feature, set the buffer-local variable
@code{indicate-empty-lines} to a non-@code{nil} value. The default @code{indicate-empty-lines} to a non-@code{nil} value. You can enable
value of this variable is controlled by the variable or disable this feature for all new buffers by setting the default
@code{default-indicate-empty-lines}; by setting that variable, you value of this variable, e.g.@: @code{(setq-default
can enable or disable this feature for all new buffers. (This feature indicate-empty-lines t)};. (This feature currently doesn't work on
currently doesn't work on text-only terminals.) text-only terminals.)
@node Selective Display @node Selective Display
@section Selective Display @section Selective Display
...@@ -1083,17 +1082,15 @@ buffers are displayed with their graphics, as are non-@acronym{ASCII} multibyte ...@@ -1083,17 +1082,15 @@ buffers are displayed with their graphics, as are non-@acronym{ASCII} multibyte
printing characters (octal codes above 0400). printing characters (octal codes above 0400).
@vindex tab-width @vindex tab-width
@vindex default-tab-width
Some @acronym{ASCII} control characters are displayed in special Some @acronym{ASCII} control characters are displayed in special
ways. The newline character (octal code 012) is displayed by starting ways. The newline character (octal code 012) is displayed by starting
a new line. The tab character (octal code 011) is displayed by moving a new line. The tab character (octal code 011) is displayed by moving
to the next tab stop column (normally every 8 columns). The number of to the next tab stop column (normally every 8 columns). The number of
spaces per tab is controlled by the variable @code{tab-width}, which spaces per tab is controlled by the variable @code{tab-width}, which
must have an integer value between 1 and 1000, inclusive, and is made must have an integer value between 1 and 1000, inclusive, and is made
local by changing it. Note that how the tab character in the buffer buffer-local by changing it. Note that how the tab character in the buffer
is displayed has nothing to do with the definition of @key{TAB} as a is displayed has nothing to do with the definition of @key{TAB} as a
command. The variable @code{default-tab-width} controls the default command.
value of this variable for buffers where you have not set it locally.
Other @acronym{ASCII} control characters are normally displayed as a caret Other @acronym{ASCII} control characters are normally displayed as a caret
(@samp{^}) followed by the non-control version of the character; thus, (@samp{^}) followed by the non-control version of the character; thus,
......
2010-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp-intro.texi (Text and Auto-fill, Mode Line):
Avoid obsolete special default variables like default-major-mode.
2009-12-09 David Robinow <drobinow@gmail.com> (tiny change) 2009-12-09 David Robinow <drobinow@gmail.com> (tiny change)
* makefile.w32-in: Use parenthesis for macros for nmake * makefile.w32-in: Use parenthesis for macros for nmake
......
...@@ -17346,10 +17346,10 @@ Auto Fill mode. ...@@ -17346,10 +17346,10 @@ Auto Fill mode.
@smallexample @smallexample
@group @group
;;; Text mode and Auto Fill mode ;;; Text mode and Auto Fill mode
; The next two lines put Emacs into Text mode ;; The next two lines put Emacs into Text mode
; and Auto Fill mode, and are for writers who ;; and Auto Fill mode, and are for writers who
; want to start writing prose rather than code. ;; want to start writing prose rather than code.
(setq default-major-mode 'text-mode) (setq-default major-mode 'text-mode)
(add-hook 'text-mode-hook 'turn-on-auto-fill) (add-hook 'text-mode-hook 'turn-on-auto-fill)
@end group @end group
@end smallexample @end smallexample
...@@ -18257,7 +18257,7 @@ xmodmap -e "keysym Alt_L = Meta_L Alt_L" ...@@ -18257,7 +18257,7 @@ xmodmap -e "keysym Alt_L = Meta_L Alt_L"
@need 1700 @need 1700
@node Mode Line, , Miscellaneous, Emacs Initialization @node Mode Line, , Miscellaneous, Emacs Initialization
@section A Modified Mode Line @section A Modified Mode Line
@vindex default-mode-line-format @vindex mode-line-format
@cindex Mode line format @cindex Mode line format
   
Finally, a feature I really like: a modified mode line. Finally, a feature I really like: a modified mode line.
...@@ -18282,7 +18282,7 @@ My @file{.emacs} file has a section that looks like this: ...@@ -18282,7 +18282,7 @@ My @file{.emacs} file has a section that looks like this:
@group @group
;; Set a Mode Line that tells me which machine, which directory, ;; Set a Mode Line that tells me which machine, which directory,
;; and which line I am on, plus the other customary information. ;; and which line I am on, plus the other customary information.
(setq default-mode-line-format (setq-default mode-line-format
(quote (quote
(#("-" 0 1 (#("-" 0 1
(help-echo (help-echo
......
2010-02-01 Stefan Monnier <monnier@iro.umontreal.ca>
* display.texi (Line Height): Avoid obsolete special default variables
like default-major-mode.
2010-01-28 Alan Mackenzie <acm@muc.de> 2010-01-28 Alan Mackenzie <acm@muc.de>
* display.texi (Auto Faces): Say fontification-functions is called * display.texi (Auto Faces): Say fontification-functions is called
......
...@@ -1768,7 +1768,6 @@ height consists of the contents' height plus the line spacing. ...@@ -1768,7 +1768,6 @@ height consists of the contents' height plus the line spacing.
There are several ways to specify the line spacing for different There are several ways to specify the line spacing for different
parts of Emacs text. parts of Emacs text.
@vindex default-line-spacing
On graphical terminals, you can specify the line spacing for all On graphical terminals, you can specify the line spacing for all
lines in a frame, using the @code{line-spacing} frame parameter lines in a frame, using the @code{line-spacing} frame parameter
(@pxref{Layout Parameters}). However, if the default value of (@pxref{Layout Parameters}). However, if the default value of
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment