diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 16 |
2 files changed, 15 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a7258eec2a4..0dab1a4f224 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-10-03 Stephen Berman <stephen.berman@gmx.net> | ||
| 2 | |||
| 3 | * minibuffer.el (completion-category-overrides): Fix type of styles | ||
| 4 | and add more user friendly tags (bug#9660). | ||
| 5 | |||
| 1 | 2011-10-03 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2011-10-03 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * international/mule-cmds.el: Fix abuses of apply-partially (bug#9661). | 8 | * international/mule-cmds.el: Fix abuses of apply-partially (bug#9661). |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 021e46d5053..ba07a119d92 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -498,15 +498,19 @@ Each override has the shape (CATEGORY . ALIST) where ALIST is | |||
| 498 | an association list that can specify properties such as: | 498 | an association list that can specify properties such as: |
| 499 | - `styles': the list of `completion-styles' to use for that category. | 499 | - `styles': the list of `completion-styles' to use for that category. |
| 500 | - `cycle': the `completion-cycle-threshold' to use for that category." | 500 | - `cycle': the `completion-cycle-threshold' to use for that category." |
| 501 | :type `(alist :key-type (choice (const buffer) | 501 | :type `(alist :key-type (choice :tag "Category" |
| 502 | (const buffer) | ||
| 502 | (const file) | 503 | (const file) |
| 503 | symbol) | 504 | symbol) |
| 504 | :value-type | 505 | :value-type |
| 505 | (set | 506 | (set :tag "Properties to override" |
| 506 | (cons (const style) | 507 | (cons :tag "Completion Styles" |
| 507 | (repeat ,@(mapcar (lambda (x) (list 'const (car x))) | 508 | (const :tag "Select a style from the menu;" styles) |
| 508 | completion-styles-alist))) | 509 | (repeat :tag "insert a new menu to add more styles" |
| 509 | (cons (const cycle) | 510 | (choice ,@(mapcar (lambda (x) (list 'const (car x))) |
| 511 | completion-styles-alist)))) | ||
| 512 | (cons :tag "Completion Cycling" | ||
| 513 | (const :tag "Select one value from the menu." cycle) | ||
| 510 | (choice (const :tag "No cycling" nil) | 514 | (choice (const :tag "No cycling" nil) |
| 511 | (const :tag "Always cycle" t) | 515 | (const :tag "Always cycle" t) |
| 512 | (integer :tag "Threshold")))))) | 516 | (integer :tag "Threshold")))))) |