emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/corfu 3631532 1/2: README: Remove capf documentation fo


From: ELPA Syncer
Subject: [elpa] externals/corfu 3631532 1/2: README: Remove capf documentation for now
Date: Fri, 23 Jul 2021 17:57:09 -0400 (EDT)

branch: externals/corfu
commit 3631532ad328ea5c843d30d811b837729956251d
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    README: Remove capf documentation for now
    
    These capfs should go to a separate package
---
 README.org | 32 --------------------------------
 1 file changed, 32 deletions(-)

diff --git a/README.org b/README.org
index 8b8bedc..6519f79 100644
--- a/README.org
+++ b/README.org
@@ -118,38 +118,6 @@
       (setq tab-always-indent 'complete))
   #+end_src
 
-** File path completion inside strings
-
-   In order to additionally complete file paths in string literals, we can 
reuse
-   the file path completion of the ~comint-mode~. Comit provides the
-   ~comint--complete-file-name-data~ completion-at-point-function (Capf). We 
write
-   a small wrapper function ~file-name-at-point~ and register it in the
-   ~completion-at-point-functions~ list for programming language modes. The 
file
-   path Capf will be tried only when the mode-specific Capf did not return
-   results.
-
-   #+begin_src emacs-lisp
-     (defvar comint-completion-addsuffix)
-     (autoload 'comint--match-partial-filename "comint")
-
-     (defun file-name-at-point ()
-       "File path completion function."
-       (when (comint--match-partial-filename)
-         (let ((comint-completion-addsuffix))
-           (comint--complete-file-name-data))))
-
-     (defun file-name-at-point-setup ()
-       "Setup file path completion at point in string literals."
-       (let ((global (memq t completion-at-point-functions)))
-         (setq-local completion-at-point-functions
-                     (delete-dups
-                      (append completion-at-point-functions
-                              (list #'file-name-at-point)
-                              (and global (list t)))))))
-
-     (add-hook 'prog-mode-hook #'file-name-at-point-setup)
-   #+end_src
-
 * Key bindings
 
   Corfu uses a transient keymap ~corfu-map~ which is active while the popup is 
shown.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]