(load "emacs-lisp/nadvice")
(load "emacs-lisp/cl-preloaded")
-(load "minibuffer") ;After loaddefs, for define-minor-mode.
(load "obarray") ;abbrev.el is implemented in terms of obarrays.
(load "abbrev") ;lisp-mode.el and simple.el use define-abbrev-table.
(load "simple")
(load "indent")
(load "emacs-lisp/cl-generic")
+(load "minibuffer") ;Needs cl-generic (and define-minor-mode).
(load "frame")
(load "startup")
(load "term/tty-colors")
(let* ((base (concat "emacs-" emacs-version "."))
(exelen (if (eq system-type 'windows-nt) -4))
(files (file-name-all-completions base default-directory))
- (versions (mapcar (function
- (lambda (name)
- (string-to-number
- (substring name (length base) exelen))))
+ (versions (mapcar (lambda (name)
+ (string-to-number
+ (substring name (length base) exelen)))
files)))
(setq emacs-repository-version (ignore-errors (emacs-repository-get-version))
emacs-repository-branch (ignore-errors (emacs-repository-get-branch)))
;; (define-key map "\e\t" 'minibuffer-force-complete)
(define-key map " " 'minibuffer-complete-word)
(define-key map "?" 'minibuffer-completion-help)
+ (define-key map [prior] 'switch-to-completions)
+ (define-key map "\M-v" 'switch-to-completions)
map)
"Local keymap for minibuffer input with completion.")
(shell-completion-vars)
(set (make-local-variable 'minibuffer-default-add-function)
'minibuffer-default-add-shell-commands))
- (apply 'read-from-minibuffer prompt initial-contents
+ (apply #'read-from-minibuffer prompt initial-contents
minibuffer-local-shell-command-map
nil
(or hist 'shell-command-history)
"In this buffer, type \\[choose-completion] to \
select the completion near point.\n\n"))))))
-(add-hook 'completion-setup-hook 'completion-setup-function)
-
-(define-key minibuffer-local-completion-map [prior] 'switch-to-completions)
-(define-key minibuffer-local-completion-map "\M-v" 'switch-to-completions)
+(add-hook 'completion-setup-hook #'completion-setup-function)
(defun switch-to-completions ()
"Select the completion list window."