Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 307321 - app-emacs/cedet-1.0_pre7 complains about already loaded
Summary: app-emacs/cedet-1.0_pre7 complains about already loaded
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-01 15:26 UTC by Juergen Rose
Modified: 2010-03-06 08:18 UTC (History)
0 users

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


Attachments
Cedet Lisp error messages (cedet-1.0pre7_problem.txt,1.97 KB, text/plain)
2010-03-01 15:28 UTC, Juergen Rose
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2010-03-01 15:26:49 UTC
Starting emacs I will now be asked "Create dir /root/.srecode" and then emacs complains about:
 Warning (initialization): An error occurred while loading `/root/.xemacs/init.el':

error: CEDET Version 1.0pre7 already loaded.

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

root@moose:/var/log(12)# emacs --debug-init

says then:

͂Debugger entered--Lisp error: (error "CEDET Version 1.0pre7 already loaded.")
  signal(error ("CEDET Version 1.0pre7 already loaded."))
  error("CEDET Version %s already loaded." "1.0pre7")
͂...
the following code I can't paste to this windows because of contained control codes. I will attache it.


Reproducible: Always
Comment 1 Juergen Rose 2010-03-01 15:28:08 UTC
Created attachment 221617 [details]
Cedet Lisp error messages
Comment 2 Ulrich Müller gentoo-dev 2010-03-02 07:00:21 UTC
> Starting emacs I will now be asked "Create dir /root/.srecode"

Yes, this is done in srecode-map-update-map. I guess upstream considers this a feature, but I also find it mildly annoying. Also this message is new, srecode-map-update-map wasn't called during CEDET initialisation in _pre6.

Can you report this upstream please?

> and then emacs complains about:
>  Warning (initialization): An error occurred while loading
> `/root/.xemacs/init.el':
> 
> error: CEDET Version 1.0pre7 already loaded.

What Emacs version are you using?
Does the problem also occur with "emacs -q"?
Comment 3 Juergen Rose 2010-03-02 11:26:33 UTC
"About Emacs" shows:
GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.18.6)
qlist says:
rose@moose:/home/rose(3)$ qlist -Iv emacs
app-admin/emacs-updater-1.6-r1
app-admin/eselect-emacs-1.13
app-editors/emacs-23.1-r2
...

rose@moose:/home/rose(4)$ emacs -q
does not show the issue.

But cedet is also not called from my init files:
rose@moose:/home/rose(6)$ cat .emacs
;;; XEmacs backwards compatibility file
(setq user-init-file
      (expand-file-name "init.el"
			(expand-file-name ".xemacs" "~")))
(setq custom-file
      (expand-file-name "custom.el"
			(expand-file-name ".xemacs" "~")))

(load-file user-init-file)
(load-file custom-file)
rose@moose:/home/rose(7)$ grep -i cedet .xemacs/*.el

The last commnd does not give any output.
Comment 4 Juergen Rose 2010-03-02 11:28:59 UTC
At least cedet is not called directly from by init files. It is called via
/usr/share/emacs/site-lisp/site-gentoo.el

rose@moose:/home/rose(9)$ grep -i gentoo .xemacs/*.el
.xemacs/init.el:	(if (file-exists-p "/usr/share/emacs/site-lisp/site-gentoo.el")
.xemacs/init.el:			(load "/usr/share/emacs/site-lisp/site-gentoo"))
.xemacs/init.el:;;  the following lines are already in site-gentoo.el
rose@moose:/home/rose(10)$ grep cedet /usr/share/emacs/site-lisp/site-gentoo.el
;;; cedet site-lisp configuration
(load "/usr/share/emacs/site-lisp/cedet/common/cedet" nil t)
(add-to-list 'image-load-path "/usr/share/emacs/etc/cedet/common/icons" t)
...
Comment 5 Ulrich Müller gentoo-dev 2010-03-02 12:06:08 UTC
Do you load site-gentoo twice? From both /usr/share/emacs/site-lisp/site-start.el and from your .xemacs/init.el?

If that should be the case, it may help to replace the "load" command by (require 'site-gentoo), or test for (featurep 'site-gentoo) being nil before loading the file.
Comment 6 Juergen Rose 2010-03-02 12:57:56 UTC
Thanks Ullrich,

after replacing (load "/usr/share/emacs/site-lisp/site-gentoo")
by (require 'site-gentoo)  in ~/.xemacs/init.el the issue disappeared.
Comment 7 Ulrich Müller gentoo-dev 2010-03-02 14:31:38 UTC
(In reply to comment #6)
> after replacing (load "/usr/share/emacs/site-lisp/site-gentoo")
> by (require 'site-gentoo)  in ~/.xemacs/init.el the issue disappeared.

So maybe I should follow my own advice and use "require" instead of "load-file" (upstream recommends the latter though) in CEDET's site-init file. ;-) Our site-init files should really be idempotent.

Are you going to report the /root/.srecode issue upstream?
Comment 8 Juergen Rose 2010-03-03 18:39:26 UTC
> Are you going to report the /root/.srecode issue upstream?

No, I don't know where I should report it.

Comment 10 Ulrich Müller gentoo-dev 2010-03-06 08:15:07 UTC
Patch from upstream is here: <http://sourceforge.net/mailarchive/message.php?msg_name=4B91BD19.2010900%40siege-engine.com>
Comment 11 Ulrich Müller gentoo-dev 2010-03-06 08:18:34 UTC
Should be fixed in cedet-1.0_pre7-r1.