[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dict-tree 7d9b258 033/154: Improved handling of diction
From: |
Stefan Monnier |
Subject: |
[elpa] externals/dict-tree 7d9b258 033/154: Improved handling of dictionary file names in dictree-load |
Date: |
Mon, 14 Dec 2020 12:21:38 -0500 (EST) |
branch: externals/dict-tree
commit 7d9b258ec087d3a15e28a69279f369e682302678
Author: Toby Cubitt <toby-predictive@dr-qubit.org>
Commit: tsc25 <toby-predictive@dr-qubit.org>
Improved handling of dictionary file names in dictree-load
---
dict-tree.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/dict-tree.el b/dict-tree.el
index b2e5a39..3ab34a9 100644
--- a/dict-tree.el
+++ b/dict-tree.el
@@ -2130,9 +2130,12 @@ Returns t if successful, nil otherwise."
;; sort out dictionary name and file name
(let (dictname dict)
- (when (not (string= (substring file -4) ".elc"))
- (setq file (concat file ".elc")))
- (setq dictname (substring (file-name-nondirectory file) 0 -4))
+ (cond
+ ((string= (substring file -4) ".elc")
+ (setq dictname (file-name-nondirectory (substring file 0 -4))))
+ ((string= (substring file -3) ".el")
+ (setq dictname (file-name-nondirectory (substring file 0 -3))))
+ (t (setq dictname (file-name-nondirectory file))))
;; load the dictionary
(load file t)
- [elpa] branch externals/dict-tree created (now 9242ff7), Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree ae0dc0e 001/154: Version 0.10 of the predictive completion package., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree d86829b 007/154: Fixed bugs in predictive's auto-learn and which dict mode features., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 47f8163 010/154: Made saving dictionaries to compiled or uncomiled forms a customization option., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 9e6d0f2 017/154: Fixed bug when deleting non-existent entries., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 4cd369d 027/154: Avoid breaking setf abstraction in dictree--wrap-insfun., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 9827131 016/154: Fixed unwrapped rank-function bug in dictree--query, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 87bb7e8 019/154: Allow custom write and load functions when saving and dumping dictionaries;, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 2978fc7 024/154: ...and already a bug-fix to the new cache updating code, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 7d9b258 033/154: Improved handling of dictionary file names in dictree-load,
Stefan Monnier <=
- [elpa] externals/dict-tree f46da76 008/154: Minor bug fixes., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 405d11b 023/154: Implemented the other cache and cache-update policies, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 57d59eb 021/154: Bug-fixes to predictive-auto-learn and read-dict., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 76140ec 026/154: Converted function wrapping macros into functions, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 9120845 032/154: Make weird variable names used to avoid dynamic scoping bugs more consistent, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 6c21fcb 038/154: Fix dictree--query and dictree-complete to return results in correct format, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 8a575f6 039/154: Added new trie functions to dictree--create-custom., Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree 3a18a06 042/154: Modified dictree-populate-from-file to read linearly by default,, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree ca2c562 050/154: Bug-fix to dictree-complete, Stefan Monnier, 2020/12/14
- [elpa] externals/dict-tree e1a9f19 051/154: Documentation updates related to wildcard searches and predictive features that make use of them, Stefan Monnier, 2020/12/14