summaryrefslogtreecommitdiff
path: root/s.el
diff options
context:
space:
mode:
authorlujun9972 <lujun9972@gmail.com>2016-04-29 21:38:59 +0800
committerlujun9972 <lujun9972@gmail.com>2016-04-29 21:38:59 +0800
commitf5e0457e88ec87aee7989e99609ec960c435557d (patch)
treeea98e8fe0f3b23fc62db92a068b8ac68fb05a1cd /s.el
parent2c461d5ef04b520134d167aafee903d1ffaacdaa (diff)
use assoc-string instead of assoc
Diffstat (limited to 's.el')
-rw-r--r--s.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/s.el b/s.el
index ef75968..287ebba 100644
--- a/s.el
+++ b/s.el
@@ -333,7 +333,7 @@ This is a simple wrapper around the built-in `string-match-p'."
(replace-regexp-in-string (regexp-quote old) new s t t))
(defun s--aget (alist key)
- (let ((result (cdr (assoc key alist))))
+ (let ((result (cdr (assoc-string key alist))))
(when result
(format "%s" result))))