Mercurial > hg > xemacs-beta
annotate man/lispref/locals.texi @ 5307:c096d8051f89
Have NATNUMP give t for positive bignums; check limits appropriately.
src/ChangeLog addition:
2010-11-20 Aidan Kehoe <kehoea@parhasard.net>
* abbrev.c (Fexpand_abbrev):
* alloc.c:
* alloc.c (Fmake_list):
* alloc.c (Fmake_vector):
* alloc.c (Fmake_bit_vector):
* alloc.c (Fmake_byte_code):
* alloc.c (Fmake_string):
* alloc.c (vars_of_alloc):
* bytecode.c (UNUSED):
* bytecode.c (Fbyte_code):
* chartab.c (decode_char_table_range):
* cmds.c (Fself_insert_command):
* data.c (check_integer_range):
* data.c (Fnatnump):
* data.c (Fnonnegativep):
* data.c (Fstring_to_number):
* elhash.c (hash_table_size_validate):
* elhash.c (decode_hash_table_size):
* eval.c (Fbacktrace_frame):
* event-stream.c (lisp_number_to_milliseconds):
* event-stream.c (Faccept_process_output):
* event-stream.c (Frecent_keys):
* event-stream.c (Fdispatch_event):
* events.c (Fmake_event):
* events.c (Fevent_timestamp):
* events.c (Fevent_timestamp_lessp):
* events.h:
* events.h (struct command_builder):
* file-coding.c (gzip_putprop):
* fns.c:
* fns.c (check_sequence_range):
* fns.c (Frandom):
* fns.c (Fnthcdr):
* fns.c (Flast):
* fns.c (Fnbutlast):
* fns.c (Fbutlast):
* fns.c (Fmember):
* fns.c (Ffill):
* fns.c (Freduce):
* fns.c (replace_string_range_1):
* fns.c (Freplace):
* font-mgr.c (Ffc_pattern_get):
* frame-msw.c (msprinter_set_frame_properties):
* glyphs.c (check_valid_xbm_inline):
* indent.c (Fmove_to_column):
* intl-win32.c (mswindows_multibyte_to_unicode_putprop):
* lisp.h:
* lisp.h (ARRAY_DIMENSION_LIMIT):
* lread.c (decode_mode_1):
* mule-ccl.c (ccl_get_compiled_code):
* number.h:
* process-unix.c (unix_open_multicast_group):
* process.c (Fset_process_window_size):
* profile.c (Fstart_profiling):
* unicode.c (Funicode_to_char):
Change NATNUMP to return 1 for positive bignums; changes uses of
it and of CHECK_NATNUM appropriately, usually by checking for an
integer in an appropriate range.
Add array-dimension-limit and use it in #'make-vector,
#'make-string. Add array-total-size-limit, array-rank-limit while
we're at it, for the sake of any Common Lisp-oriented code that
uses these limits.
Rename check_int_range to check_integer_range, have it take
Lisp_Objects (and thus bignums) instead.
Remove bignum_butlast(), just set int_n to an appropriately large
integer if N is a bignum.
Accept bignums in check_sequence_range(), change the functions
that use check_sequence_range() appropriately.
Move the definition of NATNUMP() to number.h; document why it's a
reasonable name, contradicting an old comment.
tests/ChangeLog addition:
2010-11-20 Aidan Kehoe <kehoea@parhasard.net>
* automated/lisp-tests.el:
* automated/lisp-tests.el (featurep):
* automated/lisp-tests.el (wrong-type-argument):
* automated/mule-tests.el (featurep):
Check for args-out-of-range errors instead of wrong-type-argument
errors in various places when code is handed a large bignum
instead of a fixnum.
Also check for the wrong-type-argument errors when giving the same
code a non-integer value.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 20 Nov 2010 16:49:11 +0000 |
parents | 0b4d355771bd |
children |
rev | line source |
---|---|
0 | 1 @c -*-texinfo-*- |
2 @c This is part of the XEmacs Lisp Reference Manual. | |
444 | 3 @c Copyright (C) 1990, 1991, 1992, 1993 Free Software Foundation, Inc. |
0 | 4 @c See the file lispref.texi for copying conditions. |
5 @setfilename ../../info/locals.info | |
6 @node Standard Buffer-Local Variables, Standard Keymaps, Standard Errors, Top | |
7 @appendix Buffer-Local Variables | |
8 @c The title "Standard Buffer-Local Variables" is too long for | |
9 @c smallbook. --rjc 30mar92 | |
10 | |
11 The table below lists the general-purpose Emacs variables that are | |
12 automatically local (when set) in each buffer. Many Lisp packages | |
13 define such variables for their internal use; we don't list them here. | |
14 | |
15 @table @code | |
16 @item abbrev-mode | |
17 @pxref{Abbrevs} | |
18 | |
19 @item auto-fill-function | |
20 @pxref{Auto Filling} | |
21 | |
22 @item buffer-auto-save-file-name | |
23 @pxref{Auto-Saving} | |
24 | |
25 @item buffer-backed-up | |
26 @pxref{Backup Files} | |
27 | |
5214
0b4d355771bd
Import buffer-display-count, buffer-display-time; thank you, Jeff Sparkes.
Aidan Kehoe <kehoea@parhasard.net>
parents:
446
diff
changeset
|
28 @item buffer-display-count |
0b4d355771bd
Import buffer-display-count, buffer-display-time; thank you, Jeff Sparkes.
Aidan Kehoe <kehoea@parhasard.net>
parents:
446
diff
changeset
|
29 @xref{Buffers and Windows}. |
0b4d355771bd
Import buffer-display-count, buffer-display-time; thank you, Jeff Sparkes.
Aidan Kehoe <kehoea@parhasard.net>
parents:
446
diff
changeset
|
30 |
0 | 31 @item buffer-display-table |
32 @pxref{Display Tables} | |
33 | |
5214
0b4d355771bd
Import buffer-display-count, buffer-display-time; thank you, Jeff Sparkes.
Aidan Kehoe <kehoea@parhasard.net>
parents:
446
diff
changeset
|
34 @item buffer-display-time |
0b4d355771bd
Import buffer-display-count, buffer-display-time; thank you, Jeff Sparkes.
Aidan Kehoe <kehoea@parhasard.net>
parents:
446
diff
changeset
|
35 @xref{Buffers and Windows}. |
0b4d355771bd
Import buffer-display-count, buffer-display-time; thank you, Jeff Sparkes.
Aidan Kehoe <kehoea@parhasard.net>
parents:
446
diff
changeset
|
36 |
0 | 37 @item buffer-file-format |
38 @pxref{Format Conversion} | |
39 | |
40 @item buffer-file-name | |
41 @pxref{Buffer File Name} | |
42 | |
43 @item buffer-file-number | |
44 @pxref{Buffer File Name} | |
45 | |
46 @item buffer-file-truename | |
47 @pxref{Buffer File Name} | |
48 | |
49 @item buffer-file-type | |
50 @pxref{Files and MS-DOS} | |
51 | |
52 @item buffer-invisibility-spec | |
53 @pxref{Invisible Text} | |
54 | |
55 @item buffer-offer-save | |
56 @pxref{Saving Buffers} | |
57 | |
58 @item buffer-read-only | |
59 @pxref{Read Only Buffers} | |
60 | |
61 @item buffer-saved-size | |
62 @pxref{Point} | |
63 | |
64 @item buffer-undo-list | |
65 @pxref{Undo} | |
66 | |
67 @item cache-long-line-scans | |
68 @pxref{Text Lines} | |
69 | |
70 @item case-fold-search | |
71 @pxref{Searching and Case} | |
72 | |
73 @item ctl-arrow | |
74 @pxref{Usual Display} | |
75 | |
76 @item comment-column | |
446 | 77 @pxref{Comments,,, xemacs, The XEmacs User's Manual} |
0 | 78 |
79 @item default-directory | |
80 @pxref{System Environment} | |
81 | |
82 @item defun-prompt-regexp | |
83 @pxref{List Motion} | |
84 | |
85 @item fill-column | |
86 @pxref{Auto Filling} | |
87 | |
88 @item goal-column | |
446 | 89 @pxref{Moving Point,,, xemacs, The XEmacs User's Manual} |
0 | 90 |
91 @item left-margin | |
92 @pxref{Indentation} | |
93 | |
94 @item local-abbrev-table | |
95 @pxref{Abbrevs} | |
96 | |
97 @item local-write-file-hooks | |
98 @pxref{Saving Buffers} | |
99 | |
100 @item major-mode | |
101 @pxref{Mode Help} | |
102 | |
103 @item mark-active | |
104 @pxref{The Mark} | |
105 | |
106 @item mark-ring | |
107 @pxref{The Mark} | |
108 | |
109 @item minor-modes | |
110 @pxref{Minor Modes} | |
111 | |
112 @item modeline-format | |
113 @pxref{Modeline Data} | |
114 | |
115 @item modeline-buffer-identification | |
116 @pxref{Modeline Variables} | |
117 | |
118 @item modeline-format | |
119 @pxref{Modeline Data} | |
120 | |
121 @item modeline-modified | |
122 @pxref{Modeline Variables} | |
123 | |
124 @item modeline-process | |
125 @pxref{Modeline Variables} | |
126 | |
127 @item mode-name | |
128 @pxref{Modeline Variables} | |
129 | |
130 @item overwrite-mode | |
131 @pxref{Insertion} | |
132 | |
133 @item paragraph-separate | |
134 @pxref{Standard Regexps} | |
135 | |
136 @item paragraph-start | |
137 @pxref{Standard Regexps} | |
138 | |
139 @item point-before-scroll | |
140 Used for communication between mouse commands and scroll-bar commands. | |
141 | |
142 @item require-final-newline | |
143 @pxref{Insertion} | |
144 | |
145 @item selective-display | |
146 @pxref{Selective Display} | |
147 | |
148 @item selective-display-ellipses | |
149 @pxref{Selective Display} | |
150 | |
151 @item tab-width | |
152 @pxref{Usual Display} | |
153 | |
154 @item truncate-lines | |
155 @pxref{Truncation} | |
156 | |
157 @item vc-mode | |
158 @pxref{Modeline Variables} | |
159 @end table |