emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/lispintro/emacs-lisp-intro.texi


From: Robert J. Chassell
Subject: [Emacs-diffs] Changes to emacs/lispintro/emacs-lisp-intro.texi
Date: Sat, 27 Apr 2002 09:10:06 -0400

Index: emacs/lispintro/emacs-lisp-intro.texi
diff -c emacs/lispintro/emacs-lisp-intro.texi:1.13 
emacs/lispintro/emacs-lisp-intro.texi:1.14
*** emacs/lispintro/emacs-lisp-intro.texi:1.13  Wed Feb 20 12:42:40 2002
--- emacs/lispintro/emacs-lisp-intro.texi       Sat Apr 27 09:10:05 2002
***************
*** 1331,1337 ****
  example, pressing the @key{TAB} key automatically indents the line the
  cursor is on by the right amount.  A command to properly indent the
  code in a region is customarily bound to @kbd{M-C-\}.  Indentation is
! designed so that you can see which elements of a list belongs to which
  list---elements of a sub-list are indented more than the elements of
  the enclosing list.
  
--- 1331,1337 ----
  example, pressing the @key{TAB} key automatically indents the line the
  cursor is on by the right amount.  A command to properly indent the
  code in a region is customarily bound to @kbd{M-C-\}.  Indentation is
! designed so that you can see which elements of a list belong to which
  list---elements of a sub-list are indented more than the elements of
  the enclosing list.
  
***************
*** 3690,3696 ****
  Another way to think about @code{let} is that it is like a @code{setq}
  that is temporary and local.  The values set by @code{let} are
  automatically undone when the @code{let} is finished.  The setting
! only effects expressions that are inside the bounds of the @code{let}
  expression.  In computer science jargon, we would say ``the binding of
  a symbol is visible only in functions called in the @code{let} form;
  in Emacs Lisp, scoping is dynamic, not lexical.''
--- 3690,3696 ----
  Another way to think about @code{let} is that it is like a @code{setq}
  that is temporary and local.  The values set by @code{let} are
  automatically undone when the @code{let} is finished.  The setting
! only affects expressions that are inside the bounds of the @code{let}
  expression.  In computer science jargon, we would say ``the binding of
  a symbol is visible only in functions called in the @code{let} form;
  in Emacs Lisp, scoping is dynamic, not lexical.''
***************
*** 4737,4743 ****
  Before looking at the code, let's consider what the function
  definition has to contain: it must include an expression that makes
  the function interactive so it can be called by typing @kbd{M-x
! beginning-of-buffer} or by typing a keychord such as @kbd{C-<}; it
  must include code to leave a mark at the original position in the
  buffer; and it must include code to move the cursor to the beginning
  of the buffer.
--- 4737,4743 ----
  Before looking at the code, let's consider what the function
  definition has to contain: it must include an expression that makes
  the function interactive so it can be called by typing @kbd{M-x
! beginning-of-buffer} or by typing a keychord such as @kbd{M-<}; it
  must include code to leave a mark at the original position in the
  buffer; and it must include code to move the cursor to the beginning
  of the buffer.
***************
*** 5571,5583 ****
  @cindex Asterisk for read-only buffer
  @findex * @r{for read-only buffer}
  
! The asterisk is for the situation when the buffer is a read-only
! buffer---a buffer that cannot be modified.  If @code{insert-buffer} is
! called on a buffer that is read-only, a message to this effect is
! printed in the echo area and the terminal may beep or blink at you;
! you will not be permitted to insert anything into current buffer.  The
! asterisk does not need to be followed by a newline to separate it from
! the next argument.
  
  @node b for interactive,  , Read-only buffer, insert-buffer interactive
  @comment  node-name,  next,  previous,  up
--- 5571,5583 ----
  @cindex Asterisk for read-only buffer
  @findex * @r{for read-only buffer}
  
! The asterisk is for the situation when the current buffer is a
! read-only buffer---a buffer that cannot be modified.  If
! @code{insert-buffer} is called when the current buffer is read-only, a
! message to this effect is printed in the echo area and the terminal
! may beep or blink at you; you will not be permitted to insert anything
! into current buffer.  The asterisk does not need to be followed by a
! newline to separate it from the next argument.
  
  @node b for interactive,  , Read-only buffer, insert-buffer interactive
  @comment  node-name,  next,  previous,  up
***************
*** 7142,7147 ****
--- 7142,7148 ----
  @code{cons}.  Find out what happens when you @code{cons} a list onto
  itself.  Replace the first element of the list of four birds with a
  fish.  Replace the rest of that list with a list of other fish.
+ 
  @node Cutting & Storing Text, List Implementation, car cdr & cons, Top
  @comment  node-name,  next,  previous,  up
  @chapter Cutting and Storing Text
***************
*** 10369,10375 ****
  loops---takes the @sc{cdr} of the list---and binds the @sc{car} of
  each shorter version of the list to the first of its arguments.
  
! @code{dotimes} loops a specific number of time: you specify the number.
  
  @menu
  * dolist::
--- 10370,10376 ----
  loops---takes the @sc{cdr} of the list---and binds the @sc{car} of
  each shorter version of the list to the first of its arguments.
  
! @code{dotimes} loops a specific number of times: you specify the number.
  
  @menu
  * dolist::
***************
*** 16080,16086 ****
  @findex defcustom
  
  You can specify variables using @code{defcustom} so that you and
! others can then can use Emacs' @code{customize} feature to set their
  values.  (You cannot use @code{customize} to write function
  definitions; but you can write @code{defuns} in your @file{.emacs}
  file.  Indeed, you can write any Lisp expression in your @file{.emacs}
--- 16081,16087 ----
  @findex defcustom
  
  You can specify variables using @code{defcustom} so that you and
! others can then use Emacs' @code{customize} feature to set their
  values.  (You cannot use @code{customize} to write function
  definitions; but you can write @code{defuns} in your @file{.emacs}
  file.  Indeed, you can write any Lisp expression in your @file{.emacs}
***************
*** 18636,18642 ****
  The answers can be found by a quick test.  When @code{(% -1 5)} is
  evaluated, a negative number is returned; and if @code{nthcdr} is
  called with a negative number, it returns the same value as if it were
! called with a first argument of zero.  This can be seen be evaluating
  the following code.
  
  Here the @address@hidden points to the result of evaluating the code
--- 18637,18643 ----
  The answers can be found by a quick test.  When @code{(% -1 5)} is
  evaluated, a negative number is returned; and if @code{nthcdr} is
  called with a negative number, it returns the same value as if it were
! called with a first argument of zero.  This can be seen by evaluating
  the following code.
  
  Here the @address@hidden points to the result of evaluating the code



reply via email to

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