[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu c63d92f141 4/9: Rename corfu-info to corfu-doc-bu
From: |
ELPA Syncer |
Subject: |
[elpa] externals/corfu c63d92f141 4/9: Rename corfu-info to corfu-doc-buffer |
Date: |
Thu, 17 Nov 2022 14:57:29 -0500 (EST) |
branch: externals/corfu
commit c63d92f141613c537ccdd3182efdedf307a9e0d4
Author: Yuwei Tian <fishtai0@gmail.com>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Rename corfu-info to corfu-doc-buffer
---
README.org | 6 +++---
corfu.el | 4 ++--
extensions/{corfu-info.el => corfu-doc-buffer.el} | 24 +++++++++++------------
3 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/README.org b/README.org
index 9bb327322b..60c04baec6 100644
--- a/README.org
+++ b/README.org
@@ -427,8 +427,8 @@ shown. The keymap defines the following remappings and
bindings:
- ~previous-line~, =up=, =M-p= -> ~corfu-previous~
- ~completion-at-point~, =TAB= -> ~corfu-complete~
- =RET= -> ~corfu-insert~
-- =M-g= -> ~corfu-info-location~
-- =M-h= -> ~corfu-info-documentation~
+- =M-g= -> ~corfu-doc-buffer-location~
+- =M-h= -> ~corfu-doc-buffer-documentation~
- =M-SPC= -> ~corfu-insert-separator~
- =C-g= -> ~corfu-quit~
- ~keyboard-escape-quit~ -> ~corfu-reset~
@@ -447,7 +447,7 @@ following extensions come with the Corfu ELPA package:
-
[[https://github.com/minad/corfu/blob/main/extensions/corfu-history.el][corfu-history]]:
=corfu-history-mode= to remember selected candidates and to improve sorting.
-
[[https://github.com/minad/corfu/blob/main/extensions/corfu-indexed.el][corfu-indexed]]:
=corfu-indexed-mode= to select indexed candidates with prefix arguments.
--
[[https://github.com/minad/corfu/blob/main/extensions/corfu-info.el][corfu-info]]:
Actions to access the candidate location and documentation.
+-
[[https://github.com/minad/corfu/blob/main/extensions/corfu-doc-buffer.el][corfu-doc-buffer]]:
Actions to access the candidate location and documentation.
-
[[https://github.com/minad/corfu/blob/main/extensions/corfu-quick.el][corfu-quick]]:
Commands to select using Avy-style quick keys.
See the Commentary of those files for configuration details.
diff --git a/corfu.el b/corfu.el
index 9cf260a453..6cbdde2d18 100644
--- a/corfu.el
+++ b/corfu.el
@@ -240,8 +240,8 @@ The completion backend can override this with
(define-key map "\C-g" #'corfu-quit)
(define-key map "\r" #'corfu-insert)
(define-key map "\t" #'corfu-complete)
- (define-key map "\M-g" 'corfu-info-location)
- (define-key map "\M-h" 'corfu-info-documentation)
+ (define-key map "\M-g" 'corfu-doc-buffer-location)
+ (define-key map "\M-h" 'corfu-doc-buffer-documentation)
(define-key map "\M- " #'corfu-insert-separator)
map)
"Corfu keymap used when popup is shown.")
diff --git a/extensions/corfu-info.el b/extensions/corfu-doc-buffer.el
similarity index 82%
rename from extensions/corfu-info.el
rename to extensions/corfu-doc-buffer.el
index fe34494a99..7f3193b721 100644
--- a/extensions/corfu-info.el
+++ b/extensions/corfu-doc-buffer.el
@@ -1,4 +1,4 @@
-;;; corfu-info.el --- Show candidate information in separate buffer -*-
lexical-binding: t -*-
+;;; corfu-doc-buffer.el --- Show candidate information in separate buffer -*-
lexical-binding: t -*-
;; Copyright (C) 2022 Free Software Foundation, Inc.
@@ -27,8 +27,8 @@
;;; Commentary:
;; This Corfu extension provides commands to show additional information to the
-;; candidates in a separate buffer. The commands `corfu-info-location' and
-;; `corfu-info-documentation' are bound by default in the `corfu-map' to M-g
and
+;; candidates in a separate buffer. The commands `corfu-doc-buffer-location'
and
+;; `corfu-doc-buffer-documentation' are bound by default in the `corfu-map' to
M-g and
;; M-h respectively.
;;; Code:
@@ -37,7 +37,7 @@
(eval-when-compile
(require 'subr-x))
-(defun corfu-info--restore-on-next-command ()
+(defun corfu-doc-buffer--restore-on-next-command ()
"Restore window configuration before next command."
(let ((config (current-window-configuration))
(other other-window-scroll-buffer)
@@ -53,7 +53,7 @@
(add-hook 'pre-command-hook restore)))
;;;###autoload
-(defun corfu-info-documentation ()
+(defun corfu-doc-buffer-documentation ()
"Show documentation of current candidate."
(interactive)
;; Company support, taken from `company.el', see `company-show-doc-buffer'.
@@ -62,13 +62,13 @@
(if-let* ((fun (plist-get corfu--extra :company-doc-buffer))
(res (funcall fun (nth corfu--index corfu--candidates))))
(let ((buf (or (car-safe res) res)))
- (corfu-info--restore-on-next-command)
+ (corfu-doc-buffer--restore-on-next-command)
(setq other-window-scroll-buffer (get-buffer buf))
(set-window-start (display-buffer buf t) (or (cdr-safe res)
(point-min))))
(user-error "No documentation available")))
;;;###autoload
-(defun corfu-info-location ()
+(defun corfu-doc-buffer-location ()
"Show location of current candidate."
(interactive)
;; Company support, taken from `company.el', see `company-show-location'.
@@ -77,7 +77,7 @@
(if-let* ((fun (plist-get corfu--extra :company-location))
(loc (funcall fun (nth corfu--index corfu--candidates))))
(let ((buf (or (and (bufferp (car loc)) (car loc)) (find-file-noselect
(car loc) t))))
- (corfu-info--restore-on-next-command)
+ (corfu-doc-buffer--restore-on-next-command)
(setq other-window-scroll-buffer buf)
(with-selected-window (display-buffer buf t)
(save-restriction
@@ -90,8 +90,8 @@
(user-error "No candidate location available")))
;; Emacs 28: Do not show Corfu commands with M-X
-(put #'corfu-info-location 'completion-predicate #'ignore)
-(put #'corfu-info-documentation 'completion-predicate #'ignore)
+(put #'corfu-doc-buffer-location 'completion-predicate #'ignore)
+(put #'corfu-doc-buffer-documentation 'completion-predicate #'ignore)
-(provide 'corfu-info)
-;;; corfu-info.el ends here
+(provide 'corfu-doc-buffer)
+;;; corfu-doc-buffer.el ends here
- [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, 2022/11/17
- [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 <=
- [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