Using: app-editors/emacs-cvs-22.1.50 USE="X Xaw3d alsa gif gpm gtk gzip-el jpeg motif png sound source spell tiff toolkit-scroll-bars xpm -hesiod app-emacs/cedet-1.0_pre4 After upgrading to app-emacs/ecb-2.32-r2, my custom layouts in the .emacs file do not load (using `ecb-layout-define'). Returning to the previous version of ecb fixes the problem. The error: Debugger entered--Lisp error: (void-function ecb-layout-define) (ecb-layout-define "topleft-custom1" top "This function creates the following layout:(ecb-split-hor 0.75 t) (ecb-set-methods-buffer) (select-window (next-window)) (ecb-set-history-buffer) (select-window (next-window)) (ecb-split-hor 0.25 t) (ecb-set-directories-buffer) (ecb-split-ver 0.66) (ecb-set-sources-buffer) (select-window (next-window))) eval-buffer(#<buffer *load*> nil "/home/ckonstanski/.emacs" nil t) ; Reading at buffer position 9119 load-with-code-conversion("/home/ckonstanski/.emacs" "/home/ckonstanski/.emacs" t t) load("~/.emacs" t t) #[nil "<buncha gibberish with control chars that doesn't copy and paste>"] command-line() normal-top-level() Emacs loads fine if I comment out the layouts from my .emacs file. Once emacs is up and running, I can highlight the exact code in my .emacs file and issue an `eval-region' without problems. It is only during the loading of my .emacs file that the function `ecb-layout-define' is void. This emerge --info is from my amd64 box, but my x86 boxes behave identically: Portage 2.1.3_rc7 (default-linux/amd64/2007.0/desktop, gcc-4.1.2, glibc-2.5-r4, 2.6.20-gentoo-r8 x86_64) ================================================================= System uname: 2.6.20-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System release 1.12.9 Timestamp of tree: Tue, 10 Jul 2007 12:30:01 +0000 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.17-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/con fig /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/php/apache2-php 5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/r evdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=k8" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge -orphans" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/ distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/di stfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X acl acpi alsa amd64 apache2 arts berkdb bitmap-fonts brows erplugin bzip2 cairo cdr cli cracklib crypt cups curl dbus dri dvd dvdr dvdread eds emacs emboss encode esd evo fam firefox fortran gdbm gif gpm gstreamer gtk g tkhtml hal iconv imap ipv6 isdnlog java jpeg kde libg++ libwww mad maildir midi mikmod mmx mmxext mod motif mozilla mp3 mpeg mudflap ncurses nls nptl nptlonly n splugin odbc ogg opengl openmp oss pam pcre pdf perl pic png postgresql pppd pyt hon qt3 qt3support qt4 quicktime readline reflection ruby samba sasl sdl session source spell spl sse sse2 ssl svg tcltk tcpd tetex threads tiff truetype truety pe-fonts type1-fonts unicode vim vorbis xml xorg xv zlib" ALSA_CARDS="nvidia" AL SA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses te xt" USERLAND="GNU" VIDEO_CARDS="nvidia nv" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGU AS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_ OVERLAY Reproducible: Always Steps to Reproduce: After installing app-editors/emacs-cvs-22.1.50, app-emacs/cedet-1.0_pre4 and app-emacs/ecb-2.32-r2, define an ecb layout in your .emacs file and start emacs with the --debug-init switch. You can copy and paste a layout from /usr/share/emacs/site-lisp/ecb/ecb-layout-defs.el if you wish, but perhaps give it a new name. Actual Results: You get the emacs debugger error as described. Expected Results: No error should have occurred, and the layouts should have been loaded.
(In reply to comment #0) > After upgrading to app-emacs/ecb-2.32-r2, my custom layouts in the .emacs file > do not load (using `ecb-layout-define'). Please put the following line before your layout definitions in .emacs: (require 'ecb-layout) Does this fix the problem? > Returning to the previous version of ecb fixes the problem. By "previous version" you mean 2.32-r1, I assume?
(In reply to comment #1) > (In reply to comment #0) Yes on both counts. The (require) fixes the problem, and the previous version was r1. Thanks!
*** Bug 184899 has been marked as a duplicate of this bug. ***
(In reply to comment #2) > The (require) fixes the problem, [...] I think this solution is feasible; users having own definitions in their .emacs can stick the (require) in front of it. No need to change the site-init file of the package.