[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/capf-autosuggest e393440 57/63: Don't make doc strings
From: |
ELPA Syncer |
Subject: |
[elpa] externals/capf-autosuggest e393440 57/63: Don't make doc strings wider than 80 characters |
Date: |
Wed, 27 Oct 2021 14:58:04 -0400 (EDT) |
branch: externals/capf-autosuggest
commit e3934409e68c008dfe0b1b877ab5ee85a3eb7643
Author: jakanakaevangeli <jakanakaevangeli@chiru.no>
Commit: jakanakaevangeli <jakanakaevangeli@chiru.no>
Don't make doc strings wider than 80 characters
---
capf-autosuggest.el | 18 +++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)
diff --git a/capf-autosuggest.el b/capf-autosuggest.el
index a065f33..426e621 100644
--- a/capf-autosuggest.el
+++ b/capf-autosuggest.el
@@ -254,11 +254,19 @@ into an auto-suggested overlay. COMMAND must not modify
buffer.
NAME must not be called if variable
`capf-autosuggest-active-mode' is inactive. NAME is suitable for
binding in `capf-autosuggest-active-mode-map'."
- `(defun ,name ()
- ,(format "`%s', possibly moving point into an auto-suggested overlay."
- command)
- (interactive)
- (capf-autosuggest-call-partial-accept-cmd #',command)))
+ (let ((doc (format
+ "`%s', possibly moving point into an auto-suggested overlay."
+ command)))
+ (unless (< (length doc) 80)
+ (setq doc (format "\
+Execute command, possibly moving point into an auto-suggested overlay.
+`%s'
+and make it possible for this command to enter an auo-suggested overlay."
+ command)))
+ `(defun ,name ()
+ ,doc
+ (interactive)
+ (capf-autosuggest-call-partial-accept-cmd #',command))))
(defun capf-autosuggest-call-partial-accept-cmd (command)
"Call COMMAND interactively, stepping into auto-suggested overlay.
- [elpa] externals/capf-autosuggest 96394ca 48/63: Simplify accept and send menu-items, (continued)
- [elpa] externals/capf-autosuggest 96394ca 48/63: Simplify accept and send menu-items, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 6e702a7 47/63: Fix programming typo, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 54e9d1f 42/63: Fix cursor display issues if overlay text ends with a newline, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 4b2fbee 62/63: Release version 0.1, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest d8433bc 51/63: Suggest autoload instead of require, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest eb8bd98 52/63: Use while-no-input, make slow capfs slightly more bearable, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 39c9609 55/63: Eliminate the need for setup functions, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 2821a6a 63/63: Stylistic and checdoc documentation improvements, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 025afdf 53/63: Prevent capf functions from moving point, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest 29d8651 56/63: Allow enabling capf-autosuggest-mode twice, ELPA Syncer, 2021/10/27
- [elpa] externals/capf-autosuggest e393440 57/63: Don't make doc strings wider than 80 characters,
ELPA Syncer <=