Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 144035

Summary: app-emacs/color-theme-6.6.0 cannot load theme from .emacs
Product: Gentoo Linux Reporter: Bill Krueger <bill_krueger>
Component: Current packagesAssignee: Emacs project <emacs>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Bill Krueger 2006-08-15 12:27:56 UTC
When I upgraded to color-theme from 5.5.0 to 6.6.0 I found that emacs was failing the following:

(require 'color-theme)
(color-theme-blue-sea)

with the error:

Debugger entered--Lisp error: (void-function color-theme-blue-sea)
  (color-theme-blue-sea)
  eval-buffer(#<buffer  *load*> nil "~/.emacs" nil t)
  load-with-code-conversion("/home/billk/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "  [...snip...] <--cut/past could not get the entire line here
  command-line()
  normal-top-level()

-----------------


I can issue M-x color-theme-select and pick color-theme-blue-sea from the list and it works. Also going back to color-theme-5.5.0 seems to allow color theme selection from .emacs 

My emerge --info:

Gentoo Base System version 1.12.4
Portage 2.1.1_pre5-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r8 i686)
=================================================================
System uname: 2.6.16-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Last Sync: Mon, 14 Aug 2006 15:00:01 +0000
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/jetty/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O2 -pipe -fomit-frame-pointer -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS=" ftp://gentoo.mirrors.tds.net/gentoo  ftp://ftp.ussg.iu.edu/pub/linux/gentoo  ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo  ftp://gentoo.mirrors.pair.com/  ftp://gentoo.noved.org/  #ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo  ftp://ftp.ndlug.nd.edu/pub/gentoo/  ftp://ftp.ussg.iu.edu/pub/linux/gentoo  ftp://sunsite.ualberta.ca/pub/unix/Linux/gentoo/ "
LC_ALL="en_US"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aim alsa apache2 apm artworkextra avi berkdb bitmap-fonts browserplugin cairo canvas cdr cli crypt cups dbus dlloader dmi doc dri ecc eds elibc_glibc emacs emboss encode examples ffmpeg firefox flac foomaticdb freetts gdbm gecko-sdk gif gimpprint glitz glut gmp gpm graphviz gs gstreamer010 guile hal howl idea imlib input_devices_evdev input_devices_keyboard input_devices_mouse insecure-savers ipv6 isdnlog java jpeg jpeg2k junit kde kernel_linux lesstif libclamav libg++ libwww linguas_en live mad mailwrapper mbrola mikmod mmx mmx2 mng mozsvg mp3 mpeg mplayer mysql nbash-completion ncurses network new-login nls no-old-linux nptl nptlonly nsplugin ntlm oci8 offensive ogg oggvorbis opengl oss pam pcre pdf pdflib perl png postgres povray ppds pppd python qt qt3 qt4 quicktime rdesktop readline real reflection rtc ruby sdl session source speex spell spl sse sse2 ssl svg svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev userland_GNU userlocales video_cards_i810 video_cards_vesa video_cards_vga vorbis win32codecs xanim xml xmms xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2006-08-19 22:04:35 UTC
Hi Bill.  Try setting your color theme from your .emacs this way:

;;; ... assumes (load-library "site-gentoo") has been called above
(color-theme-initialize)
(color-theme-blue-sea)

The documentation at http://www.emacswiki.org/cgi-bin/wiki?ColorTheme suggests this is the easiest way.
Comment 2 Bill Krueger 2006-08-21 11:36:16 UTC
(In reply to comment #1)
> Hi Bill.  Try setting your color theme from your .emacs this way:
[...snip...]

Thanks for that, it worked. I looked and looked but apparently missed what was probably right in front of me. 

Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2006-08-21 19:30:02 UTC
I think with the 6.x release of color-theme, the color themes are in a separate file, so this is why require 'color-theme is not enough.  Other users will probably encounter this confusion too.