hniksic / emacs-htmlize

Convert buffer text and decorations to HTML.
192 stars 45 forks source link

Org bundles an outdated version of htmlize #7

Closed tarsius closed 6 years ago

tarsius commented 7 years ago

Org bundles an old version of htmlize.el, which identifies itself as 1.43. The version in this repository is 1.51.

Thanks everyone!

hniksic commented 7 years ago

I am not (yet) an org user, but htmlize has tried to steer away from backward-incompatible changes, so it would surprise me if there was any incompatibilities between org and the newer version of htmlize.

tarsius commented 7 years ago

Great!

tarsius commented 7 years ago

@bzg Sounds like you can remove htmlize.el. Any concerns or did this just fall through the cracks?

bzg commented 7 years ago

The thing is some core core Org functions (like e.g. org-agenda-write) depend on htmlize.el being required. Since Org is not always installed as a package, how can we deal with this? Throw a warning at make time? Throw a warning within functions requiring htmlize.el?

tarsius commented 7 years ago

Throw a warning at make time?

I would go with that approach, though the (require 'htmlize) would actually cause an error. You could be a bit more informative like so:

(or (require 'htmlize nil t)
    (error "Please install htmlize from https://github.com/hniksic/emacs-htmlize"))
tarsius commented 6 years ago

The thing is some core core Org functions (like e.g. org-agenda-write) depend on htmlize.el being required. Since Org is not always installed as a package, how can we deal with this?

The version of Org that is part of Emacs has the same issue. So if you did not get any complains or questions about that in the past, then that would imply that users are able to figure out what to do when htmlize cannot be required.

But since Emacs contains Org libraries that require htmlize, I think the best solution would be to add it to Emacs itself. The Emacs maintainers might reply that it should be added to GNU Elpa instead. I agree that would make most sense, but as long as Org is part of emacs.git, I think htmlize should be added there too.

That of course assumes that @hniksic would be willing to assign the copyright to the FSF and that someone would volunteer to do the work.

bzg commented 6 years ago

I'm still for removing htmlize from Org's contrib directory, it is done in master (see this commit.

I'm all for htmlize being available as a package on GNU ELPA or elsewhere, maybe we can ask on the orgmode mailing list for someone to help on this.

tarsius commented 6 years ago

Thanks a lot!