nXhtml should not need image support

Bug #663737 reported by lborgman
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nXhtml
In Progress
High
Unassigned

Bug Description

Hi Nikolai, this looks like a bug somewhere. I converted this to a bug report then with your text below:

"I'm using a console-running emacs and can't get nxhtml to run. At load time I get an error "Symbol void: image-types", which according to my research indicates missing ImageMagick support, which is understandable for a console application. Is this a hard dependency or is there some version of nxhtml which works without image-types et al.?"

Changed in nxhtml:
importance: Undecided → High
status: New → In Progress
Revision history for this message
lborgman (lennart-borgman) wrote :

I can not reproduce this. Can you please give me more details? Please tell me Emacs and nXhtml version and OS. When does it happen?

Revision history for this message
Nikolai Prokoschenko (nikolai) wrote :

Hi Lennart, thanks for the quick response.

The exact error message is: "(void-variable image-types)". I can reproduce it by evaluating (load "~/.emacs.d/vendor/nxhtml/autostart.el") even in a clean environment (emacs -q).

The operating system is a SuSE Linux Enterprise 11 (without SP1 for now). I use Emacs 23.2 downloaded from http://download.opensuse.org/repositories/editors/SLE_11/x86_64/, so it's a bit semi-official. I'm using the emacs-nox package, i.e. the non-graphics variant, which probably doesn't use ImageMagick.

nXhtml version is the one from http://github.com/emacsmirror/nxhtml (makes it easier to use submodules in my Emacs configuration git repository), i.e. 2.09 beta.

However, I've tried using the official 2.08 download (which isn't as nice as getting everything from the git repository) and the problem doesn't seem to exist there. So in other words, I'll go on with 2.08 for now and this bug is probably something that crept into 2.09. I cannot fetch the Launchpad branch from here (proxy restrictions) to check with the official repository.

Revision history for this message
lborgman (lennart-borgman) wrote :

Thanks. I will look into it, but it will problably take some time before I can do that.

BTW, you can actually download from the official nXhtml repository using http. See EmacsWiki for how to do that.

Revision history for this message
lborgman (lennart-borgman) wrote :

Hi Nikolai, unfortunately I have not got time to look into this. However I have seen some discussions of problem with the image support in Emacs recently. Do you still see this error with the current pre-release of Emacs 23.3? With dev sources of Emacs 24?

Revision history for this message
Anatoly Kudinov (zz) wrote :

He, i still have this issue with master branch of emacs 24 and nxhtml on mac os x

Revision history for this message
Anatoly Kudinov (zz) wrote :

(if (boundp 'image-types)
    nil
    (defvar image-types nil))

in inlimg.el helped me for now. Idk if this is correct way to do it - my first elisp ever.

Revision history for this message
superxor (phaneendra-chiruvella) wrote :

+1
I too stumbled on this. I am using Ubuntu 12.04, and emacs-snapshot-nox (in gnome-terminal, emacs-version GNU Emacs 24.2.50.1).

I did what @zz suggested. Added that snippet of code to the start of nxhtml/util/inlimg.el file and the error doesnt crop up for now.

Revision history for this message
superxor (phaneendra-chiruvella) wrote :

Btw, I am using the latest trunk as of 02-Sep-2012.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.