Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126024 - app-editors/emacs-21.4-r3 can't load mmm-auto.elc from app-emacs/mmm-mode-0.4.8
Summary: app-editors/emacs-21.4-r3 can't load mmm-auto.elc from app-emacs/mmm-mode-0.4.8
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-13 00:31 UTC by Martin von Gagern
Modified: 2006-03-13 13:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin von Gagern 2006-03-13 00:31:30 UTC
Starting gnu emacs gives me this error:

File `/usr/share/emacs/site-lisp/mmm-mode/mmm-auto.elc' was not compiled in Emacs

I unmerged and remerged mmm-mode, with no success.
The file does exist, and does contain this text (among other):

;;; compiled by root@server.gagern.sytes.net on Mon Mar 13 09:14:59 2006
;;; from file /var/tmp/portage/mmm-mode-0.4.8/work/mmm-mode-0.4.8/mmm-auto.el
;;; emacs version 21.4 (patch 17) "Jumbo Shrimp" XEmacs Lucid.
;;; bytecomp version 2.27 XEmacs; 2000-09-12.
;;; optimization is on.
;;; this file uses opcodes which do not exist in Emacs 19.

Looks all right to me. file(1) identifies the file as
Emacs/XEmacs v20 byte-compiled Lisp data

Debugger output from calling with --debug-init:

Debugger entered--Lisp error: (error "File `/usr/share/emacs/site-lisp/mmm-mode/mmm-auto.elc' was not compiled in Emacs")
  require(mmm-auto)
  eval-buffer(#<buffer  *load*<2>> nil "/usr/share/emacs/site-lisp/50mmm-mode-gentoo.el" nil t)
  load-with-code-conversion("/usr/share/emacs/site-lisp/50mmm-mode-gentoo.el" "/usr/share/emacs/site-lisp/50mmm-mode-gentoo.el" nil nil)
  load("/usr/share/emacs/site-lisp/50mmm-mode-gentoo.el")
;;; some internal magic to choose which files to load
  eval-buffer(#<buffer  *load*> nil "~/.emacs" nil t)
  load-with-code-conversion("/home/mvg/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "&#133;&#151;<some binary garbage>" [init-file-user system-type user-init-file-1 user-init-file source alt ms-dos "~" "/_emacs" windows-nt directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "~/_emacs" vax-vms "sys$login:.emacs" "/.emacs" t load file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default" inhibit-default-init inhibit-startup-message] 5]()
  command-line()
  normal-top-level()

And a bit of information about my configuration:
app-editors/emacs-21.4-r3  USE="X leim motif nls -Xaw3d -lesstif -nosendmail"
app-emacs/mmm-mode-0.4.8
Comment 1 Matthew Kennedy (RETIRED) gentoo-dev 2006-03-13 09:50:28 UTC
It looks like XEmacs compiled your mmm-mode.  I'll check the ebuild to see if thats possible and override it.
Comment 2 Martin von Gagern 2006-03-13 10:13:52 UTC
(In reply to comment #1)
> It looks like XEmacs compiled your mmm-mode.

You're right, I completely missed that X there...
And I do have both emacses installed.

> I'll check the ebuild to see if thats possible and override it.

I added --with-emacs to the ./configure call, now it works.
Comment 3 Matthew Kennedy (RETIRED) gentoo-dev 2006-03-13 13:19:50 UTC
Thanks for the note.  Fixed in app-emacs/mmm-mode-0.4.8-r1