Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235393 - dev-util/git: 72git-gentoo.el does nothing for >=emacs-22.2
Summary: dev-util/git: 72git-gentoo.el does nothing for >=emacs-22.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-21 18:55 UTC by Peter Simons
Modified: 2022-06-10 17:43 UTC (History)
1 user (show)

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


Attachments
Proposed patch for git-1.6.0.3.ebuild (git-1.6.0.3.ebuild.patch,1.37 KB, patch)
2008-10-30 07:24 UTC, Ulrich Müller
Details | Diff
files/50git-gentoo.el (50git-gentoo.el,473 bytes, text/plain)
2008-10-30 07:29 UTC, Ulrich Müller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Simons 2008-08-21 18:55:03 UTC
I'm wondering about the file /usr/share/emacs/site-lisp/site-gentoo.d/72git-gentoo.el that's installed by  dev-util/git: Why is the initialization code contained in a 

  (unless (fboundp 'vc-git-registered) ...)

bracket? I don't see how git can be registered as a VC backend at the time that file is parsed. No matter what I do, I cannot make the default installation support M-x git-status. Removing that unless-conditional remedies the problem.

Am I missing something? How is that thing supposed to work?

Reproducible: Always

Steps to Reproduce:
1. USE=emacs emerge git
2. emacs
3. M-x git-status

Doesn't work.
Comment 1 Ulrich Müller gentoo-dev 2008-08-21 20:13:47 UTC
This is on purpose, since VC in >=emacs-22.2 comes with its own Git backend already. So in this case we disable the code that comes with dev-util/git, see bug 194690.
Comment 2 Ulrich Müller gentoo-dev 2008-08-25 08:03:15 UTC
Resolving as invalid. Please reopen if you think that this is still an issue.

For clarification, I've put a comment in 72git-gentoo.el:
;; GNU Emacs >=22.2 already includes vc-git.el.
;; Enable the following only if Emacs has no GIT support.
Comment 3 Peter Simons 2008-10-30 05:25:52 UTC
The git support shipped with Emacs does not provide 'git-status'; the mode installed by git, however, does. So the elisp files from git should be preferred. Am I missing something? 
Comment 4 Ulrich Müller gentoo-dev 2008-10-30 07:24:40 UTC
Created attachment 170294 [details, diff]
Proposed patch for git-1.6.0.3.ebuild

(In reply to comment #3)
> The git support shipped with Emacs does not provide 'git-status'; the mode
> installed by git, however, does. So the elisp files from git should be
> preferred.

As I wrote before, we cannot use vc-git.el with Emacs >= 22.2.

But you have a point, we could autoload git.el (i.e., git-status) unconditionally and apply the version test only for vc-git.el. Patch for the ebuild is attached, new site-init file will follow.
Comment 5 Ulrich Müller gentoo-dev 2008-10-30 07:29:27 UTC
Created attachment 170296 [details]
files/50git-gentoo.el

New site-init file.

(I've changed its number from 72 to the canonical 50. There is no other package required before git in the load sequence, and whenever I see a number like 72 I ask myself what would be the reason for this.)
Comment 6 Ulrich Müller gentoo-dev 2008-11-15 13:22:57 UTC
robbat2, any objections if I commit this myself?
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-11-24 00:46:42 UTC
In 1.6.0.4-r1