aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1996-07-17 04:54:04 +0000
committerKarl Heuer1996-07-17 04:54:04 +0000
commit840797eed72533d2a46de3e808eb58609cdf4cf1 (patch)
tree14decba5f7956280faf3661f9d62909b44f39844
parent496110ef79d9e24767214dea03811097c69d7f65 (diff)
downloademacs-840797eed72533d2a46de3e808eb58609cdf4cf1.tar.gz
emacs-840797eed72533d2a46de3e808eb58609cdf4cf1.zip
Changes for Emacs 19.32.
-rw-r--r--lispref/control.texi27
-rw-r--r--lispref/debugging.texi12
-rw-r--r--lispref/elisp.texi48
3 files changed, 64 insertions, 23 deletions
diff --git a/lispref/control.texi b/lispref/control.texi
index c7367894919..1a5e7033c1c 100644
--- a/lispref/control.texi
+++ b/lispref/control.texi
@@ -878,23 +878,31 @@ After executing the body of the handler, the @code{condition-case}
878returns normally, using the value of the last form in the handler body 878returns normally, using the value of the last form in the handler body
879as the overall value. 879as the overall value.
880 880
881@cindex error description
881The argument @var{var} is a variable. @code{condition-case} does not 882The argument @var{var} is a variable. @code{condition-case} does not
882bind this variable when executing the @var{protected-form}, only when it 883bind this variable when executing the @var{protected-form}, only when it
883handles an error. At that time, it binds @var{var} locally to a list of 884handles an error. At that time, it binds @var{var} locally to an
884the form @code{(@var{error-symbol} . @var{data})}, giving the 885@dfn{error description}, which is a list giving the particulars of the
885particulars of the error. The handler can refer to this list to decide 886error. The error description has the form @code{(@var{error-symbol}
886what to do. For example, if the error is for failure opening a file, 887. @var{data})}. The handler can refer to this list to decide what to
887the file name is the second element of @var{data}---the third element of 888do. For example, if the error is for failure opening a file, the file
888@var{var}. 889name is the second element of @var{data}---the third element of the
890error description.
889 891
890If @var{var} is @code{nil}, that means no variable is bound. Then the 892If @var{var} is @code{nil}, that means no variable is bound. Then the
891error symbol and associated data are not available to the handler. 893error symbol and associated data are not available to the handler.
892@end defspec 894@end defspec
893 895
896@defun error-message-string error-description
897This function returns the error message string for a given error
898descriptor. It is useful if you want to handle an error by printing the
899usual error message for that error.
900@end defun
901
894@cindex @code{arith-error} example 902@cindex @code{arith-error} example
895Here is an example of using @code{condition-case} to handle the error 903Here is an example of using @code{condition-case} to handle the error
896that results from dividing by zero. The handler prints out a warning 904that results from dividing by zero. The handler displays the error
897message and returns a very large number. 905message (but without a beep), then returns a very large number.
898 906
899@smallexample 907@smallexample
900@group 908@group
@@ -904,7 +912,8 @@ message and returns a very large number.
904 (/ dividend divisor) 912 (/ dividend divisor)
905 ;; @r{The handler.} 913 ;; @r{The handler.}
906 (arith-error ; @r{Condition.} 914 (arith-error ; @r{Condition.}
907 (princ (format "Arithmetic error: %s" err)) 915 ;; @r{Display the usual message for this error.}
916 (message "%s" (error-message-string err))
908 1000000))) 917 1000000)))
909@result{} safe-divide 918@result{} safe-divide
910@end group 919@end group
diff --git a/lispref/debugging.texi b/lispref/debugging.texi
index 6775323049d..b045d93b94e 100644
--- a/lispref/debugging.texi
+++ b/lispref/debugging.texi
@@ -95,6 +95,18 @@ happen in process filter functions and sentinels. Therefore, these
95errors also can invoke the debugger. @xref{Processes}. 95errors also can invoke the debugger. @xref{Processes}.
96@end defopt 96@end defopt
97 97
98@defopt debug-ignored-errors
99This variable specifies certain kinds of errors that should not enter
100the debugger. Its value is a list of error condition symbols and/or
101regular expressions. If the error has any of those condition symbols,
102or if the error message matches any of the regular expressions, then
103that error does not enter the debugger, regardless of the value of
104@code{debug-on-error}.
105
106The normal value of this variable lists several errors that happen often
107during editing but rarely result from bugs in Lisp programs.
108@end defopt
109
98 To debug an error that happens during loading of the @file{.emacs} 110 To debug an error that happens during loading of the @file{.emacs}
99file, use the option @samp{-debug-init}, which binds 111file, use the option @samp{-debug-init}, which binds
100@code{debug-on-error} to @code{t} while @file{.emacs} is loaded and 112@code{debug-on-error} to @code{t} while @file{.emacs} is loaded and
diff --git a/lispref/elisp.texi b/lispref/elisp.texi
index 5ac4053d662..3ba29deb8d9 100644
--- a/lispref/elisp.texi
+++ b/lispref/elisp.texi
@@ -6,16 +6,16 @@
6@c %**end of header 6@c %**end of header
7 7
8@ifinfo 8@ifinfo
9This version is the edition 2.4 of the GNU Emacs Lisp 9This version is the edition 2.4a of the GNU Emacs Lisp
10Reference Manual. It corresponds to Emacs Version 19.29. 10Reference Manual. It corresponds to Emacs Version 19.32.
11@c Please REMEMBER to update edition number in *four* places in this file 11@c Please REMEMBER to update edition number in *four* places in this file
12@c and also in *one* place in intro.texi 12@c and also in *one* place in intro.texi
13 13
14Published by the Free Software Foundation 14Published by the Free Software Foundation
15675 Massachusetts Avenue 1559 Temple Place, Suite 330
16Cambridge, MA 02139 USA 16Boston, MA 02111-1307 USA
17 17
18Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. 18Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
19 19
20Permission is granted to make and distribute verbatim copies of this 20Permission is granted to make and distribute verbatim copies of this
21manual provided the copyright notice and this permission notice are 21manual provided the copyright notice and this permission notice are
@@ -68,25 +68,25 @@ instead of in the original English.
68@subtitle for Unix Users 68@subtitle for Unix Users
69@c The edition number appears in several places in this file 69@c The edition number appears in several places in this file
70@c and also in the file intro.texi. 70@c and also in the file intro.texi.
71@subtitle Revision 2.4, June 1995 71@subtitle Revision 2.4a, July 1996
72 72
73@author by Bil Lewis, Dan LaLiberte, Richard Stallman 73@author by Bil Lewis, Dan LaLiberte, Richard Stallman
74@author and the GNU Manual Group 74@author and the GNU Manual Group
75@page 75@page
76@vskip 0pt plus 1filll 76@vskip 0pt plus 1filll
77Copyright @copyright{} 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. 77Copyright @copyright{} 1990, 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc.
78 78
79@sp 2 79@sp 2
80Edition 2.4 @* 80Edition 2.4a @*
81Revised for Emacs Version 19.29,@* 81Revised for Emacs Version 19.32,@*
82June, 1995.@* 82July 1996.@*
83@sp 2 83@sp 2
84ISBN 1-882114-71-X 84ISBN 1-882114-71-X
85 85
86@sp 2 86@sp 2
87Published by the Free Software Foundation @* 87Published by the Free Software Foundation @*
88675 Massachusetts Avenue @* 8859 Temple Place, Suite 330@*
89Cambridge, MA 02139 USA 89Boston, MA 02111-1307 USA
90 90
91Permission is granted to make and distribute verbatim copies of this 91Permission is granted to make and distribute verbatim copies of this
92manual provided the copyright notice and this permission notice are 92manual provided the copyright notice and this permission notice are
@@ -112,8 +112,8 @@ Cover art by Etienne Suvasa.
112@node Top, Copying, (dir), (dir) 112@node Top, Copying, (dir), (dir)
113 113
114@ifinfo 114@ifinfo
115This Info file contains edition 2.4 of the GNU Emacs Lisp 115This Info file contains edition 2.4a of the GNU Emacs Lisp
116Reference Manual, corresponding to GNU Emacs version 19.29. 116Reference Manual, corresponding to GNU Emacs version 19.32.
117@end ifinfo 117@end ifinfo
118 118
119@menu 119@menu
@@ -643,6 +643,7 @@ Windows
643* Window Start:: The display-start position controls which text 643* Window Start:: The display-start position controls which text
644 is on-screen in the window. 644 is on-screen in the window.
645* Vertical Scrolling:: Moving text up and down in the window. 645* Vertical Scrolling:: Moving text up and down in the window.
646* Scrolling Hooks:: Hooks that run when you scroll a window.
646* Horizontal Scrolling:: Moving text sideways on the window. 647* Horizontal Scrolling:: Moving text sideways on the window.
647* Size of Window:: Accessing the size of a window. 648* Size of Window:: Accessing the size of a window.
648* Resizing Windows:: Changing the size of a window. 649* Resizing Windows:: Changing the size of a window.
@@ -720,9 +721,12 @@ Text
720* Indentation:: Functions to insert or adjust indentation. 721* Indentation:: Functions to insert or adjust indentation.
721* Columns:: Computing horizontal positions, and using them. 722* Columns:: Computing horizontal positions, and using them.
722* Case Changes:: Case conversion of parts of the buffer. 723* Case Changes:: Case conversion of parts of the buffer.
724* Text Properties:: Assigning Lisp property lists to text characters.
723* Substitution:: Replacing a given character wherever it appears. 725* Substitution:: Replacing a given character wherever it appears.
726* Transposition:: Swapping two portions of a buffer.
724* Registers:: How registers are implemented. Accessing 727* Registers:: How registers are implemented. Accessing
725 the text or position stored in a register. 728 the text or position stored in a register.
729* Change Hooks:: Supplying functions to be run when text is changed.
726 730
727The Kill Ring 731The Kill Ring
728 732
@@ -741,6 +745,22 @@ Indentation
741* Indent Tabs:: Adjustable, typewriter-like tab stops. 745* Indent Tabs:: Adjustable, typewriter-like tab stops.
742* Motion by Indent:: Move to first non-blank character. 746* Motion by Indent:: Move to first non-blank character.
743 747
748Text Properties
749
750* Examining Properties:: Looking at the properties of one character.
751* Changing Properties:: Setting the properties of a range of text.
752* Property Search:: Searching for where a property changes value.
753* Special Properties:: Particular properties with special meanings.
754* Format Properties:: Properties for representing formatting of text.
755* Sticky Properties:: How inserted text gets properties from
756 neighboring text.
757* Saving Properties:: Saving text properties in files, and reading
758 them back.
759* Lazy Properties:: Computing text properties in a lazy fashion
760 only when text is examined.
761* Not Intervals:: Why text properties do not use
762 Lisp-visible text intervals.
763
744Searching and Matching 764Searching and Matching
745 765
746* String Search:: Search for an exact match. 766* String Search:: Search for an exact match.