branch: externals/capf-autosuggest
commit 0ef9e94cff539c19f77f39774d0b49acbcfe4ac6
Author: jakanakaevangeli <[email protected]>
Commit: jakanakaevangeli <[email protected]>
Add documentation to capf functions
---
history-capf.el | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/history-capf.el b/history-capf.el
index 04433b2..df4a71b 100644
--- a/history-capf.el
+++ b/history-capf.el
@@ -43,6 +43,8 @@
;;;###autoload
(defun history-capf-comint ()
+ "Completion-at-point function for comint input history.
+Is only applicable if point is after the last prompt."
(let ((ring comint-input-ring)
(beg nil))
(and ring (ring-p ring) (not (ring-empty-p ring))
@@ -59,6 +61,8 @@
;;;###autoload
(defun history-capf-eshell ()
+ "Completion-at-point function for eshell input history.
+Is only applicable if point is after the last prompt."
(let ((ring eshell-history-ring)
(beg nil))
(and ring (ring-p ring) (not (ring-empty-p ring))