public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] cscope ebuilds
@ 2003-11-15  7:50 Anupam Kapoor
  2003-11-15  8:10 ` Jason Stubbs
  0 siblings, 1 reply; 9+ messages in thread
From: Anupam Kapoor @ 2003-11-15  7:50 UTC (permalink / raw
  To: gentoo-dev

hi all,

i have emacs in my use settings. when i emerge cscope 15.4 using
(emerge cscope-15.4.ebuild) it also installs xcscope for interfacing
cscope with emacs.

the only issue with this is that in
/usr/share/emacs/site-lisp/site-start.el the load path for xcscope is
initialized as:
            (add-to-list 'load-path "@SITELISP@")

looking at the ebuild, the site-start.el seems to be regenerated for
every emacs package using 'elisp-site-regen'. which for some reason
does not work for cscope ebuild.

can some please point me to the location of 'elisp-site-regen' so that
i can dig some more ? i tried looking for it in the developer
documentation, but could not find any references.

thank you
kind regards
anupam

-- 
...mathematicians do it smoothly and continuously or discretely in groups and in fields.


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] cscope ebuilds
  2003-11-15  7:50 [gentoo-dev] cscope ebuilds Anupam Kapoor
@ 2003-11-15  8:10 ` Jason Stubbs
  2003-11-15  8:23   ` Anupam Kapoor
  0 siblings, 1 reply; 9+ messages in thread
From: Jason Stubbs @ 2003-11-15  8:10 UTC (permalink / raw
  To: gentoo-dev

On Saturday 15 November 2003 16:50, Anupam Kapoor wrote:
> hi all,
>
> i have emacs in my use settings. when i emerge cscope 15.4 using
> (emerge cscope-15.4.ebuild) it also installs xcscope for interfacing
> cscope with emacs.
>
> the only issue with this is that in
> /usr/share/emacs/site-lisp/site-start.el the load path for xcscope is
> initialized as:
>             (add-to-list 'load-path "@SITELISP@")
>
> looking at the ebuild, the site-start.el seems to be regenerated for
> every emacs package using 'elisp-site-regen'. which for some reason
> does not work for cscope ebuild.

Can't help with the issue at all, but...

> can some please point me to the location of 'elisp-site-regen' so that
> i can dig some more ? i tried looking for it in the developer
> documentation, but could not find any references.

bash-2.05b$ grep elisp-site-regen /usr/portage/eclass/*
/usr/portage/eclass/elisp-common.eclass:elisp-site-regen() {
/usr/portage/eclass/elisp.eclass:       elisp-site-regen
/usr/portage/eclass/elisp.eclass:       elisp-site-regen


Jason

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] cscope ebuilds
  2003-11-15  8:10 ` Jason Stubbs
@ 2003-11-15  8:23   ` Anupam Kapoor
  2003-11-15  9:01     ` Anupam Kapoor
  0 siblings, 1 reply; 9+ messages in thread
From: Anupam Kapoor @ 2003-11-15  8:23 UTC (permalink / raw
  To: Jason Stubbs; +Cc: gentoo-dev

Jason Stubbs <jasonbstubbs@mailandnews.com> writes:

>> looking at the ebuild, the site-start.el seems to be regenerated for
>> every emacs package using 'elisp-site-regen'. which for some reason
>> does not work for cscope ebuild.
>
> Can't help with the issue at all, but...
>
>> can some please point me to the location of 'elisp-site-regen' so that
>> i can dig some more ? i tried looking for it in the developer
>> documentation, but could not find any references.
>
> bash-2.05b$ grep elisp-site-regen /usr/portage/eclass/*
> /usr/portage/eclass/elisp-common.eclass:elisp-site-regen() {
> /usr/portage/eclass/elisp.eclass:       elisp-site-regen
> /usr/portage/eclass/elisp.eclass:       elisp-site-regen

thanks for the info. i will look at it and see if i can come up with
the reason (and fix !) for the problem.

kind regards
anupam

>
>
> Jason
>
> --
> gentoo-dev@gentoo.org mailing list
>
>

-- 
...mathematicians do it smoothly and continuously or discretely in groups and in fields.


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] cscope ebuilds
  2003-11-15  8:23   ` Anupam Kapoor
@ 2003-11-15  9:01     ` Anupam Kapoor
  2003-11-15 15:46       ` Aron Griffis
                         ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Anupam Kapoor @ 2003-11-15  9:01 UTC (permalink / raw
  To: Jason Stubbs; +Cc: gentoo-dev

Anupam Kapoor <anupamk@speakeasy.net> writes:

>>
>> bash-2.05b$ grep elisp-site-regen /usr/portage/eclass/*
>> /usr/portage/eclass/elisp-common.eclass:elisp-site-regen() {
>> /usr/portage/eclass/elisp.eclass:       elisp-site-regen
>> /usr/portage/eclass/elisp.eclass:       elisp-site-regen
>
> thanks for the info. i will look at it and see if i can come up with
> the reason (and fix !) for the problem.
ok. got the fix. the problem was that for installing
50xcscope-gentoo.el, we were using a doins instead of using the normal
'elisp-site-file-install'. also we should have used elisp-install for
installing the *.el[c] files. the changes fix the problem.

two questions:
    1. how do i send the changes back ?
    2. in site-start.el, there seems to be an inconsistency in the way
    the site files are added to the load-path. for some cases, we have 

(setq load-path 
      (cons "/usr/share/emacs/site-lisp/dircolors" load-path)) 

and for other cases we have

(add-to-list 'load-path "/usr/share/emacs/site-lisp/htmlize")

shouldn't we be doing either of the two ?

thank you
kind regards
anupam


-- 
...mathematicians do it smoothly and continuously or discretely in groups and in fields.


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] cscope ebuilds
  2003-11-15  9:01     ` Anupam Kapoor
@ 2003-11-15 15:46       ` Aron Griffis
  2003-11-15 18:34       ` Jeremy Maitin-Shepard
  2003-11-16 19:47       ` Matthew Kennedy
  2 siblings, 0 replies; 9+ messages in thread
From: Aron Griffis @ 2003-11-15 15:46 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1090 bytes --]

Anupam Kapoor wrote:	[Sat Nov 15 2003, 04:01:13AM EST]
> ok. got the fix. the problem was that for installing
> 50xcscope-gentoo.el, we were using a doins instead of using the normal
> 'elisp-site-file-install'. also we should have used elisp-install for
> installing the *.el[c] files. the changes fix the problem.

Nice work tracking this down.

> two questions:
>     1. how do i send the changes back ?

File a bug at bugs.gentoo.org, assign to emacs@gentoo.org

>     2. in site-start.el, there seems to be an inconsistency in the way
>     the site files are added to the load-path. for some cases, we have 
> 
> (setq load-path 
>       (cons "/usr/share/emacs/site-lisp/dircolors" load-path)) 
> 
> and for other cases we have
> 
> (add-to-list 'load-path "/usr/share/emacs/site-lisp/htmlize")
> 
> shouldn't we be doing either of the two ?

If nobody answers this on the list, you could include this question in
your bug report.

Aron

-- 
Aron Griffis
Gentoo Linux Developer
Key fingerprint = E3B6 8734 C2D6 B5E5 AE76  FB3A 26B1 C5E3 2010 4EB0


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] cscope ebuilds
  2003-11-15  9:01     ` Anupam Kapoor
  2003-11-15 15:46       ` Aron Griffis
@ 2003-11-15 18:34       ` Jeremy Maitin-Shepard
  2003-11-16 19:47       ` Matthew Kennedy
  2 siblings, 0 replies; 9+ messages in thread
From: Jeremy Maitin-Shepard @ 2003-11-15 18:34 UTC (permalink / raw
  To: gentoo-dev

Anupam Kapoor <anupamk@speakeasy.net> writes:
> ok. got the fix. the problem was that for installing
> 50xcscope-gentoo.el, we were using a doins instead of using the normal
> 'elisp-site-file-install'. also we should have used elisp-install for
> installing the *.el[c] files. the changes fix the problem.

> two questions:
>     1. how do i send the changes back ?

No need.  I made these changes (and bumped revision) in CVS.  The
changes should be visible via rsync in approximately a half-hour.

>     2. in site-start.el, there seems to be an inconsistency in the way
>     the site files are added to the load-path. for some cases, we have 

> (setq load-path 
>       (cons "/usr/share/emacs/site-lisp/dircolors" load-path)) 

> and for other cases we have

> (add-to-list 'load-path "/usr/share/emacs/site-lisp/htmlize")

> shouldn't we be doing either of the two ?

Since these two methods are functionally equivalent, this is not very
critical.  Furthermore, I believe we will be revamping the site file
management system sometime soon.

-- 
Jeremy Maitin-Shepard

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] cscope ebuilds
  2003-11-15  9:01     ` Anupam Kapoor
  2003-11-15 15:46       ` Aron Griffis
  2003-11-15 18:34       ` Jeremy Maitin-Shepard
@ 2003-11-16 19:47       ` Matthew Kennedy
  2003-11-18  9:36         ` Anupam Kapoor
  2 siblings, 1 reply; 9+ messages in thread
From: Matthew Kennedy @ 2003-11-16 19:47 UTC (permalink / raw
  To: Anupam Kapoor; +Cc: Jason Stubbs, gentoo-dev

Anupam Kapoor <anupamk@speakeasy.net> writes:

> Anupam Kapoor <anupamk@speakeasy.net> writes:
>
>>>
>>> bash-2.05b$ grep elisp-site-regen /usr/portage/eclass/*
>>> /usr/portage/eclass/elisp-common.eclass:elisp-site-regen() {
>>> /usr/portage/eclass/elisp.eclass:       elisp-site-regen
>>> /usr/portage/eclass/elisp.eclass:       elisp-site-regen
>>
>> thanks for the info. i will look at it and see if i can come up with
>> the reason (and fix !) for the problem.
> ok. got the fix. the problem was that for installing
> 50xcscope-gentoo.el, we were using a doins instead of using the normal
> 'elisp-site-file-install'. also we should have used elisp-install for
> installing the *.el[c] files. the changes fix the problem.
>
> two questions:
>     1. how do i send the changes back ?
>     2. in site-start.el, there seems to be an inconsistency in the way
>     the site files are added to the load-path. for some cases, we have 

Looks like it has been fixed in CVS already.  Thanks for pointing out
the problem though.

> (setq load-path 
>       (cons "/usr/share/emacs/site-lisp/dircolors" load-path)) 
>
> and for other cases we have
>
> (add-to-list 'load-path "/usr/share/emacs/site-lisp/htmlize")

Either will work.  However, add-to-list is probably a better choice,
as it doesn't append elements which would result in duplicates.

Matt
-- 
Matthew Kennedy
Gentoo Linux Developer

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] cscope ebuilds
  2003-11-16 19:47       ` Matthew Kennedy
@ 2003-11-18  9:36         ` Anupam Kapoor
  2003-11-18 20:32           ` Jeremy Maitin-Shepard
  0 siblings, 1 reply; 9+ messages in thread
From: Anupam Kapoor @ 2003-11-18  9:36 UTC (permalink / raw
  To: Matthew Kennedy; +Cc: Jason Stubbs, gentoo-dev

Matthew Kennedy <mkennedy@gentoo.org> writes:

>>
>> (add-to-list 'load-path "/usr/share/emacs/site-lisp/htmlize")
>
> Either will work.  However, add-to-list is probably a better choice,
> as it doesn't append elements which would result in duplicates.
indeed ! but can't we automate the adding of load-paths ? because we
already know the location of site-lisp dir
i.e. /usr/share/emacs/site-lisp/ and the current package we are
installing is ${P} ?

just curious.

kind regards
anupam


>
> Matt
> -- 
> Matthew Kennedy
> Gentoo Linux Developer
>
>

-- 
...mathematicians do it smoothly and continuously or discretely in groups and in fields.


--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-dev] cscope ebuilds
  2003-11-18  9:36         ` Anupam Kapoor
@ 2003-11-18 20:32           ` Jeremy Maitin-Shepard
  0 siblings, 0 replies; 9+ messages in thread
From: Jeremy Maitin-Shepard @ 2003-11-18 20:32 UTC (permalink / raw
  To: gentoo-dev

Anupam Kapoor <anupamk@speakeasy.net> writes:
> indeed ! but can't we automate the adding of load-paths ? because we
> already know the location of site-lisp dir
> i.e. /usr/share/emacs/site-lisp/ and the current package we are
> installing is ${P} ?

Refer to the thread (in gentoo-dev) regarding forthcoming changes to
site-lisp handling.
-- 
Jeremy Maitin-Shepard

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2003-11-18 20:31 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-15  7:50 [gentoo-dev] cscope ebuilds Anupam Kapoor
2003-11-15  8:10 ` Jason Stubbs
2003-11-15  8:23   ` Anupam Kapoor
2003-11-15  9:01     ` Anupam Kapoor
2003-11-15 15:46       ` Aron Griffis
2003-11-15 18:34       ` Jeremy Maitin-Shepard
2003-11-16 19:47       ` Matthew Kennedy
2003-11-18  9:36         ` Anupam Kapoor
2003-11-18 20:32           ` Jeremy Maitin-Shepard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox