Re: nxhtml-mode: wrong dimensions in completed img tag
"Lennart Borgman (gmail)" <[email protected]>
| Newsgroups | gmane.emacs.nxml.general |
|---|---|
| Message-ID | <[email protected]> |
Thanks Niels. I have added that and uploaded it with version 1.12 of nXhtml. [email protected] wrote: > > > 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 <http://niels.kicks-ass.org> 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/