comparison lisp/gnus/nnir.el @ 105167:e14dfafc8256

* gnus-art.el (gnus-article-encrypt-body): * message.el (message-check-recipients): * mm-util.el (mm-codepage-setup): * nnir.el (gnus-summary-nnir-goto-thread, nnir-run-waissearch) (nnir-run-swish++, nnir-run-swish-e): Fix typos in error messages.
author Juanma Barranquero <lekktu@gmail.com>
date Wed, 23 Sep 2009 23:58:40 +0000
parents 9866b069527c
children 1d1d5d9bd884
comparison
equal deleted inserted replaced
105166:172e1951f385 105167:e14dfafc8256
688 (defun gnus-summary-nnir-goto-thread () 688 (defun gnus-summary-nnir-goto-thread ()
689 "Only applies to nnir groups. Go to group this article came from 689 "Only applies to nnir groups. Go to group this article came from
690 and show thread that contains this article." 690 and show thread that contains this article."
691 (interactive) 691 (interactive)
692 (unless (eq 'nnir (car (gnus-find-method-for-group gnus-newsgroup-name))) 692 (unless (eq 'nnir (car (gnus-find-method-for-group gnus-newsgroup-name)))
693 (error "Can't execute this command unless in nnir group.")) 693 (error "Can't execute this command unless in nnir group"))
694 (let* ((cur (gnus-summary-article-number)) 694 (let* ((cur (gnus-summary-article-number))
695 (group (nnir-artlist-artitem-group nnir-artlist cur)) 695 (group (nnir-artlist-artitem-group nnir-artlist cur))
696 (backend-number (nnir-artlist-artitem-number nnir-artlist cur)) 696 (backend-number (nnir-artlist-artitem-number nnir-artlist cur))
697 server backend-group) 697 server backend-group)
698 (setq server (nnir-group-server group)) 698 (setq server (nnir-group-server group))
887 ;; freeWAIS-sf interface. 887 ;; freeWAIS-sf interface.
888 (defun nnir-run-waissearch (query server &optional group) 888 (defun nnir-run-waissearch (query server &optional group)
889 "Run given query agains waissearch. Returns vector of (group name, file name) 889 "Run given query agains waissearch. Returns vector of (group name, file name)
890 pairs (also vectors, actually)." 890 pairs (also vectors, actually)."
891 (when group 891 (when group
892 (error "The freeWAIS-sf backend cannot search specific groups.")) 892 (error "The freeWAIS-sf backend cannot search specific groups"))
893 (save-excursion 893 (save-excursion
894 (let ((qstring (cdr (assq 'query query))) 894 (let ((qstring (cdr (assq 'query query)))
895 (prefix (nnir-read-server-parm 'nnir-wais-remove-prefix server)) 895 (prefix (nnir-read-server-parm 'nnir-wais-remove-prefix server))
896 artlist score artno dirnam) 896 artlist score artno dirnam)
897 (set-buffer (get-buffer-create nnir-tmp-buffer)) 897 (set-buffer (get-buffer-create nnir-tmp-buffer))
1160 1160
1161 Tested with swish++ 4.7 on GNU/Linux and with swish++ 5.0b2 on 1161 Tested with swish++ 4.7 on GNU/Linux and with swish++ 5.0b2 on
1162 Windows NT 4.0." 1162 Windows NT 4.0."
1163 1163
1164 (when group 1164 (when group
1165 (error "The swish++ backend cannot search specific groups.")) 1165 (error "The swish++ backend cannot search specific groups"))
1166 1166
1167 (save-excursion 1167 (save-excursion
1168 (let ( (qstring (cdr (assq 'query query))) 1168 (let ( (qstring (cdr (assq 'query query)))
1169 (groupspec (cdr (assq 'group query))) 1169 (groupspec (cdr (assq 'group query)))
1170 (prefix (nnir-read-server-parm 'nnir-swish++-remove-prefix server)) 1170 (prefix (nnir-read-server-parm 'nnir-swish++-remove-prefix server))
1177 ":[0-9]+" 1177 ":[0-9]+"
1178 "^[0-9]+\\(\\.[a-z0-9]+\\)?$")) 1178 "^[0-9]+\\(\\.[a-z0-9]+\\)?$"))
1179 score artno dirnam filenam) 1179 score artno dirnam filenam)
1180 1180
1181 (when (equal "" qstring) 1181 (when (equal "" qstring)
1182 (error "swish++: You didn't enter anything.")) 1182 (error "swish++: You didn't enter anything"))
1183 1183
1184 (set-buffer (get-buffer-create nnir-tmp-buffer)) 1184 (set-buffer (get-buffer-create nnir-tmp-buffer))
1185 (erase-buffer) 1185 (erase-buffer)
1186 1186
1187 (if groupspec 1187 (if groupspec
1249 1249
1250 Tested with swish-e-2.0.1 on Windows NT 4.0." 1250 Tested with swish-e-2.0.1 on Windows NT 4.0."
1251 1251
1252 ;; swish-e crashes with empty parameter to "-w" on commandline... 1252 ;; swish-e crashes with empty parameter to "-w" on commandline...
1253 (when group 1253 (when group
1254 (error "The swish-e backend cannot search specific groups.")) 1254 (error "The swish-e backend cannot search specific groups"))
1255 1255
1256 (save-excursion 1256 (save-excursion
1257 (let ((qstring (cdr (assq 'query query))) 1257 (let ((qstring (cdr (assq 'query query)))
1258 (prefix 1258 (prefix
1259 (or (nnir-read-server-parm 'nnir-swish-e-remove-prefix server) 1259 (or (nnir-read-server-parm 'nnir-swish-e-remove-prefix server)
1260 (error "Missing parameter `nnir-swish-e-remove-prefix'"))) 1260 (error "Missing parameter `nnir-swish-e-remove-prefix'")))
1261 artlist score artno dirnam group ) 1261 artlist score artno dirnam group )
1262 1262
1263 (when (equal "" qstring) 1263 (when (equal "" qstring)
1264 (error "swish-e: You didn't enter anything.")) 1264 (error "swish-e: You didn't enter anything"))
1265 1265
1266 (set-buffer (get-buffer-create nnir-tmp-buffer)) 1266 (set-buffer (get-buffer-create nnir-tmp-buffer))
1267 (erase-buffer) 1267 (erase-buffer)
1268 1268
1269 (message "Doing swish-e query %s..." query) 1269 (message "Doing swish-e query %s..." query)