From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Abrahamsen Subject: Re: newbye questions [the nnir-article-group issue] Date: Tue, 13 Jun 2017 08:41:45 +0800 Message-ID: <874lvk67na.fsf@ericabrahamsen.net> References: <22842.45571.534380.479157@frac.u-strasbg.fr> <87mv9fvxko.fsf@ericabrahamsen.net> <22846.18152.922496.546862@frac.u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38706) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKZux-0004N1-MX for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 20:42:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKZuu-0005a3-JU for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 20:42:47 -0400 Received: from [195.159.176.226] (port=46797 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dKZuu-0005Zp-C9 for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 20:42:44 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dKZuk-0003ZZ-Lg for emacs-orgmode@gnu.org; Tue, 13 Jun 2017 02:42:34 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Alain.Cochard@unistra.fr writes: > Eric Abrahamsen writes on Sun 11 Jun 2017 14:37: > > Alain.Cochard@unistra.fr writes: > > > > >>Fran?ois Patte writes: > > >> > > >>> Le 05/06/2017 ? 12:07, Eric Abrahamsen a ?crit : > > >>>> Fran?ois Patte writes: > > >>>> > > >>>>> Le 05/06/2017 ? 01:33, Eric Abrahamsen a ?crit : > > >>>>>> Fran?ois Patte writes: > > >>>>>> > > >>>>>>> Bonjour, > > >>>>>>> > > >>>>>>> Ijust discovered org-mode for emacs and I want to explore the > > >>>>>>> capabilities of this mode for LaTeX documents. > > >>>>>>> > > >>>>>>> I have a few preliminary questions: > > >>>>>>> > > >>>>>>> 1- I installed org-mode from ELPA and I get a warning message > > >>>>>>> when I open a *.org file: > > >>>>>>> Eager macro-expansion failure: (error "Autoloading failed to > > >>>>>>> define function nnir-article-group") > > >>>>>>> > > >>>>>>> What does it mean and how to get rid of this message. > > [...] > > Hi Eric, thanks much for the feedback. > > > That was very useful, thanks for the detailed report! Looks like it's > > the same as this: > > > > https://bugzilla.redhat.com/show_bug.cgi?id=1177978 > > > > Looks like uninstalling an emacs-goodies package might do the trick? > > Yes it did! Also, the error is not present on another machine (with > Fedora 23) on which I could perform a test, with simply the command > 'emacs' and a void .emacs file -- and of course the emacs-goodies > packages installed on that machine: > > Org mode version 9.0.8 (9.0.8-elpa @ /root/.emacs.d/elpa/org-20170606/) > > GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of > 2016-04-11 on buildvm-25.phx2.fedoraproject.org > > Linux fruc.u-strasbg.fr 4.8.13-100.fc23.x86_64 #1 SMP Fri Dec 9 > 14:51:40 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux > >> Anyway, you're meant to be loading nnir.el from >> emacs//lisp/gnus/nnir.el, not site/lisp/gnus-bonus. > > So in your opinion what is the best to do in order to avoid this error > message, and, above all, the possible consequences related to this > problem? -- so far, I have not noticed any, but who knows... > > - get rid of the file /usr/share/emacs/site-lisp/gnus-bonus/nnir.el? > - get rid of the dir /usr/share/emacs/site-lisp/gnus-bonus/altogether? > - something else? > > Because uninstalling the emacs-goodies packages sound rather > extreme... NB: I uses gnus very rarely. Perhaps you could doctor your load-path early in the init process, so that /usr/share/emacs/site-lisp comes later, and is shadowed by emacs//lisp? On my machine the relevant load-path elements are ordered as: /usr/local/share/emacs/26.0.50/site-lisp /usr/local/share/emacs/site-lisp /usr/local/share/emacs/26.0.50/lisp If that's the case on your machine as well, perhaps you could remove emacs/site-lisp, and re-add it at the end of the list. That has the potential to break other things, though... Eric