single characters to be treated as standing for themselves."
(let* ((sort-fun (when (eq read-char-by-name-sort 'code)
#'mule--ucs-names-sort-by-code))
- (group-fun (when completions-group #'mule--ucs-names-group))
(input
(minibuffer-with-setup-hook
(lambda ()
(completing-read
prompt (completion-table-with-metadata
(ucs-names)
- `((sort-function . ,sort-fun)
- (affixation-function . ,#'mule--ucs-names-affixation)
- (narrow-completions-function . ,#'mule--ucs-names-narrow)
- (group-function . ,group-fun)
- (category . unicode-name))))))
+ (lambda (&rest _)
+ `((sort-function . ,sort-fun)
+ (affixation-function . ,#'mule--ucs-names-affixation)
+ (narrow-completions-function . ,#'mule--ucs-names-narrow)
+ (category . unicode-name)
+ . ,(when completions-group
+ '((group-function . mule--ucs-names-group)))))))))
(char
(cond
((char-from-name input t))