[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu ef048aeb01 9/9: Remove corfu-doc-popup-transition
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu ef048aeb01 9/9: Remove corfu-doc-popup-transition |
Date: |
Thu, 17 Nov 2022 14:57:30 -0500 (EST) |
branch: externals/corfu
commit ef048aeb015ff8e71b0c8f44891d5230abd8cbad
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Remove corfu-doc-popup-transition
The 'clear option feels like a bug. Remove it.
---
extensions/corfu-doc-popup.el | 33 ++++++---------------------------
1 file changed, 6 insertions(+), 27 deletions(-)
diff --git a/extensions/corfu-doc-popup.el b/extensions/corfu-doc-popup.el
index 9febfee2c4..dba9e387e3 100644
--- a/extensions/corfu-doc-popup.el
+++ b/extensions/corfu-doc-popup.el
@@ -49,28 +49,10 @@ The value of nil means no delay."
(const :tag "immediate (0)" 0)
(number :tag "seconds")))
-(defcustom corfu-doc-popup-transition nil
- "The method to transition the documentation popup when browsing candidates.
-
-The documentation popup transition only works when `corfu-auto-delay'
-is non-nil and its value is greater than 0.
-
-If this is nil, there is no transition (do nothing), the doc popup
-preserves the content of the last candidate.
-
-If the value is 'clear, the documentation content of the last candidate
-will be cleared on documentation popup transition.
-
-If the value is 'hide, the documentation popup will be hidden
-when brwosing candidates.
-
-It is recommended to select the corresponding transition method
-according to the value of `corfu-doc-popup-delay' to reduce flicker or
-documentation update delay."
+(defcustom corfu-doc-popup-hide t
+ "Hide the popup during the transition between candidates."
:group 'corfu
- :type '(choice (const :tag "no transition (nil)" nil)
- (const :tag "clear content" clear)
- (const :tag "hide popup" hide)))
+ :type 'boolean)
(defcustom corfu-doc-popup-max-width 80
"The max width of the corfu doc popup in characters."
@@ -420,12 +402,9 @@ it should be compared with the value recorded by
`corfu--index'."
(when (corfu-doc-popup--visible-p)
(when (and (not (null corfu-doc-popup-delay))
(> corfu-doc-popup-delay 0))
- (pcase corfu-doc-popup-transition
- ('clear
- (corfu-doc-popup--clear-buffer)
- (corfu-doc-popup--show corfu-doc-popup--candidate))
- ('hide (make-frame-invisible corfu-doc-popup--frame))
- (_ (corfu-doc-popup--show corfu-doc-popup--candidate))))))
+ (if corfu-doc-popup-hide
+ (make-frame-invisible corfu-doc-popup--frame)
+ (corfu-doc-popup--show corfu-doc-popup--candidate)))))
(defun corfu-doc-popup-scroll-up (&optional n)
"Scroll text of doc popup window upward N lines.
- [elpa] externals/corfu updated (0d0b2c9fd9 -> ef048aeb01), ELPA Syncer, 2022/11/17
- [elpa] externals/corfu 6d010877f9 8/9: Increase corfu-doc-popup-delay, ELPA Syncer, 2022/11/17
- [elpa] externals/corfu abe4a14d52 2/9: Add optional argument to hack redisplay when move the frame, ELPA Syncer, 2022/11/17
- [elpa] externals/corfu f434fed5f8 3/9: Add corfu-doc-popup, ELPA Syncer, 2022/11/17
- [elpa] externals/corfu 0632308f33 1/9: Make create buffer and make frame code reusable, ELPA Syncer, 2022/11/17
- [elpa] externals/corfu ef048aeb01 9/9: Remove corfu-doc-popup-transition,
ELPA Syncer <=
- [elpa] externals/corfu 666678e7e9 7/9: Remove corfu-doc-popup group, ELPA Syncer, 2022/11/17
- [elpa] externals/corfu c63d92f141 4/9: Rename corfu-info to corfu-doc-buffer, ELPA Syncer, 2022/11/17
- [elpa] externals/corfu b02b68a2b8 6/9: Revert "Add optional argument to hack redisplay when move the frame", ELPA Syncer, 2022/11/17
- [elpa] externals/corfu 0438c9085d 5/9: Update README, ELPA Syncer, 2022/11/17