emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r99432: Avoid obsolete special defaul


From: Stefan Monnier
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r99432: Avoid obsolete special default variables like default-major-mode.
Date: Mon, 01 Feb 2010 13:39:33 -0500
User-agent: Bazaar (2.0.2)

------------------------------------------------------------
revno: 99432
committer: Stefan Monnier <address@hidden>
branch nick: trunk
timestamp: Mon 2010-02-01 13:39:33 -0500
message:
  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.
modified:
  doc/emacs/ChangeLog
  doc/emacs/custom.texi
  doc/emacs/display.texi
  doc/lispintro/ChangeLog
  doc/lispintro/emacs-lisp-intro.texi
  doc/lispref/ChangeLog
  doc/lispref/display.texi
=== modified file 'doc/emacs/ChangeLog'
--- a/doc/emacs/ChangeLog       2010-01-25 04:52:26 +0000
+++ b/doc/emacs/ChangeLog       2010-02-01 18:39:33 +0000
@@ -1,3 +1,9 @@
+2010-02-01  Stefan Monnier  <address@hidden>
+
+       * 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  <address@hidden>
 
        * programs.texi (Other C Commands): Replace reference to obsolete

=== modified file 'doc/emacs/custom.texi'
--- a/doc/emacs/custom.texi     2010-01-13 08:35:10 +0000
+++ b/doc/emacs/custom.texi     2010-02-01 18:39:33 +0000
@@ -2275,7 +2275,7 @@
 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

=== modified file 'doc/emacs/display.texi'
--- a/doc/emacs/display.texi    2010-01-11 03:03:38 +0000
+++ b/doc/emacs/display.texi    2010-02-01 18:39:33 +0000
@@ -877,7 +877,6 @@
 @key{RET}}.  This command does not remove newline characters.
 
 @vindex indicate-empty-lines
address@hidden 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 @@
 this image in the fringe.
 
   To enable this feature, set the buffer-local variable
address@hidden to a address@hidden value.  The default
-value of this variable is controlled by the variable
address@hidden; 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.)
address@hidden to a address@hidden 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 @@
 printing characters (octal codes above 0400).
 
 @vindex tab-width
address@hidden 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,

=== modified file 'doc/lispintro/ChangeLog'
--- a/doc/lispintro/ChangeLog   2010-01-13 08:35:10 +0000
+++ b/doc/lispintro/ChangeLog   2010-02-01 18:39:33 +0000
@@ -1,3 +1,8 @@
+2010-02-01  Stefan Monnier  <address@hidden>
+
+       * emacs-lisp-intro.texi (Text and Auto-fill, Mode Line):
+       Avoid obsolete special default variables like default-major-mode.
+
 2009-12-09  David Robinow  <address@hidden>  (tiny change)
 
        * makefile.w32-in: Use parenthesis for macros for nmake

=== modified file 'doc/lispintro/emacs-lisp-intro.texi'
--- a/doc/lispintro/emacs-lisp-intro.texi       2010-01-13 08:35:10 +0000
+++ b/doc/lispintro/emacs-lisp-intro.texi       2010-02-01 18:39:33 +0000
@@ -17346,10 +17346,10 @@
 @smallexample
 @group
 ;;; Text mode and Auto Fill mode
-; The next two lines put Emacs into Text mode
-; and Auto Fill mode, and are for writers who
-; want to start writing prose rather than code.
-(setq default-major-mode 'text-mode)
+;; The next two lines put Emacs into Text mode
+;; and Auto Fill mode, and are for writers who
+;; want to start writing prose rather than code.
+(setq-default major-mode 'text-mode)
 (add-hook 'text-mode-hook 'turn-on-auto-fill)
 @end group
 @end smallexample
@@ -18257,7 +18257,7 @@
 @need 1700
 @node Mode Line,  , Miscellaneous, Emacs Initialization
 @section A Modified Mode Line
address@hidden default-mode-line-format
address@hidden mode-line-format
 @cindex Mode line format
 
 Finally, a feature I really like: a modified mode line.
@@ -18282,7 +18282,7 @@
 @group
 ;; Set a Mode Line that tells me which machine, which directory,
 ;; and which line I am on, plus the other customary information.
-(setq default-mode-line-format
+(setq-default mode-line-format
  (quote
   (#("-" 0 1
      (help-echo

=== modified file 'doc/lispref/ChangeLog'
--- a/doc/lispref/ChangeLog     2010-01-28 16:24:50 +0000
+++ b/doc/lispref/ChangeLog     2010-02-01 18:39:33 +0000
@@ -1,3 +1,8 @@
+2010-02-01  Stefan Monnier  <address@hidden>
+
+       * display.texi (Line Height): Avoid obsolete special default variables
+       like default-major-mode.
+
 2010-01-28  Alan Mackenzie  <address@hidden>
 
        * display.texi (Auto Faces): Say fontification-functions is called

=== modified file 'doc/lispref/display.texi'
--- a/doc/lispref/display.texi  2010-01-28 16:24:50 +0000
+++ b/doc/lispref/display.texi  2010-02-01 18:39:33 +0000
@@ -1768,7 +1768,6 @@
 There are several ways to specify the line spacing for different
 parts of Emacs text.
 
address@hidden default-line-spacing
   On graphical terminals, you can specify the line spacing for all
 lines in a frame, using the @code{line-spacing} frame parameter
 (@pxref{Layout Parameters}).  However, if the default value of


reply via email to

[Prev in Thread] Current Thread [Next in Thread]