aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Berman2011-10-03 10:47:40 -0400
committerStefan Monnier2011-10-03 10:47:40 -0400
commit8ea0a99305da16de73e508c943db3e844eda2e9e (patch)
treeb96078f642ba3a44c172a1bbebed8fa09cda027c
parent8c24b7f65f81cc12d51c3a819737b3221b109ee5 (diff)
downloademacs-8ea0a99305da16de73e508c943db3e844eda2e9e.tar.gz
emacs-8ea0a99305da16de73e508c943db3e844eda2e9e.zip
* lisp/minibuffer.el (completion-category-overrides): Fix type of styles
and add more user friendly tags. Fixes: debbugs:9660
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/minibuffer.el16
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 @@
12011-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
12011-10-03 Stefan Monnier <monnier@iro.umontreal.ca> 62011-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
498an association list that can specify properties such as: 498an 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"))))))