[Mew-dist 07226] Re: Mew starts with error (ctext)

sen_ml at example.com sen_ml at example.com
1999年 1月 21日 (木) 10:37:00 JST


At around Wed, 20 Jan 1999 23:26:45 +0900,
 TROESTLER Christophe <trch@#.domain.of.your.mail.address> may have mentioned:

> M-x mew with (setq debug-on-error t) gives:
> 
> Signaling: (wrong-type-argument stringp nil)
>   string-to-int(nil)
>   mew-update-range()
>   mew-input-range("+inbox")
>   mew-summary-get()
>   mew(nil)
>   call-interactively(mew)
>   execute-extended-command(nil)
> * call-interactively(execute-extended-command)

disclaimer:  i am not any of the developers, so it may be wise to disregard
my post :-)

  since mew-summary-get is called upon 'M-x mew', i'm going to assume
that you have mew-auto-get set to t (the default).  also, we are
discussing mew 1.93, i assume (from information in your message's
headers) -- this might not happen in the 1.94 beta series.

  based on the trace you sent and the source i have, it looks like
what might be happening is that mew-summary-message-number is
returning nil:

mew-update-range is defined in mew-minibuf.el as:

(defun mew-update-range ()
  (save-excursion
    (goto-char (point-max))
    (if (bobp)
	(list "all" 'update) ;; buffer is empty. no need to erase
      (forward-line -1)
      (mew-summary-goto-message)
      (list 
       (concat
	(int-to-string (1+ (string-to-int (mew-summary-message-number))))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	"-" 
	"last")
       'update) ;; this is update!
      )))

where the strech of text 'underlined' w/ carats is suspected to be of
interest.

[as a data point, (string-to-int nil) in my emacs (20.3) also gives an error
similar to what you reported.]

  mew-summary-message-number is defined in mew-syntax.el.  if you were to
place point inside of the definition of mew-summary-message-number,
do 'M-x edebug-defun', and then start up mew (w/o (setq debug-on-error t) 
for simplicity), perhaps you will see why mew-summary-message-number is
returning nil (if it really is).

  it seems that mew-summary-message-number should not return nil if
the results may be handed to string-to-int..



Mew-dist メーリングリストの案内