+2001-09-04 TSUCHIYA Masatoshi <tsuchiya@namazu.org>
+
+ * lisp/nnir.el (top): Added code to avoid byte-compile warning
+ about `nnimap-server-buffer'.
+ (nnir-run-namazu): Disable locale of Namazu.
+
2001-09-04 KOSEKI Yoshinori <kose@meadowy.org>
* lisp/nnir.el (gnus-group-mode-hook): Fix typo.
;; send queries as literals
;; handle errors
+(eval-when-compile
+ (defvar nnimap-server-buffer))
+
(defun nnir-run-imap (query &optional group)
(require 'imap)
(require 'nnimap)
,nnir-namazu-index-directory ; index directory
))
(exitstatus
- (progn
+ (let ((process-environement process-environment))
+ ;; Disable locale of Namazu.
+ (dolist (env process-environment)
+ (when (string-match "\
+\\`\\(L\\(ANG\\|C_\\(ALL\\|CTYPE\\|COLLATE\\|TIME\\|NUMERIC\\|MONETARY\\|MESSAGES\\)\\)\\)=" env)
+ (setenv (match-string 1 env) nil)))
+ (setenv "LANG" "C")
(message "%s args: %s" nnir-namazu-program
(mapconcat 'identity (cddddr cp-list) " "))
- (let ((process-environement process-environment))
- (setenv "LANG" "C")
- (apply 'call-process cp-list)))))
- (unless (or (null exitstatus)
+ (apply 'call-process cp-list))))
+ (unless (or (null exitstatus)
(zerop exitstatus))
(nnheader-report 'nnir "Couldn't run namazu: %s" exitstatus)
;; Namazu failure reason is in this buffer, show it if