[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5f9ddc6 35/62: Mention case handling in paced-dictionary-c
From: |
Ian Dunn |
Subject: |
[elpa] master 5f9ddc6 35/62: Mention case handling in paced-dictionary-completions |
Date: |
Sat, 9 Dec 2017 14:34:02 -0500 (EST) |
branch: master
commit 5f9ddc67cb9daf8cc728cd70592a5f768ca2c8da
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Mention case handling in paced-dictionary-completions
* paced.el (paced-dictionary-completions): Mention that case-handling is
handled
for completions.
---
paced.el | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/paced.el b/paced.el
index a2c8783..dfb02c7 100644
--- a/paced.el
+++ b/paced.el
@@ -698,6 +698,18 @@ case-handling in `paced-dictionary-process-word'."
(substring-no-properties completion
prefix-length)))))))))))
(cl-defmethod paced-dictionary-completions ((dict paced-dictionary) prefix
action &optional pred)
+ "Get the completions for PREFIX in DICT.
+
+ACTION is a completion action, one of 'nil, 't, or 'lambda. See
+Info node `(elisp)Programmed Completion' for an explanation of
+each of them.
+
+PRED is a predicate to supply to completion, and will return
+non-nil if the completion option should be allowed.
+
+Case handling is handled here; any part of a word that was
+modified by `paced-dictionary-process-word' will be replaced with
+the prefix before completions are returned."
(let* ((completion-ignore-case paced-completion-ignore-case)
(usage-hash (oref dict usage-hash))
completions)
@@ -798,6 +810,7 @@ Each element is of the form (VAR VALUE).")))
Return non-nil if setup was successful and population can continue.")
(cl-defmethod paced-population-command-populate-dictionary ((dict
paced-dictionary) (cmd paced-population-command))
+ "Populate DICT from CMD."
(let ((sources (paced-population-command-source-list cmd))
;; Turn props into a form understood by `let'.
(props (paced-population-command-prepare-props cmd)))
- [elpa] master 8f1860a 37/62: Documentation fixes, (continued)
- [elpa] master 8f1860a 37/62: Documentation fixes, Ian Dunn, 2017/12/09
- [elpa] master b95b016 38/62: Pushed updated info pages, Ian Dunn, 2017/12/09
- [elpa] master 964eb48 42/62: Fixed bug in completion, Ian Dunn, 2017/12/09
- [elpa] master 23c4a65 48/62: Mention common variables in population commands settings, Ian Dunn, 2017/12/09
- [elpa] master e293378 50/62: Fix completion falling back to other backend, Ian Dunn, 2017/12/09
- [elpa] master 3cd1147 45/62: Add IDs and descriptions for Contributing section, Ian Dunn, 2017/12/09
- [elpa] master 158ff71 56/62: Fixed internal links in documentation, Ian Dunn, 2017/12/09
- [elpa] master e611e61 33/62: Changed Emacs requirement to 25.1, Ian Dunn, 2017/12/09
- [elpa] master 75e9490 30/62: Account for case handling in completion, Ian Dunn, 2017/12/09
- [elpa] master a96701c 34/62: Fixed up paced-dictionary comments, Ian Dunn, 2017/12/09
- [elpa] master 5f9ddc6 35/62: Mention case handling in paced-dictionary-completions,
Ian Dunn <=
- [elpa] master 56129ca 27/62: Updated docstrings, Ian Dunn, 2017/12/09
- [elpa] master f0ac1d8 31/62: Added mixed-case case handling, Ian Dunn, 2017/12/09
- [elpa] master 5674746 49/62: Added function to check if point is in a comment, Ian Dunn, 2017/12/09
- [elpa] master 56944b8 44/62: Added documentation section for working with EDE, Ian Dunn, 2017/12/09
- [elpa] master 895f479 41/62: Pushed info pages, Ian Dunn, 2017/12/09
- [elpa] master 223809e 61/62: Fixed elpaignore file, Ian Dunn, 2017/12/09
- [elpa] master 2e306c8 40/62: Improved Introduction, Ian Dunn, 2017/12/09
- [elpa] master 139a199 53/62: Added note about dictionary properties, Ian Dunn, 2017/12/09
- [elpa] master 1234c0c 54/62: Updated info pages, Ian Dunn, 2017/12/09
- [elpa] master a3a7eac 51/62: Added default dictionary settings for population, Ian Dunn, 2017/12/09