First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 184588
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux Gnome Desktop Team <gnome@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ulrich Müller <ulm@gentoo.org>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
60gtk-doc-gentoo.el 60gtk-doc-gentoo.el text/plain Ulrich Müller 2007-07-08 10:06 0000 520 bytes Details
61gtk-doc-gentoo.el 61gtk-doc-gentoo.el text/plain Ulrich Müller 2007-07-29 20:40 0000 283 bytes Details
gtk-doc-1.8-emacs-keybindings.patch gtk-doc-1.8-emacs-keybindings.patch patch Ulrich Müller 2007-07-29 20:41 0000 582 bytes Details | Diff
gtk-doc-1.8.ebuild.diff Diff for gtk-doc-1.8.ebuild patch Ulrich Müller 2007-07-29 20:44 0000 1.16 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 184588 depends on: Show dependency tree
Bug 184588 blocks: 174469
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-07-08 09:57 0000
The site-init file 60gtk-doc-gentoo.el contains the statement (load-library
"gtk-doc") which will load gtk-doc.el at Emacs startup time. It would be
desirable to postpone loading of gtk-doc.el until it is first needed, which can
be done using Emacs's autoload mechanism.

See <http://overlays.gentoo.org/proj/emacs/wiki/sitefile%20problems> for
further details.

------- Comment #1 From Ulrich Müller 2007-07-08 10:06:21 0000 -------
Created an attachment (id=124225) [edit]
60gtk-doc-gentoo.el

Modified site-init file using autoload.

------- Comment #2 From Daniel Gryniewicz 2007-07-08 19:26:23 0000 -------
This file is just installed; it's created and maintained by upstream.  Please
file an upstream bug with the fix, and post the URL in the URL field above.

------- Comment #3 From Ulrich Müller 2007-07-08 19:39:36 0000 -------
(In reply to comment #2)
> This file is just installed; it's created and maintained by upstream.

This is true for gtk-doc.el for which I don't propose any change.

However, 60gtk-doc-gentoo.el is the Gentoo site initialisation file. It resides
in ${FILESDIR} and is _not_ provided by upstream.

------- Comment #4 From Daniel Gryniewicz 2007-07-24 19:27:14 0000 -------
You're right, I was looking at the wrong file.


I don't use emacs, but I've run this by the local emacs expert, and he objects
to the proposed change as being "invasive".  I'm not sure what to do at this
point; can you maybe explain why you're doing this, instead of what all the
rest of the emacs site files do (namely require)?

------- Comment #5 From Ulrich Müller 2007-07-24 20:18:04 0000 -------
(In reply to comment #4)
> I don't use emacs, but I've run this by the local emacs expert, and he objects
> to the proposed change as being "invasive".  I'm not sure what to do at this
> point; can you maybe explain why you're doing this, instead of what all the
> rest of the emacs site files do (namely require)?

O.K., let's look at the differences between the old and the new site file:
1. (load-library "gtk-doc") is replaced by autoload statements for the
   interactive functions.
2. Two global keybindings which would otherwise be done in gtk-doc.el itself.

I don't understand which part of this would be considered "invasive". Please
note that the standard procedure for the core packages included with Emacs
itself is to use the autoload mechanism (look into
/usr/share/emacs/*/lisp/loaddefs.el).

It is true that many of the Gentoo site files still contain require statements;
it is on our agenda to change this wherever possible. See the URL given in
comment #0 and tracker bug #174469 for details.

(In addition, in the case of gtk-doc it would not be possible to use "require"
since the file doesn't contain a corresponding "provide" statement.)

------- Comment #6 From Daniel Gryniewicz 2007-07-29 19:40:01 0000 -------
(I realize it doesn't have a provide statement; that can be fixed, if
necessary)

In particular, he strenuously objected to setting global keybindings, and liked
the require/provde setup.  Why is require/provide being removed?  It seems to
me that globally forcing settings on all users is a very bad idea, in general,
and settings should only be pulled in when needed.

Keep in mind: I'm *not* an emacs user, and don't care one way or the other.  If
this type of global setting is the way emacs on gentoo is going, far be it from
me to stop it...

------- Comment #7 From Ulrich Müller 2007-07-29 20:40:56 0000 -------
Created an attachment (id=126388) [edit]
61gtk-doc-gentoo.el

------- Comment #8 From Ulrich Müller 2007-07-29 20:41:43 0000 -------
Created an attachment (id=126390) [edit]
gtk-doc-1.8-emacs-keybindings.patch

------- Comment #9 From Ulrich Müller 2007-07-29 20:44:55 0000 -------
Created an attachment (id=126392) [edit]
Diff for gtk-doc-1.8.ebuild

As discussed, here is a new site-init file, a patch that removes the global key
bindings, and a patch for the ebuild itself.

------- Comment #10 From Daniel Gryniewicz 2007-07-30 19:03:21 0000 -------
Committed.

First Last Prev Next    No search results available      Search page      Enter new bug