[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 302d4b4 28/62: Added convenience method for adding populat
From: |
Ian Dunn |
Subject: |
[elpa] master 302d4b4 28/62: Added convenience method for adding population commands |
Date: |
Sat, 9 Dec 2017 14:34:00 -0500 (EST) |
branch: master
commit 302d4b40e98025801a986270a080ed8279189053
Author: Ian Dunn <address@hidden>
Commit: Ian Dunn <address@hidden>
Added convenience method for adding population commands
* paced.el (paced-dictionary-add-population-command): New defmethod.
(paced-add-buffer-file-to-dictionary): Use it.
---
paced.el | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/paced.el b/paced.el
index ec997fb..6a85734 100644
--- a/paced.el
+++ b/paced.el
@@ -910,6 +910,11 @@ non-nil, confirmation will be requested before continuing."
(y-or-n-p "Warning: Repopulating dictionary will reset it.
Continue?"))
(paced-dictionary-repopulate dict))))
+(cl-defmethod paced-dictionary-add-population-command ((dict paced-dictionary)
+ (cmd
paced-population-command))
+ "Add population command CMD to dictionary DICT."
+ (cl-pushnew cmd (oref dict population-commands) :test 'equal))
+
(defun paced-add-buffer-file-to-dictionary (&optional buffer)
"Populate the dictionary of BUFFER with BUFFER.
@@ -928,7 +933,7 @@ must be set with `paced-edit-named-dictionary' or
(cmd (paced-file-population-command :file file-name)))
(progn
(paced-dictionary-populate-from-buffer dict buffer)
- (cl-pushnew cmd (oref dict population-commands) :test 'equal))
+ (paced-dictionary-add-population-command dict cmd))
(user-error "No dictionary found for current buffer"))))
- [elpa] master 79c22c2 06/62: Added new customization options for paced-load-all-dictionaries, (continued)
- [elpa] master 79c22c2 06/62: Added new customization options for paced-load-all-dictionaries, Ian Dunn, 2017/12/09
- [elpa] master e404950 14/62: Alias if-let* and when-let* for backwards compatibility, Ian Dunn, 2017/12/09
- [elpa] master 6c014ae 15/62: Remove rx pcase form for compatibility, Ian Dunn, 2017/12/09
- [elpa] master ecb2f9d 12/62: Fixed up info title, Ian Dunn, 2017/12/09
- [elpa] master c369964 16/62: Reduce required Emacs version to 25.3, Ian Dunn, 2017/12/09
- [elpa] master de2260f 07/62: Documented the population commands, Ian Dunn, 2017/12/09
- [elpa] master febb200 08/62: Added function to submit a bug report, Ian Dunn, 2017/12/09
- [elpa] master b925c0b 17/62: Updated links in documentation, Ian Dunn, 2017/12/09
- [elpa] master 38979b5 18/62: Fixed up contributing documentation, Ian Dunn, 2017/12/09
- [elpa] master 4162bd4 22/62: Changed name of registered checker, Ian Dunn, 2017/12/09
- [elpa] master 302d4b4 28/62: Added convenience method for adding population commands,
Ian Dunn <=
- [elpa] master 4824306 21/62: Make the registered dictionary map a hash table, Ian Dunn, 2017/12/09
- [elpa] master e751e4f 24/62: Update case-handling slot name in Documentation, Ian Dunn, 2017/12/09
- [elpa] master dada473 19/62: Push of info page, Ian Dunn, 2017/12/09
- [elpa] master 6e7d6d7 29/62: Updated method names in paced-repopulate-dictionary-async, Ian Dunn, 2017/12/09
- [elpa] master ce7a2be 20/62: Changed case-sensitivity to case-handling, Ian Dunn, 2017/12/09
- [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