Re: Magit 2 troubleshooting

2015-08-29 Thread Alex Kost
AFAICT the root of the problems you faced is that by default
"~/.guix-profile/share/emacs/site-lisp/" and
"~/.guix-profile/share/emacs/site-lisp/guix.d/…" directories are added
to 'load-path' before "~/.emacs.d/elpa/…" so the packages installed from
elpa/melpa/… have a priority.  This may lead to the problems you have
with the old "dash" and "magit-svn".

I think to avoid such clashes, we may choose not to use propagated
inputs for emacs packages, and to replace (require 'foo) clauses with
(require 'foo "/gnu/store/…") ones instead.  This is Taylan's idea:


-- 
Alex



Re: Magit 2 troubleshooting

2015-08-29 Thread Alex Kost
Ludovic Courtès (2015-08-29 17:39 +0300) wrote:

> Alex Kost  skribis:
>
>> So I wish people good luck with moving to Magit2 :-)
>
> So!  I’ve upgraded ‘magit’ and ‘magit-svn’, but now (require 'magit-svn)
> yields this:
>
>
> Debugger entered--Lisp error: (void-function magit-key-mode-add-group)
>   magit-key-mode-add-group(svn)
[...]
> Does that ring a bell?

I don't see any reference to 'magit-key-mode-add-group' in
"magit-svn.el".  May it happen because you have an old "magit-svn" in
your "~/.emacs.d/elpa/" dir which has a priority over "magit-svn" from
guix?

> (Another thing I noticed is that the ‘git-commit-mode’ module has been
> renamed to ‘git-commit’.  Just mentioning it in case someone gets hit by
> this one.)

As well, as ‘git-rebase-mode’ → ‘git-rebase’.

-- 
Alex



Magit 2 troubleshooting

2015-08-29 Thread Ludovic Courtès
Alex Kost  skribis:

> So I wish people good luck with moving to Magit2 :-)

So!  I’ve upgraded ‘magit’ and ‘magit-svn’, but now (require 'magit-svn)
yields this:

--8<---cut here---start->8---
Debugger entered--Lisp error: (void-function magit-key-mode-add-group)
  magit-key-mode-add-group(svn)
  
byte-code("\301\300\302\303\304$\210\305\306\307#\210\310\311!\210\312\311\313\314\315$\210\312\311\316\317\320$\210\312\311\321\322\323$\210\312\311\324\325\326$\210\312\311\327\330\331$\210\312\311\332\333\334$\210\312\311\335\336\337$\210\340\311\341\342\343$\210\344\311!\207"
 [magit-svn-extension-menu easy-menu-do-define nil "Git SVN extension menu" 
("Git SVN" :visible magit-svn-mode ["Create branch" magit-svn-create-branch 
(magit-svn-enabled)] ["Rebase" magit-svn-rebase (magit-svn-enabled)] ["Fetch" 
magit-svn-remote-update (magit-svn-enabled)] ["Commit" magit-svn-dcommit 
(magit-svn-enabled)]) easy-menu-add-item magit-mode-menu ("Extensions") 
magit-key-mode-add-group svn magit-key-mode-insert-action "r" "Rebase" 
magit-svn-rebase "c" "DCommit" magit-svn-dcommit "f" "Fetch" 
magit-svn-remote-update "s" "Find rev" magit-svn-find-rev "B" "Create branch" 
magit-svn-create-branch "T" "Create tag" magit-svn-create-tag "x" "Fetch 
Externals" magit-svn-fetch-externals magit-key-mode-insert-switch "-n" "Dry 
run" "--dry-run" magit-key-mode-generate] 5)
  require(magit-svn)
  eval((require (quote magit-svn)) nil)
  eval-expression((require (quote magit-svn)) nil)
  call-interactively(eval-expression nil nil)
  command-execute(eval-expression)
--8<---cut here---end--->8---

Does that ring a bell?

(Another thing I noticed is that the ‘git-commit-mode’ module has been
renamed to ‘git-commit’.  Just mentioning it in case someone gets hit by
this one.)

Ludo’.