summaryrefslogtreecommitdiff
path: root/helm-bookmark.el
diff options
context:
space:
mode:
authorThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-22 10:58:19 +0100
committerThierry Volpiatto <thierry.volpiatto@gmail.com>2017-03-22 10:58:19 +0100
commit75a783771d8b1144cee8f3343ec97638da3bc9b0 (patch)
tree923d82805ff7941eb6d6b43779377069293f6ddd /helm-bookmark.el
parentf2d58e79bafe48fd554e6b422a08c97379075831 (diff)
Use assq and memq where needed.
* helm-adaptive.el (helm-adapt-use-adaptive-p): Do it. * helm-bookmark.el (helm-bookmark-image-bookmark-p): Do it. * helm-font.el (helm-source-xfonts): Do it. * helm-net.el (helm-google-suggest-parser): Do it. (helm-wikipedia--parse-summary): Do it. * helm.el (helm-initialize): Do it. (helm-get-cached-candidates): Do it. (helm-update): Do it. (helm-update-source-p): Do it. (helm-output-filter--process-source): Do it. (helm-execute-selection-action-1): Do it. (helm-file-completion-source-p): Do it.
Diffstat (limited to 'helm-bookmark.el')
-rw-r--r--helm-bookmark.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/helm-bookmark.el b/helm-bookmark.el
index 67d95133..950e8094 100644
--- a/helm-bookmark.el
+++ b/helm-bookmark.el
@@ -286,8 +286,8 @@ BOOKMARK is a bookmark name or a bookmark record."
(defun helm-bookmark-image-bookmark-p (bookmark)
"Return non-nil if BOOKMARK bookmarks an image file."
(if (stringp bookmark)
- (assoc 'image-type (assoc bookmark bookmark-alist))
- (assoc 'image-type bookmark)))
+ (assq 'image-type (assq bookmark bookmark-alist))
+ (assq 'image-type bookmark)))
(defun helm-bookmark-file-p (bookmark)
"Return non-nil if BOOKMARK bookmarks a file or directory.