Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 169588 - app-emacs/*, sci-mathematics/maxima: Emacs site-lisp files should use "add-to-list"
Summary: app-emacs/*, sci-mathematics/maxima: Emacs site-lisp files should use "add-to...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-06 10:04 UTC by Ulrich Müller
Modified: 2007-03-09 08:10 UTC (History)
0 users

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


Attachments
List of packages affected (list,1.04 KB, text/plain)
2007-03-06 10:05 UTC, Ulrich Müller
Details
Shell script used for list generation (listgen,259 bytes, text/plain)
2007-03-06 10:06 UTC, Ulrich Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ulrich Müller gentoo-dev 2007-03-06 10:04:56 UTC
Several of the site-gentoo files installed in /usr/share/emacs/site-lisp use commands of the following form to add their directory to Emacs's load-path:
   (setq load-path (cons "@SITELISP@" load-path))
This doesn't take existing entries into account and leads to duplications.
   (add-to-list 'load-path "@SITELISP@")
should be used instead.

It is probably not worthwhile to update all packages because of this (several of the packages are marked stable), but something to keep in mind if a new revision is released for some other reason.

The list of 58 packages and the script to generate the list will be attached.

(Herds are:
"emacs"+"java" for aspectj4emacs and jde,
"emacs"+"ml" for ocaml-mode,
"emacs"+"net-mail" (maintainer: usata) for wanderlust and wanderlust-cvs,
"sci-mathematics" for maxima,
"emacs" for all others.)
Comment 1 Ulrich Müller gentoo-dev 2007-03-06 10:05:35 UTC
Created attachment 112265 [details]
List of packages affected
Comment 2 Ulrich Müller gentoo-dev 2007-03-06 10:06:29 UTC
Created attachment 112266 [details]
Shell script used for list generation
Comment 3 Christian Faulhammer (RETIRED) gentoo-dev 2007-03-07 05:56:47 UTC
(In reply to comment #0)
> It is probably not worthwhile to update all packages because of this (several
> of the packages are marked stable), but something to keep in mind if a new
> revision is released for some other reason.

 That won't work, as I will forget it everytime.  Everything starting wit "A" and "B" corrected.

 sci-mathematics.  Your site file needs some more work.  Please remove the sed construct in the ebuild to parse it and use the @SITELISP@ as mentioned in comment #0.  elisp-common.eclass will take care of it then.
Comment 4 Markus Dittrich (RETIRED) gentoo-dev 2007-03-08 05:25:01 UTC
Dear emacs team,

Just if it doesn't cause you guys too much work I would be
very grateful if you could fix the site files for the sci-mathematics
team (aka me). I lack any experience with emacs and don't even 
have it installed on any of my dev boxes.
If it is too much work please let me know and I will certainly try
fixing it myself.

cheers,
Markus
Comment 5 Christian Faulhammer (RETIRED) gentoo-dev 2007-03-08 07:12:33 UTC
(In reply to comment #4)
> Just if it doesn't cause you guys too much work I would be
> very grateful if you could fix the site files for the sci-mathematics
> team (aka me). I lack any experience with emacs and don't even 
> have it installed on any of my dev boxes.
> If it is too much work please let me know and I will certainly try
> fixing it myself.

 Done.  Have fun. Next time we will see each other on Macaulay2 stabilisation.
Comment 6 Christian Faulhammer (RETIRED) gentoo-dev 2007-03-08 10:08:09 UTC
All fixed...that was boring. :)

Thanks.
Comment 7 Markus Dittrich (RETIRED) gentoo-dev 2007-03-09 03:43:28 UTC
Thanks a lot for your help, Christian! It is much appreciated.

Regarding Macaulay - I can't wait! Maybe I should be myself
some more RAM before that;)

cheers,
Markus
Comment 8 Christian Faulhammer (RETIRED) gentoo-dev 2007-03-09 08:10:34 UTC
(In reply to comment #7)
> Thanks a lot for your help, Christian! It is much appreciated.

 Just my own interest.
 
> Regarding Macaulay - I can't wait! Maybe I should be myself
> some more RAM before that;)

 I will stable it on x86 after two weeks minimum, maybe the ATs go over it, too.