[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu-doc 767e7574ef 89/95: Obsolete toggle-corfu-doc-m
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu-doc 767e7574ef 89/95: Obsolete toggle-corfu-doc-mode command |
Date: |
Tue, 19 Jul 2022 15:58:07 -0400 (EDT) |
branch: externals/corfu-doc
commit 767e7574ef7003b54f4848160c1f53c43deea9cb
Author: Yuwei Tian <ibluefocus@outlook.com>
Commit: Yuwei Tian <ibluefocus@outlook.com>
Obsolete toggle-corfu-doc-mode command
---
corfu-doc.el | 15 +++------------
1 file changed, 3 insertions(+), 12 deletions(-)
diff --git a/corfu-doc.el b/corfu-doc.el
index b3ac2f194b..bb1f0a1baa 100644
--- a/corfu-doc.el
+++ b/corfu-doc.el
@@ -478,9 +478,11 @@ The optional CANDIDATE-INDEX is the the current completion
candidate index."
:group 'corfu
(cond
(corfu-doc-mode
+ (corfu-doc--manual-popup-show)
(advice-add 'corfu--popup-show :after #'corfu-doc--popup-show)
(advice-add 'corfu--popup-hide :after #'corfu-doc--popup-hide))
(t
+ (corfu-doc--popup-hide)
(advice-remove 'corfu--popup-show #'corfu-doc--popup-show)
(advice-remove 'corfu--popup-hide #'corfu-doc--popup-hide))))
@@ -572,18 +574,7 @@ corfu doc mode is turned on and `corfu-doc-auto' is set to
Non-nil."
(advice-add 'corfu--popup-show :after #'corfu-doc--popup-show)))
;;;###autoload
-(defun toggle-corfu-doc-mode (&optional arg)
- "Toggle corfu doc mode on or off.
-
-With optional ARG, turn corfu doc mode on if and only if ARG is positive."
- (interactive "P")
- (if (null arg)
- (setq arg (if corfu-doc-mode -1 1))
- (setq arg (prefix-numeric-value arg)))
- (if (> arg 0)
- (corfu-doc--manual-popup-show)
- (corfu-doc--popup-hide))
- (corfu-doc-mode arg))
+(define-obsolete-function-alias 'toggle-corfu-doc-mode #'corfu-doc-mode "0.7")
(provide 'corfu-doc)
- [elpa] externals/corfu-doc 45853ecb53 24/95: Version 0.1.0, (continued)
- [elpa] externals/corfu-doc 45853ecb53 24/95: Version 0.1.0, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc dcc481a5d0 58/95: Document display the doc frame within the parent frame, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc e1c79e8ffc 27/95: Version 0.1.1, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 1fd578caa0 53/95: Fix link, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc d2abf185e6 75/95: Rename corfu-doc--popup-transit to corfu-doc--popup-transition, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 07d389a0ab 74/95: Make candidates popup and doc popup share the border, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 832b49e2a1 83/95: Remove :safe args, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc be90c96079 84/95: Merge functions to get the documentation of the candidate, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 13574ae5d1 82/95: Make corfu-doc-display-within-parent-frame default to t, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 616a2a9fc6 93/95: Fix regression error when scrolling doc popup, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 767e7574ef 89/95: Obsolete toggle-corfu-doc-mode command,
ELPA Syncer <=
- [elpa] externals/corfu-doc da93136780 95/95: Increase the default max width of the doc frame to 80 characters, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 8e463cccad 11/95: Fix #4: add requirement for map library, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc b8b47f79bc 03/95: Make the documentation scrollable, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc d2260b04d7 04/95: Fix doc frame border missing problem, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc fd15093639 05/95: Add left and right margins, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc c6b54c923e 14/95: Add command to quickly toggle documentation popup on or off, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 98398c61fa 15/95: Fix wrong argument type error when calling frame-visible-p, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc e18aea61e7 10/95: Version 0.0.3, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 98509cbe29 44/95: Decrease auto delay to 0.1, ELPA Syncer, 2022/07/19
- [elpa] externals/corfu-doc 0741012875 26/95: Fix typo in comment, ELPA Syncer, 2022/07/19