[Pkg-emacsen-addons] Bug#847690: dh-elpa: better handling of `deftheme' themes
Sean Whitton
spwhitton at spwhitton.name
Sat Dec 10 16:40:03 UTC 2016
Package: dh-elpa
Version: 1.3
Severity: normal
Function autoloads are handled elegantly by dh-elpa. After installing a
package, you can just put (turn-on-some-global-minor-mode) in your
~/.emacs, and everything works fine.
Themes defined with `deftheme' don't work so well. After installing a
theme, a simple call to `load-theme' in your ~/.emacs will fail.
Two possible workarounds are:
(package-initialize)
(load-theme 'zenburn t)
or
(add-hook 'after-init-hook (lambda () (load-theme 'zenburn)))
but this really shouldn't be necessary. In short, ELPA packages
supplying themes are currently second-class citizens in the elpa-*
namespace.
I'm filing this bug against dh-elpa for the time being, but there might
not be any sane patch to dh-elpa that will resolve the issue. The only
solution might be to implement autoloads for defthemes upstream.
If you are hitting this bug with your package, a sample README.Debian
giving a workaround for users is available in src:zenburn-emacs.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (900, 'testing')
Architecture: i386 (i686)
Kernel: Linux 4.8.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages dh-elpa depends on:
ii debhelper 10.2.2
ii dh-make-perl 0.92
ii emacs24 24.5+1-7
ii libarray-utils-perl 0.5-1
ii libconfig-tiny-perl 2.23-1
ii libdebian-source-perl 0.92
ii libdpkg-perl 1.18.10
ii libfile-find-rule-perl 0.34-1
ii libtext-glob-perl 0.10-1
ii perl 5.24.1~rc4-1
dh-elpa recommends no packages.
dh-elpa suggests no packages.
-- no debconf information
--
Sean Whitton
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-emacsen-addons/attachments/20161210/e09892ad/attachment.sig>
More information about the Pkg-emacsen-addons
mailing list