@@ -102,9 +102,12 @@ DO NOT SET VALUE MANUALLY.")
102
102
103
103
(defun helm-qiita-load ()
104
104
" Load `helm-qiita-file' ."
105
- (with-current-buffer (helm-candidate-buffer 'global )
106
- (let ((coding-system-for-read 'utf-8 ))
107
- (insert-file-contents helm-qiita-file))))
105
+ (if (file-exists-p helm-qiita-file)
106
+ (with-current-buffer (helm-candidate-buffer 'global )
107
+ (let ((coding-system-for-read 'utf-8 ))
108
+ (insert-file-contents helm-qiita-file)))
109
+ (message " %s not found. Please wait up to %d minutes."
110
+ helm-qiita-file (/ helm-qiita-interval 60 ))))
108
111
109
112
(defvar helm-qiita-action
110
113
'((" Browse URL" . helm-qiita-browse-url)
@@ -136,10 +139,11 @@ Argument CANDIDATE a line string of a stock."
136
139
" Search Qiita Stocks using `helm' ."
137
140
(interactive )
138
141
(let ((helm-full-frame helm-qiita-full-frame))
139
- (unless (file-exists-p helm-qiita-file)
140
- (error (format " %s not found" helm-qiita-file)))
141
- (helm :sources helm-qiita-source
142
- :prompt " Find Qiita Stocks: " )))
142
+ (if (file-exists-p helm-qiita-file)
143
+ (helm :sources helm-qiita-source
144
+ :prompt " Find Qiita Stocks: " )
145
+ (message " %s not found. Please wait up to %d minutes."
146
+ helm-qiita-file (/ helm-qiita-interval 60 )))))
143
147
144
148
; ;; Process handler
145
149
0 commit comments