From 516eb36e8dd739b70e3df0d89e97537d86d216a9 Mon Sep 17 00:00:00 2001 From: Daniel Mendler Date: Wed, 8 Dec 2021 16:35:59 +0100 Subject: Minor fixes --- cape.el | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/cape.el b/cape.el index 9129ed2..d1af8b3 100644 --- a/cape.el +++ b/cape.el @@ -25,11 +25,25 @@ ;;; Commentary: ;; Let your completions fly! This package provides additional completion -;; backends in the form of capfs. +;; backends in the form of Capfs (completion-at-point-functions). +;; +;; cape-dabbrev: Complete word from current buffers +;; cape-file: Complete file name +;; cape-keyword: Complete programming language keyword +;; cape-symbol: Complete Elisp symbol +;; cape-abbrev: Complete abbreviation (add-global-abbrev, add-mode-abbrev) +;; cape-ispell: Complete word from Ispell dictionary +;; cape-dict: Complete word from dictionary file +;; cape-line: Complete entire line from file +;; cape-tex: Complete unicode char from TeX command, e.g. \hbar. +;; cape-sgml: Complete unicode char from Sgml entity, e.g., &alpha. +;; cape-rfc1345: Complete unicode char using RFC 1345 mnemonics. ;;; Code: -(eval-when-compile (require 'cl-lib)) +(eval-when-compile + (require 'cl-lib) + (require 'subr-x)) ;;;; Customization @@ -570,6 +584,7 @@ If INTERACTIVE is nil the function acts like a capf." ;;;;; cape-tex, cape-sgml, cape-rfc1345 +(declare-function thing-at-point-looking-at "thingatpt") (defmacro cape--char-define (name method prefix) "Define quail translation variable with NAME. METHOD is the input method. -- cgit v1.0