[mew-int 00818] Re: Mew error on startup

Tatsuya Kinoshita tats at example.com
Thu Mar 28 07:43:44 JST 2002


In message [mew-int 00817], on Wed, 27 Mar 2002,
Jonathan Meeks <jm at example.com> wrote:

>   error("Mew found some errors above.")
>   (condition-case nil (progn (cond ...) (or no-dir ...)

>   mew-set-environment()

It seems an error occurs at the inside of condition-case.

Will you try this?

---- 
(defun mew-set-environment (&optional no-dir)
  (let (error-message)
;    (condition-case nil
	(progn
	  ;; sanity check
	  (cond
	   ((string-match "^\\(18\\|19\\)" emacs-version)
	    (setq error-message "Not support Emacs 18/19 nor Mule 1\n")
	    (error "")))
	  ;; initializing
	  (or no-dir (mew-buffers-init))
	  (or no-dir (mew-temp-dir-init))
	  (mew-mark-init)
	  (mew-config-init)
	  (mew-rotate-log-files mew-smtp-log-file))
;      (error
;       (set-buffer (generate-new-buffer mew-buffer-debug))
;       (goto-char (point-max))
;       (insert "\n\nMew errors:\n\n")
;       (and error-message (insert error-message))
;       (set-buffer-modified-p nil)
;       (setq buffer-read-only t)
;       ;; cause an error again
;       (error "Mew found some errors above.")))))
	))
---- 

Evaluate (load "mew.el" nil nil t) and the above function.  You
can evaluate a Lisp expression by hitting C-j at the end of codes
on the "*scratch*" buffer.

I think the above gives you more debug information, but I don't
know why the problem happen.  I can use Mew 2.2 on Emacs 21.2
in my Debian box (Linux 2.4.18, glibc 2.2.5).

P.S.

On Emacs 21.2, Mule-UCS is very slow; (require 'un-define) takes
over 60 seconds...  (On Emacs 21.1, it takes about 5 seconds)

-- 
Tatsuya Kinoshita



More information about the Mew-int mailing list