mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 04:21:24 +00:00
Remove 'completion-preview--is-calling'
We decided to leave it out for now, see discussion at
https://yhetil.org/emacs/jwvqzntzvvg.fsf-monnier+emacs@gnu.org/
This brings completion-preview.el back to how it were before
commit a24ff52a79.
* lisp/completion-preview.el (completion-preview--is-calling):
Delete.
(completion-preview--capf-wrapper): Adapt.
This commit is contained in:
parent
e05fab5775
commit
7c70816066
1 changed files with 1 additions and 6 deletions
|
|
@ -523,14 +523,9 @@ candidates or if there are multiple matching completions and
|
|||
(setq sorted (cdr sorted)))
|
||||
(list (substring string 0 base) common suffixes))))))
|
||||
|
||||
(defvar completion-preview--is-calling nil
|
||||
"Non-nil while Completion Preview mode is calling a completion function.")
|
||||
|
||||
(defun completion-preview--capf-wrapper (capf)
|
||||
"Translate return value of CAPF to properties for completion preview overlay."
|
||||
(let ((res (ignore-errors
|
||||
(let ((completion-preview--is-calling t))
|
||||
(funcall capf)))))
|
||||
(let ((res (ignore-errors (funcall capf))))
|
||||
(and (consp res)
|
||||
(not (functionp res))
|
||||
(seq-let (beg end table &rest plist) res
|
||||
|
|
|
|||
Loading…
Reference in a new issue