diff options
| author | Stefan Monnier | 2011-05-31 00:03:38 -0300 |
|---|---|---|
| committer | Stefan Monnier | 2011-05-31 00:03:38 -0300 |
| commit | 620c53a664e41788f6d4f8e3f687e1a0d448b857 (patch) | |
| tree | 64b790dcda19362a90514d4ff419fef06b7eb111 /src/ChangeLog | |
| parent | e003a29261f4d1f9263efbcabbeb4e502de5612b (diff) | |
| download | emacs-620c53a664e41788f6d4f8e3f687e1a0d448b857.tar.gz emacs-620c53a664e41788f6d4f8e3f687e1a0d448b857.zip | |
* lisp/minibuffer.el: Add metadata method to completion tables.
(completion-category-overrides): New defcustom.
(completion-metadata, completion--field-metadata)
(completion-metadata-get, completion--styles)
(completion--cycle-threshold): New functions.
(completion-try-completion, completion-all-completions):
Add `metadata' argument to choose completion-styles.
(completion--do-completion): Use metadata to choose cycling.
(completion-all-sorted-completions): Use metadata for sorting.
Remove :completion-cycle-penalty which is not needed any more.
(completion--try-word-completion): Add `metadata' argument.
(minibuffer-completion-help): Check metadata for annotation function
and sorting.
(completion-file-name-table): Return `category' metadata.
(minibuffer-completing-file-name): Make obsolete.
* lisp/simple.el (minibuffer-completing-symbol): Make obsolete.
* lisp/icomplete.el (icomplete-completions): Pass new `metadata' param to
completion-try-completion.
* src/minibuf.c (Finternal_complete_buffer): Return `category' metadata.
(read_minibuf): Use get_minibuffer.
(syms_of_minibuf): Use DEFSYM.
(Qmetadata): New var.
* src/data.c (Qbuffer): Don't make it static.
(syms_of_data): Use DEFSYM.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d5eb84095fd..813e590681d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-05-31 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * minibuf.c (Finternal_complete_buffer): Return `category' metadata. | ||
| 4 | (read_minibuf): Use get_minibuffer. | ||
| 5 | (syms_of_minibuf): Use DEFSYM. | ||
| 6 | (Qmetadata): New var. | ||
| 7 | * data.c (Qbuffer): Don't make it static. | ||
| 8 | (syms_of_data): Use DEFSYM. | ||
| 9 | |||
| 1 | 2011-05-31 Paul Eggert <eggert@cs.ucla.edu> | 10 | 2011-05-31 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 11 | ||
| 3 | * ccl.c (CCL_CODE_RANGE): Allow negative numbers. (Bug#8751) | 12 | * ccl.c (CCL_CODE_RANGE): Allow negative numbers. (Bug#8751) |
| @@ -164,8 +173,8 @@ | |||
| 164 | (symbol_to_x_atom): Remove gratuitous arg. | 173 | (symbol_to_x_atom): Remove gratuitous arg. |
| 165 | (x_handle_selection_request, lisp_data_to_selection_data) | 174 | (x_handle_selection_request, lisp_data_to_selection_data) |
| 166 | (x_get_foreign_selection, Fx_register_dnd_atom): Callers changed. | 175 | (x_get_foreign_selection, Fx_register_dnd_atom): Callers changed. |
| 167 | (x_own_selection, x_get_local_selection, x_convert_selection): New | 176 | (x_own_selection, x_get_local_selection, x_convert_selection): |
| 168 | arg, specifying work frame. Use terminal-local Vselection_alist. | 177 | New arg, specifying work frame. Use terminal-local Vselection_alist. |
| 169 | (some_frame_on_display): Delete unused function. | 178 | (some_frame_on_display): Delete unused function. |
| 170 | (Fx_own_selection_internal, Fx_get_selection_internal) | 179 | (Fx_own_selection_internal, Fx_get_selection_internal) |
| 171 | (Fx_disown_selection_internal, Fx_selection_owner_p) | 180 | (Fx_disown_selection_internal, Fx_selection_owner_p) |
| @@ -186,8 +195,8 @@ | |||
| 186 | (x_selection_request_lisp_error): Free the above. | 195 | (x_selection_request_lisp_error): Free the above. |
| 187 | (x_get_local_selection): Remove unnecessary code. | 196 | (x_get_local_selection): Remove unnecessary code. |
| 188 | (x_reply_selection_request): Args changed; handle arbitrary array | 197 | (x_reply_selection_request): Args changed; handle arbitrary array |
| 189 | of converted selections stored in converted_selections. Separate | 198 | of converted selections stored in converted_selections. |
| 190 | the XChangeProperty and SelectionNotify steps. | 199 | Separate the XChangeProperty and SelectionNotify steps. |
| 191 | (x_handle_selection_request): Rewrite to handle MULTIPLE target. | 200 | (x_handle_selection_request): Rewrite to handle MULTIPLE target. |
| 192 | (x_convert_selection): New function. | 201 | (x_convert_selection): New function. |
| 193 | (x_handle_selection_event): Simplify. | 202 | (x_handle_selection_event): Simplify. |
| @@ -351,8 +360,8 @@ | |||
| 351 | 360 | ||
| 352 | Be more systematic about user-interface timestamps. | 361 | Be more systematic about user-interface timestamps. |
| 353 | Before, the code sometimes used 'Time', sometimes 'unsigned long', | 362 | Before, the code sometimes used 'Time', sometimes 'unsigned long', |
| 354 | and sometimes 'EMACS_UINT', to represent these timestamps. This | 363 | and sometimes 'EMACS_UINT', to represent these timestamps. |
| 355 | change causes it to use 'Time' uniformly, as that's what X uses. | 364 | This change causes it to use 'Time' uniformly, as that's what X uses. |
| 356 | This makes the code easier to follow, and makes it easier to catch | 365 | This makes the code easier to follow, and makes it easier to catch |
| 357 | integer overflow bugs such as Bug#8664. | 366 | integer overflow bugs such as Bug#8664. |
| 358 | * frame.c (Fmouse_position, Fmouse_pixel_position): | 367 | * frame.c (Fmouse_position, Fmouse_pixel_position): |