diff options
| author | Karl Heuer | 1996-07-17 04:54:04 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-07-17 04:54:04 +0000 |
| commit | 840797eed72533d2a46de3e808eb58609cdf4cf1 (patch) | |
| tree | 14decba5f7956280faf3661f9d62909b44f39844 | |
| parent | 496110ef79d9e24767214dea03811097c69d7f65 (diff) | |
| download | emacs-840797eed72533d2a46de3e808eb58609cdf4cf1.tar.gz emacs-840797eed72533d2a46de3e808eb58609cdf4cf1.zip | |
Changes for Emacs 19.32.
| -rw-r--r-- | lispref/control.texi | 27 | ||||
| -rw-r--r-- | lispref/debugging.texi | 12 | ||||
| -rw-r--r-- | lispref/elisp.texi | 48 |
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} | |||
| 878 | returns normally, using the value of the last form in the handler body | 878 | returns normally, using the value of the last form in the handler body |
| 879 | as the overall value. | 879 | as the overall value. |
| 880 | 880 | ||
| 881 | @cindex error description | ||
| 881 | The argument @var{var} is a variable. @code{condition-case} does not | 882 | The argument @var{var} is a variable. @code{condition-case} does not |
| 882 | bind this variable when executing the @var{protected-form}, only when it | 883 | bind this variable when executing the @var{protected-form}, only when it |
| 883 | handles an error. At that time, it binds @var{var} locally to a list of | 884 | handles an error. At that time, it binds @var{var} locally to an |
| 884 | the form @code{(@var{error-symbol} . @var{data})}, giving the | 885 | @dfn{error description}, which is a list giving the particulars of the |
| 885 | particulars of the error. The handler can refer to this list to decide | 886 | error. The error description has the form @code{(@var{error-symbol} |
| 886 | what 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 |
| 887 | the file name is the second element of @var{data}---the third element of | 888 | do. For example, if the error is for failure opening a file, the file |
| 888 | @var{var}. | 889 | name is the second element of @var{data}---the third element of the |
| 890 | error description. | ||
| 889 | 891 | ||
| 890 | If @var{var} is @code{nil}, that means no variable is bound. Then the | 892 | If @var{var} is @code{nil}, that means no variable is bound. Then the |
| 891 | error symbol and associated data are not available to the handler. | 893 | error 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 | ||
| 897 | This function returns the error message string for a given error | ||
| 898 | descriptor. It is useful if you want to handle an error by printing the | ||
| 899 | usual error message for that error. | ||
| 900 | @end defun | ||
| 901 | |||
| 894 | @cindex @code{arith-error} example | 902 | @cindex @code{arith-error} example |
| 895 | Here is an example of using @code{condition-case} to handle the error | 903 | Here is an example of using @code{condition-case} to handle the error |
| 896 | that results from dividing by zero. The handler prints out a warning | 904 | that results from dividing by zero. The handler displays the error |
| 897 | message and returns a very large number. | 905 | message (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 | |||
| 95 | errors also can invoke the debugger. @xref{Processes}. | 95 | errors also can invoke the debugger. @xref{Processes}. |
| 96 | @end defopt | 96 | @end defopt |
| 97 | 97 | ||
| 98 | @defopt debug-ignored-errors | ||
| 99 | This variable specifies certain kinds of errors that should not enter | ||
| 100 | the debugger. Its value is a list of error condition symbols and/or | ||
| 101 | regular expressions. If the error has any of those condition symbols, | ||
| 102 | or if the error message matches any of the regular expressions, then | ||
| 103 | that error does not enter the debugger, regardless of the value of | ||
| 104 | @code{debug-on-error}. | ||
| 105 | |||
| 106 | The normal value of this variable lists several errors that happen often | ||
| 107 | during 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} |
| 99 | file, use the option @samp{-debug-init}, which binds | 111 | file, 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 |
| 9 | This version is the edition 2.4 of the GNU Emacs Lisp | 9 | This version is the edition 2.4a of the GNU Emacs Lisp |
| 10 | Reference Manual. It corresponds to Emacs Version 19.29. | 10 | Reference 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 | ||
| 14 | Published by the Free Software Foundation | 14 | Published by the Free Software Foundation |
| 15 | 675 Massachusetts Avenue | 15 | 59 Temple Place, Suite 330 |
| 16 | Cambridge, MA 02139 USA | 16 | Boston, MA 02111-1307 USA |
| 17 | 17 | ||
| 18 | Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. | 18 | Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. |
| 19 | 19 | ||
| 20 | Permission is granted to make and distribute verbatim copies of this | 20 | Permission is granted to make and distribute verbatim copies of this |
| 21 | manual provided the copyright notice and this permission notice are | 21 | manual 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 |
| 77 | Copyright @copyright{} 1990, 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc. | 77 | Copyright @copyright{} 1990, 1991, 1992, 1993, 1994, 1995, 1996 Free Software Foundation, Inc. |
| 78 | 78 | ||
| 79 | @sp 2 | 79 | @sp 2 |
| 80 | Edition 2.4 @* | 80 | Edition 2.4a @* |
| 81 | Revised for Emacs Version 19.29,@* | 81 | Revised for Emacs Version 19.32,@* |
| 82 | June, 1995.@* | 82 | July 1996.@* |
| 83 | @sp 2 | 83 | @sp 2 |
| 84 | ISBN 1-882114-71-X | 84 | ISBN 1-882114-71-X |
| 85 | 85 | ||
| 86 | @sp 2 | 86 | @sp 2 |
| 87 | Published by the Free Software Foundation @* | 87 | Published by the Free Software Foundation @* |
| 88 | 675 Massachusetts Avenue @* | 88 | 59 Temple Place, Suite 330@* |
| 89 | Cambridge, MA 02139 USA | 89 | Boston, MA 02111-1307 USA |
| 90 | 90 | ||
| 91 | Permission is granted to make and distribute verbatim copies of this | 91 | Permission is granted to make and distribute verbatim copies of this |
| 92 | manual provided the copyright notice and this permission notice are | 92 | manual 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 |
| 115 | This Info file contains edition 2.4 of the GNU Emacs Lisp | 115 | This Info file contains edition 2.4a of the GNU Emacs Lisp |
| 116 | Reference Manual, corresponding to GNU Emacs version 19.29. | 116 | Reference 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 | ||
| 727 | The Kill Ring | 731 | The 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 | ||
| 748 | Text 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 | |||
| 744 | Searching and Matching | 764 | Searching and Matching |
| 745 | 765 | ||
| 746 | * String Search:: Search for an exact match. | 766 | * String Search:: Search for an exact match. |