Mercurial > hg > xemacs-beta
annotate man/lispref/locals.texi @ 5634:2014ff433daf
Support hash COLLECTIONs, #'{all,try}-completion{s,}; add #'test-completion
src/ChangeLog addition:
2012-01-01 Aidan Kehoe <kehoea@parhasard.net>
Add #'test-completion, API from GNU.
Accept hash table COLLECTIONs in it and in the other
completion-oriented functions, #'try-completion,
#'all-completions, and those Lisp functions implemented in terms
of them.
* lisp.h: Update the prototype of map_obarray(), making FN
compatible with the FUNCTION argument of elisp_maphash();
* abbrev.c (abbrev_match_mapper):
* abbrev.c (record_symbol):
* doc.c (verify_doc_mapper):
* symbols.c (mapatoms_1):
* symbols.c (apropos_mapper):
Update these mapper functions to reflect the new argument to
map_obarray().
* symbols.c (map_obarray):
Call FN with two arguments, the string name of the symbol, and the
symbol itself, for API (mapper) compatibility with
elisp_maphash().
* minibuf.c (map_completion): New. Map a maphash_function_t across
a non function COLLECTION, as appropriate for #'try-completion and
friends.
* minibuf.c (map_completion_list): New. Map a maphash_function_t
across a pseudo-alist, as appropriate for the completion
functions.
* minibuf.c (ignore_completion_p): PRED needs to be called with
two args if and only if the collection is a hash table. Implement
this.
* minibuf.c (try_completion_mapper): New. The loop body of
#'try-completion, refactored out.
* minibuf.c (Ftry_completion): Use try_completion_mapper(),
map_completion().
* minibuf.c (all_completions_mapper): New. The loop body of
#'all-completions, refactored out.
* minibuf.c (Fall_completions): Use all_completions_mapper(),
map_completion().
* minibuf.c (test_completion_mapper): New. The loop body of
#'test-completion.
* minibuf.c (Ftest_completion): New, API from GNU.
* minibuf.c (syms_of_minibuf): Make Ftest_completion available.
tests/ChangeLog addition:
2012-01-01 Aidan Kehoe <kehoea@parhasard.net>
* automated/completion-tests.el: New.
Test #'try-completion, #'all-completion and #'test-completion with
list, vector and hash-table COLLECTION arguments.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 01 Jan 2012 15:18:52 +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 |