summaryrefslogtreecommitdiff
path: root/doc/emacs
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2010-02-01 13:39:33 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2010-02-01 13:39:33 -0500
commitcd61af01c1220b6a7f98189c826edc7535416583 (patch)
tree9a29094049a97b153b162a639cfea4381b9cf0f2 /doc/emacs
parent0bca393f91b3e6140b02d0eb9ee56f8bcdaac365 (diff)
downloademacs-cd61af01c1220b6a7f98189c826edc7535416583.tar.gz
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.
Diffstat (limited to 'doc/emacs')
-rw-r--r--doc/emacs/ChangeLog6
-rw-r--r--doc/emacs/custom.texi2
-rw-r--r--doc/emacs/display.texi17
3 files changed, 14 insertions, 11 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog
index 39ffa2c2acc..a039e632d5a 100644
--- a/doc/emacs/ChangeLog
+++ b/doc/emacs/ChangeLog
@@ -1,3 +1,9 @@
+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>
* programs.texi (Other C Commands): Replace reference to obsolete
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi
index a7e74388a39..a4914531192 100644
--- a/doc/emacs/custom.texi
+++ b/doc/emacs/custom.texi
@@ -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.
@example
-(setq default-major-mode 'text-mode)
+(setq-default major-mode 'text-mode)
@end example
Note that @code{text-mode} is used because it is the command for
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index c7afe5445a6..a5d064e578a 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -877,7 +877,6 @@ portion (@pxref{Narrowing}), type @kbd{M-x delete-trailing-whitespace
@key{RET}}. This command does not remove newline characters.
@vindex indicate-empty-lines
-@vindex default-indicate-empty-lines
@cindex unused lines
@cindex fringes, and unused line indication
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
this image in the fringe.
To enable this feature, set the buffer-local variable
-@code{indicate-empty-lines} to a non-@code{nil} value. The default
-value of this variable is controlled by the variable
-@code{default-indicate-empty-lines}; by setting that variable, you
-can enable or disable this feature for all new buffers. (This feature
-currently doesn't work on text-only terminals.)
+@code{indicate-empty-lines} to a non-@code{nil} value. You can enable
+or disable this feature for all new buffers by setting the default
+value of this variable, e.g.@: @code{(setq-default
+indicate-empty-lines t)};. (This feature currently doesn't work on
+text-only terminals.)
@node Selective Display
@section Selective Display
@@ -1083,17 +1082,15 @@ buffers are displayed with their graphics, as are non-@acronym{ASCII} multibyte
printing characters (octal codes above 0400).
@vindex tab-width
-@vindex default-tab-width
Some @acronym{ASCII} control characters are displayed in special
ways. The newline character (octal code 012) is displayed by starting
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
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
-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
-command. The variable @code{default-tab-width} controls the default
-value of this variable for buffers where you have not set it locally.
+command.
Other @acronym{ASCII} control characters are normally displayed as a caret
(@samp{^}) followed by the non-control version of the character; thus,