[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu 4f6aac9 07/16: Ensure that documentation/location
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu 4f6aac9 07/16: Ensure that documentation/location frame still works with child-frame popup |
Date: |
Wed, 28 Apr 2021 14:20:03 -0400 (EDT) |
branch: externals/corfu
commit 4f6aac99cf1c554d0c6fffa14fc5df9b99d3469b
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Ensure that documentation/location frame still works with child-frame popup
---
corfu.el | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
diff --git a/corfu.el b/corfu.el
index 9b98861..f76e543 100644
--- a/corfu.el
+++ b/corfu.el
@@ -485,7 +485,7 @@ Set to nil in order to disable confirmation."
(unless (or (< corfu--index 0) (corfu--keep-alive-p))
(corfu--insert 'exact)))
-(defun corfu--window-configuration-change-hook ()
+(defun corfu--window-change-hook ()
"Terminate completion when window configuration changed."
(completion-in-region-mode -1))
@@ -542,12 +542,18 @@ Set to nil in order to disable confirmation."
(let ((config (current-window-configuration))
(other other-window-scroll-buffer)
(restore (make-symbol "corfu--restore")))
- (fset restore (lambda ()
- (when (eq this-command #'corfu-abort)
- (setq this-command #'ignore))
- (remove-hook 'pre-command-hook restore)
- (setq other-window-scroll-buffer other)
- (set-window-configuration config)))
+ (remove-hook 'window-configuration-change-hook
+ #'corfu--window-change-hook 'local)
+ (fset restore
+ (lambda ()
+ (when (eq this-command #'corfu-abort)
+ (setq this-command #'ignore))
+ (remove-hook 'pre-command-hook restore)
+ (setq other-window-scroll-buffer other)
+ (set-window-configuration config)
+ (redisplay) ;; force configuration change
+ (add-hook 'window-configuration-change-hook
+ #'corfu--window-change-hook nil 'local)))
(add-hook 'pre-command-hook restore)))
;; Company support, taken from `company.el', see `company-show-doc-buffer'.
@@ -638,13 +644,13 @@ Set to nil in order to disable confirmation."
"Setup Corfu completion state."
(setq corfu--extra-properties completion-extra-properties)
(setcdr (assq #'completion-in-region-mode minor-mode-overriding-map-alist)
corfu-map)
- (add-hook 'window-configuration-change-hook
#'corfu--window-configuration-change-hook nil 'local)
+ (add-hook 'window-configuration-change-hook #'corfu--window-change-hook nil
'local)
(add-hook 'pre-command-hook #'corfu--pre-command-hook nil 'local)
(add-hook 'post-command-hook #'corfu--post-command-hook nil 'local))
(defun corfu--teardown ()
"Teardown Corfu."
- (remove-hook 'window-configuration-change-hook
#'corfu--window-configuration-change-hook 'local)
+ (remove-hook 'window-configuration-change-hook #'corfu--window-change-hook
'local)
(remove-hook 'pre-command-hook #'corfu--pre-command-hook 'local)
(remove-hook 'post-command-hook #'corfu--post-command-hook 'local)
(when corfu--overlay (delete-overlay corfu--overlay))
- [elpa] externals/corfu 5951abd 04/16: Reorder exit conditions, (continued)
- [elpa] externals/corfu 5951abd 04/16: Reorder exit conditions, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 7155196 05/16: Simplify, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 59a3037 06/16: Ensure that overlay is deleted properly, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 9eb9ae6 08/16: Keep frame alive for performance, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu e5dad66 09/16: Use internal border, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu e4d66b6 10/16: Use spaces for border/bar instead of image, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu cdd215d 13/16: Ensure that frame buffer is set, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu a53a98a 16/16: Simplify face definitions, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 59949d3 03/16: Use child frames instead of overlays, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 9aa922d 01/16: Use `vertical-motion` instead of `forward-line`, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 4f6aac9 07/16: Ensure that documentation/location frame still works with child-frame popup,
Protesilaos Stavrou <=
- [elpa] externals/corfu aab3bb5 11/16: Use redraw-frame, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 3cfb6f4 12/16: Pixel-perfect positioning, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 2ef1beb 14/16: Use italic face for "No match" message, Protesilaos Stavrou, 2021/04/28
- [elpa] externals/corfu 76d7bce 15/16: Rename corfu-confirm to corfu-no-match, Protesilaos Stavrou, 2021/04/28