(if (eq (car bounds) (length result))
'exact 'finished))))))))))))
-(defun completions-setup ()
- "Set up the current buffer for displaying a list of completions."
- (completion-list-mode)
- (when completion-tab-width (setq tab-width completion-tab-width))
- (when completions-highlight-face (cursor-face-highlight-mode 1))
- (face-remap-add-relative 'header-line 'completions-heading))
-
(defun completions-display (completions &rest plist)
"Display COMPLETIONS in the buffer specified by `standard-output'.
(goto-char (prop-match-end pm))
(get-text-property (point) 'completion--string)))))))))
(with-current-buffer buf
- (completions-setup)
+ (completion-list-mode)
(let ((inhibit-read-only t))
(erase-buffer)
(delete-all-overlays)
(exit-minibuffer))))))))
(define-derived-mode completion-list-mode special-mode "Completions"
- "Major mode for buffers showing lists of possible completions.")
+ "Major mode for buffers showing lists of possible completions."
+ (when completion-tab-width (setq tab-width completion-tab-width))
+ (when completions-highlight-face (cursor-face-highlight-mode 1))
+ (face-remap-add-relative 'header-line 'completions-heading))
(defun switch-to-completions ()
"Select the completion list window."