[Top][All Lists]

[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 
      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 
 (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))
@@ -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)))

reply via email to

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