Fix minibuffer histoty completion for Emacs-27.2
This commit is contained in:
parent
2faaa1a028
commit
fc0a81fd1f
@ -538,6 +538,14 @@ previous input in the minibuffer.
|
|||||||
|
|
||||||
(add-hook 'minibuffer-setup-hook 'minibuffer-setup-history-completions)
|
(add-hook 'minibuffer-setup-hook 'minibuffer-setup-history-completions)
|
||||||
|
|
||||||
|
;; Stolen from Emacs-28.1 for Emacs-27.2:
|
||||||
|
(unless (fboundp 'minibuffer--completion-prompt-end)
|
||||||
|
(defun minibuffer--completion-prompt-end ()
|
||||||
|
(let ((end (minibuffer-prompt-end)))
|
||||||
|
(if (< (point) end)
|
||||||
|
(user-error "Can't complete in prompt")
|
||||||
|
end))))
|
||||||
|
|
||||||
;; Adapted from ‘minibuffer-complete’:
|
;; Adapted from ‘minibuffer-complete’:
|
||||||
(defun my-minibuffer-complete-history ()
|
(defun my-minibuffer-complete-history ()
|
||||||
(interactive)
|
(interactive)
|
||||||
|
Loading…
Reference in New Issue
Block a user