Hi Lennart,
The function `create-image' in emacs need an absolute path, lest it tries and
find an image in a sub-directory of `data-directory' and
`x-bitmap-file-path'. Documentation as to that (bizarre!) behaviour was added to
function `create-image' now in CVS:
Image file names that are not absolute are searched for in the
"images" sub-directory of `data-directory' and
`x-bitmap-file-path' (in that order)..
The function `create-image' will make a blank 30x30 image if it cannot find it
relatively to said path. `image-size' will then give '(30 . 30) back as a
result, which you use in `nxhtml-img-tag-do-also' for inserting width and
height. So, to cut the talk: here's the fix:
In function `nxhtml-img-tag-do-also', change
(sizes (image-size (create-image src) t))
to
(sizes (image-size (create-image (expand-file-name src)) t))
Regards,
Niels Giesen.
--
http://niels.kicks-ass.org
nXhtml version 1.11, GNU Emacs 22.1.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2007-11-06 on terranova, modified by Ubuntu
Major mode: nXhtml/m
Minor modes in effect:
mlinks-mode: t
outline-minor-mode: t
nxhtml-minor-mode: t
display-battery-mode: t
iswitchb-mode: t
encoded-kbd-mode: t
display-time-mode: t
delete-selection-mode: t
show-paren-mode: t
pc-selection-mode: t
tooltip-mode: t
mouse-wheel-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
unify-8859-on-encoding-mode: t
utf-translate-cjk-mode: t
auto-compression-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
abbrev-mode: t
hs-minor-mode: t
Recent messages:
Parsing BBDB... (frobnicating...done)
forward-list: Scan error: "Unbalanced parentheses", 548, 1
Fetching headers for nnimap+gmail:INBOX...done
Loading cl-seq...done
Loading cl-extra...done
Generating summary...done
Mark set
Region saved
Quit
next-history-element: Beginning of history; no preceding item [2 times]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/emacs-nxml-mode/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/emacs-nxml-mode/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[email protected]
mailto:[email protected]
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.