Gnus development mailing list
 help / color / mirror / Atom feed
* Re: 23.0.60; Gnus gives wrong-type-argument with text/HTML
       [not found] <873as3boc9.fsf@escher.local.home>
@ 2008-02-08 18:02 ` Reiner Steib
  2008-02-08 21:47   ` Stephen Berman
  0 siblings, 1 reply; 7+ messages in thread
From: Reiner Steib @ 2008-02-08 18:02 UTC (permalink / raw)
  To: Stephen Berman; +Cc: emacs-pretest-bug, ding

On Fri, Feb 08 2008, Stephen Berman wrote:

> 1. Start with -Q
> 2. M-x gnus
> 3. Browse nntp+news.gmane.org:gmane.emacs.devel
> 4. Try to open article 88513
> <http://permalink.gmane.org/gmane.emacs.devel/88513>, 
[ Message-ID: <2434610802080404j223d8f8bjbb355ba15c6dbd84@mail.gmail.com> ]

> which looks like this in the default Gnus setup:
> . [  37: Vinicius Jose Latorre  ] Re: 23.0.60; whitespace.el mishap

> This is a MIME/multipart message with HTML, and trying to open it
> results in "require: Wrong type argument: arrayp, nil".  The lisp
> backtrace is attached (it contains bytecode). This does not
> happen in pre-unicode-2 CVS Emacs.

Maybe your w3m is too old (for unicode Emacs)?

> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>   byte-code([...])
>   require(w3m-ems)
>   byte-code([...])
>   require(w3m)
>   mm-setup-w3m()
[...]

> In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.12.0)
>  of 2008-02-07 on escher
> Windowing system distributor `The X.Org Foundation', version 11.0.70200000
> configured using `configure  '--enable-font-backend''

I can't reproduce the problem.  Neither with...

ELISP> (emacs-version)
"GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
 of 2008-02-03 on viandante"
ELISP> w3m-version
"w3m/0.5.1"

... nor with...
"GNU Emacs 22.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
 of 2007-11-25 on viandante"

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 23.0.60; Gnus gives wrong-type-argument with text/HTML
  2008-02-08 18:02 ` 23.0.60; Gnus gives wrong-type-argument with text/HTML Reiner Steib
@ 2008-02-08 21:47   ` Stephen Berman
  2008-02-08 23:01     ` Reiner Steib
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Berman @ 2008-02-08 21:47 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug, ding

On Fri, 08 Feb 2008 19:02:45 +0100 Reiner Steib <reinersteib+gmane@imap.cc> wrote:

> On Fri, Feb 08 2008, Stephen Berman wrote:
>
>> 1. Start with -Q
>> 2. M-x gnus
>> 3. Browse nntp+news.gmane.org:gmane.emacs.devel
>> 4. Try to open article 88513
>> <http://permalink.gmane.org/gmane.emacs.devel/88513>, 
> [ Message-ID: <2434610802080404j223d8f8bjbb355ba15c6dbd84@mail.gmail.com> ]
>
>> which looks like this in the default Gnus setup:
>> . [  37: Vinicius Jose Latorre  ] Re: 23.0.60; whitespace.el mishap
>
>> This is a MIME/multipart message with HTML, and trying to open it
>> results in "require: Wrong type argument: arrayp, nil".  The lisp
>> backtrace is attached (it contains bytecode). This does not
>> happen in pre-unicode-2 CVS Emacs.
>
> Maybe your w3m is too old (for unicode Emacs)?

My w3m-version is "w3m/0.5.2", not too old (see below).

>> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>>   byte-code([...])
>>   require(w3m-ems)
>>   byte-code([...])
>>   require(w3m)
>>   mm-setup-w3m()
> [...]
>
>> In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.12.0)
>>  of 2008-02-07 on escher
>> Windowing system distributor `The X.Org Foundation', version 11.0.70200000
>> configured using `configure  '--enable-font-backend''
>
> I can't reproduce the problem.  Neither with...
>
> ELISP> (emacs-version)
> "GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
>  of 2008-02-03 on viandante"
> ELISP> w3m-version
> "w3m/0.5.1"
>
> ... nor with...
> "GNU Emacs 22.1.50.1 (i686-pc-linux-gnu, GTK+ Version 2.10.6)
>  of 2007-11-25 on viandante"

I've located the problem, it's the byte-compiled w3m-ems.elc.  With that
byte-compiled file in my load-path, loading w3m{.el,.elc} yields the
above error.  When I remove w3m-ems.elc from the load-path, w3m loads
without error.  My emacs-w3m was compiled against pre-unicode-2 CVS
Emacs.  Are you using the same emacs-w3m with both emacs-23.0.60 and
emacs-22.1.50?  If so, was it compiled against the former?

Steve Berman





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 23.0.60; Gnus gives wrong-type-argument with text/HTML
  2008-02-08 21:47   ` Stephen Berman
@ 2008-02-08 23:01     ` Reiner Steib
  2008-02-08 23:32       ` Stephen Berman
  0 siblings, 1 reply; 7+ messages in thread
From: Reiner Steib @ 2008-02-08 23:01 UTC (permalink / raw)
  To: Stephen Berman; +Cc: emacs-pretest-bug, ding, emacs-devel

On Fri, Feb 08 2008, Stephen Berman wrote:

> I've located the problem, it's the byte-compiled w3m-ems.elc.  With that
> byte-compiled file in my load-path, loading w3m{.el,.elc} yields the
> above error.  When I remove w3m-ems.elc from the load-path, w3m loads
> without error.  

I don't have w3m-ems.el* at all:

[...]/site-lisp/w3m$ ls *.el
mew-w3m.el       w3m-e19.el      w3m-fsf.el             w3m-rss.el
mime-w3m.el      w3m-e20.el      w3m-hist.el            w3m-search.el
octet.el         w3m-e21.el      w3m-image.el           w3m-symbol.el
w3m-antenna.el   w3m-e22.el      w3m-link-numbering.el  w3m-tabmenu.el
w3m-bitmap.el    w3m-e23.el      w3m-lnum.el            w3m-ucs.el
w3m-bookmark.el  w3m.el          w3m-load.el            w3m-util.el
w3m-bug.el       w3m-favicon.el  w3m-namazu.el          w3m-weather.el
w3m-ccl.el       w3m-fb.el       w3m-om.el              w3m-xmas.el
w3m-cookie.el    w3m-filter.el   w3m-perldoc.el
w3m-dtree.el     w3m-form.el     w3m-proc.el

> My emacs-w3m was compiled against pre-unicode-2 CVS Emacs.  Are you
> using the same emacs-w3m with both emacs-23.0.60 and emacs-22.1.50?
> If so, was it compiled against the former?

I use the same (compiled) files for all Emacs versions.  It was
compiled with Emacs 21: 

$ head -n6 w3m.elc 
;ELC
;;; Compiled by [...] on Tue Feb 28 20:02:10 2006
;;; from file [...]/emacs-w3m/w3m.el
;;; in Emacs version 21.3.3
;;; with bytecomp version 2.85.4.1
;;; with all optimizations.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 23.0.60; Gnus gives wrong-type-argument with text/HTML
  2008-02-08 23:01     ` Reiner Steib
@ 2008-02-08 23:32       ` Stephen Berman
  2008-02-09 11:09         ` Katsumi Yamaoka
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Berman @ 2008-02-08 23:32 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug, ding

On Sat, 09 Feb 2008 00:01:55 +0100 Reiner Steib <reinersteib+gmane@imap.cc> wrote:

> On Fri, Feb 08 2008, Stephen Berman wrote:
>
>> I've located the problem, it's the byte-compiled w3m-ems.elc.  With that
>> byte-compiled file in my load-path, loading w3m{.el,.elc} yields the
>> above error.  When I remove w3m-ems.elc from the load-path, w3m loads
>> without error.  
>
> I don't have w3m-ems.el* at all:
>
> [...]/site-lisp/w3m$ ls *.el
> mew-w3m.el       w3m-e19.el      w3m-fsf.el             w3m-rss.el
> mime-w3m.el      w3m-e20.el      w3m-hist.el            w3m-search.el
> octet.el         w3m-e21.el      w3m-image.el           w3m-symbol.el
> w3m-antenna.el   w3m-e22.el      w3m-link-numbering.el  w3m-tabmenu.el
> w3m-bitmap.el    w3m-e23.el      w3m-lnum.el            w3m-ucs.el
> w3m-bookmark.el  w3m.el          w3m-load.el            w3m-util.el
> w3m-bug.el       w3m-favicon.el  w3m-namazu.el          w3m-weather.el
> w3m-ccl.el       w3m-fb.el       w3m-om.el              w3m-xmas.el
> w3m-cookie.el    w3m-filter.el   w3m-perldoc.el
> w3m-dtree.el     w3m-form.el     w3m-proc.el

I'm using CVS emacs-w3m, the Changelog has this:

2007-03-23  Katsumi Yamaoka  <yamaoka@jpl.org>

	* w3m-ems.el: New file merging w3m-e21.el, w3m-e23.el and w3m-fsf.el.

I just looked at the source, and it has this:

;; We can use w3m-static- switches to make the byte code differ between
;; Emacs 2[12] and 23, if anything, it is impossible to share the byte
;; code with those versions of Emacsen.

>> My emacs-w3m was compiled against pre-unicode-2 CVS Emacs.  Are you
>> using the same emacs-w3m with both emacs-23.0.60 and emacs-22.1.50?
>> If so, was it compiled against the former?
>
> I use the same (compiled) files for all Emacs versions.  It was
> compiled with Emacs 21: 

Interesting that it works for all versions, while the byte-compiled
newer code apparently does not.

Steve Berman





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 23.0.60; Gnus gives wrong-type-argument with text/HTML
  2008-02-08 23:32       ` Stephen Berman
@ 2008-02-09 11:09         ` Katsumi Yamaoka
  2008-02-11 14:47           ` Stephen Berman
  0 siblings, 1 reply; 7+ messages in thread
From: Katsumi Yamaoka @ 2008-02-09 11:09 UTC (permalink / raw)
  To: Stephen Berman; +Cc: emacs-pretest-bug, ding, emacs-devel

>>>>> Stephen Berman <Stephen.Berman@gmx.net> wrote:

> results in "require: Wrong type argument: arrayp, nil".

Please try rebuilding emacs-w3m using the latest Emacs CVS.
Cf. http://article.gmane.org/gmane.emacs.w3m/7355




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: 23.0.60; Gnus gives wrong-type-argument with text/HTML
  2008-02-09 11:09         ` Katsumi Yamaoka
@ 2008-02-11 14:47           ` Stephen Berman
  2008-02-12 23:57             ` [emacs-w3m:10006] " Katsumi Yamaoka
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Berman @ 2008-02-11 14:47 UTC (permalink / raw)
  To: emacs-devel; +Cc: emacs-pretest-bug, ding

On Sat, 09 Feb 2008 20:09:48 +0900 Katsumi Yamaoka <yamaoka@jpl.org> wrote:

>>>>>> Stephen Berman <Stephen.Berman@gmx.net> wrote:
>
>> results in "require: Wrong type argument: arrayp, nil".
>
> Please try rebuilding emacs-w3m using the latest Emacs CVS.
> Cf. http://article.gmane.org/gmane.emacs.w3m/7355

This eliminates the error and I can again read html multipart messages
with Gnus and use emacs-w3m -- in Emacs 23.0.60, but no longer in
23.0.50.  I suppose I could rebuild emacs-w3m again for the latter, but
the installed emacs-w3m will only work with one build, since it is
installed in the top level site-lisp of the Emacs installation tree:

  /usr/local/share/emacs:
  total used in directory 24 available 7888308
  drwxr-xr-x  6 root root 4096 2008-02-11 14:53 .
  drwxr-xr-x 15 root root 4096 2008-01-16 19:46 ..
  drwxr-xr-x  6 root root 4096 2007-08-24 11:29 22.1.50
  drwxr-xr-x  6 root root 4096 2008-01-16 19:46 23.0.50
  drwxr-xr-x  6 root root 4096 2008-02-11 14:54 23.0.60
  drwxr-xr-x  6 root root 4096 2007-09-18 14:56 site-lisp <== w3m

Since the numbered installation directories (i.e., 23.0.50 etc) each
have their own site-lisp subdirectory, would it be possible to install
emacs-w3m in these, and would that permit a usable emacs-w3m for each
Emacs version?

Steve Berman





^ permalink raw reply	[flat|nested] 7+ messages in thread

* [emacs-w3m:10006] Re: 23.0.60; Gnus gives wrong-type-argument with text/HTML
  2008-02-11 14:47           ` Stephen Berman
@ 2008-02-12 23:57             ` Katsumi Yamaoka
  0 siblings, 0 replies; 7+ messages in thread
From: Katsumi Yamaoka @ 2008-02-12 23:57 UTC (permalink / raw)
  To: Stephen Berman; +Cc: ding, emacs-devel, emacs-pretest-bug, emacs-w3m

>>>>> Stephen Berman wrote:
> On Sat, 09 Feb 2008 20:09:48 +0900 Katsumi Yamaoka <yamaoka@jpl.org> wrote:

>>>>>>> Stephen Berman <Stephen.Berman@gmx.net> wrote:
>>
>>> results in "require: Wrong type argument: arrayp, nil".

The ccl programs in w3m-ems.el, that provide the `w3m-euc-japan'
coding system and the `w3m-iso-latin-1' coding system for Emacs
21 and 22, cause this error in Emacs 23.  It is possible to
improve the source code so that it does not cause an error in
all the versions of Emacsen that emacs-w3m supports.  However,

>> Please try rebuilding emacs-w3m using the latest Emacs CVS.
>> Cf. http://article.gmane.org/gmane.emacs.w3m/7355

why I recommend rebuilding the elc files is that things causing
errors are not only them.  The typical one is the macro
`detect-coding-with-priority', of which the expanded versions
made by Emacs 22/23 are incompatible with Emacs 23/22 mutually.
There will probably be other incompatible things, though I have
not scanned all over the emacs-w3m source code yet.

In addition, I believe there will possibly be the ones other
than emacs-w3m that cause such a trouble.  So,

> This eliminates the error and I can again read html multipart messages
> with Gnus and use emacs-w3m -- in Emacs 23.0.60, but no longer in
> 23.0.50.  I suppose I could rebuild emacs-w3m again for the latter, but
> the installed emacs-w3m will only work with one build, since it is
> installed in the top level site-lisp of the Emacs installation tree:

>   /usr/local/share/emacs:
>   total used in directory 24 available 7888308
>   drwxr-xr-x  6 root root 4096 2008-02-11 14:53 .
>   drwxr-xr-x 15 root root 4096 2008-01-16 19:46 ..
>   drwxr-xr-x  6 root root 4096 2007-08-24 11:29 22.1.50
>   drwxr-xr-x  6 root root 4096 2008-01-16 19:46 23.0.50
>   drwxr-xr-x  6 root root 4096 2008-02-11 14:54 23.0.60
>   drwxr-xr-x  6 root root 4096 2007-09-18 14:56 site-lisp <== w3m

> Since the numbered installation directories (i.e., 23.0.50 etc) each
> have their own site-lisp subdirectory, would it be possible to install
> emacs-w3m in these, and would that permit a usable emacs-w3m for each
> Emacs version?

I think the best way is to install the PACKAGEs to

/usr/local/share/emacs/VERSION/site-lisp/PACKAGE/

for each VERSION of Emacs.  Actually I've been doing so because
I have various versions of (X)Emacsen installed.

Regards,



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-02-12 23:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <873as3boc9.fsf@escher.local.home>
2008-02-08 18:02 ` 23.0.60; Gnus gives wrong-type-argument with text/HTML Reiner Steib
2008-02-08 21:47   ` Stephen Berman
2008-02-08 23:01     ` Reiner Steib
2008-02-08 23:32       ` Stephen Berman
2008-02-09 11:09         ` Katsumi Yamaoka
2008-02-11 14:47           ` Stephen Berman
2008-02-12 23:57             ` [emacs-w3m:10006] " Katsumi Yamaoka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).