[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master e293378 50/62: Fix completion falling back to other backen
From: |
Ian Dunn |
Subject: |
[elpa] master e293378 50/62: Fix completion falling back to other backend |
Date: |
Sat, 9 Dec 2017 14:34:05 -0500 (EST) |
branch: master
commit e293378214f315d354ad6c4cf15e86e9f3a61872
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Fix completion falling back to other backend
* paced.el (paced-completion-table-function): Don't throw an error if there
is
no current dictionary.
(paced-completion-at-point): Fix spelling of "exclusive".
---
paced.el | 25 ++++++++++++-------------
1 file changed, 12 insertions(+), 13 deletions(-)
diff --git a/paced.el b/paced.el
index a2b970a..20d6403 100644
--- a/paced.el
+++ b/paced.el
@@ -730,18 +730,17 @@ the prefix before completions are returned."
(defun paced-completion-table-function (string pred action)
"Completion table function for paced dictionaries."
- (if-let* ((dict (paced-current-dictionary)))
- (let* ((completion-ignore-case paced-completion-ignore-case))
- (pcase action
- ((or `nil `t `lambda)
- (paced-dictionary-completions dict string action pred))
- (`(boundaries . _) nil)
- (`metadata
- `(metadata . ((category . paced)
- (annotation-function . nil)
- (display-sort-function . identity)
- (cycle-sort-function . identity))))))
- (user-error "No dictionary found for current buffer")))
+ (let* ((completion-ignore-case paced-completion-ignore-case))
+ (pcase action
+ ((or `nil `t `lambda)
+ (when-let* ((dict (paced-current-dictionary)))
+ (paced-dictionary-completions dict string action pred)))
+ (`(boundaries . _) nil)
+ (`metadata
+ `(metadata . ((category . paced)
+ (annotation-function . nil)
+ (display-sort-function . identity)
+ (cycle-sort-function . identity)))))))
(defcustom paced-auto-update-p nil
"Whether to update from completions.
@@ -773,7 +772,7 @@ This should only be called from
`paced-completion-at-point'."
(when-let* ((bounds (paced-bounds-of-thing-at-point)))
(list (car bounds) (cdr bounds) 'paced-completion-table-function
:exit-function 'paced-completion-auto-update
- :excludsive 'no))))
+ :exclusive 'no))))
; ;;;;;;;;;;;;;;;;;; ;
- [elpa] master 35ba53b 26/62: Autoload paced-repopulate-named-dictionary-async, (continued)
- [elpa] master 35ba53b 26/62: Autoload paced-repopulate-named-dictionary-async, Ian Dunn, 2017/12/09
- [elpa] master 6e8acdf 09/62: Added documentation, Ian Dunn, 2017/12/09
- [elpa] master 0d17d8d 25/62: Warn before resetting dictionary during population, Ian Dunn, 2017/12/09
- [elpa] master 6aefb0b 05/62: Made dictionary names strings, Ian Dunn, 2017/12/09
- [elpa] master bda0995 36/62: Remove inaccurate comment about completion in case-handling slot, Ian Dunn, 2017/12/09
- [elpa] master 7c9a342 39/62: Fixed paced-global-dict-enable-alist value type, Ian Dunn, 2017/12/09
- [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 <=
- [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, 2017/12/09
- [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