Re: [O] newbye questions [the nnir-article-group issue]
Eric Abrahamsen writes on Tue 13 Jun 2017 08:41: > alain.coch...@unistra.fr writes: > > > Eric Abrahamsen writes on Sun 11 Jun 2017 14:37: > > > alain.coch...@unistra.fr writes: > > > > > > >>Fran?ois Pattewrites: > > > >> > > > >>> 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... Yes, that's the same for me. I'll try to investigate along that line. Thanks again for your time. -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France| Fax: +33 (0)3 68 85 01 25
Re: [O] newbye questions [the nnir-article-group issue]
alain.coch...@unistra.fr writes: > Eric Abrahamsen writes on Sun 11 Jun 2017 14:37: > > alain.coch...@unistra.fr writes: > > > > >>Fran?ois Pattewrites: > > >> > > >>> 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
Re: [O] newbye questions [the nnir-article-group issue]
Eric Abrahamsen writes on Sun 11 Jun 2017 14:37: > alain.coch...@unistra.fr writes: > > >>Fran?ois Pattewrites: > >> > >>> 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. Regards, a. -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France| Fax: +33 (0)3 68 85 01 25
Re: [O] newbye questions [the nnir-article-group issue]
alain.coch...@unistra.fr writes: >>Fran?ois Pattewrites: >> >>> 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. [...] > I certainly don't have more experience, but maybe it will help if I > report my own. > > I have the very same problem with the following configuration: > > Org mode version 9.0.8 (9.0.8-elpa @ > /home/cochard/.emacs.d/elpa/org-20170606/) > > GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.14.12) of > 2015-05-07 on buildvm-08.phx2.fedoraproject.org > > 'uname -a' gives: Linux frac.u-strasbg.fr 4.1.13-100.fc21.x86_64 #1 > SMP Tue Nov 10 13:13:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux > > I've had this problem since I updated org ELPA on 24 dec 2016 (NB: I > have not changed my GNU emacs version or GNU/Linux distribution). > > > I performed the following tests (all independently from one another), > all with a void .emacs file. > > (1) With 'emacs --no-site-file' > > -> the error is present. > > (2) With 'emacs --no-site-file' > > and after commenting the line > > (autoload 'nnir-article-group "nnir" nil nil 'macro) > > in file /usr/share/emacs/24.5/lisp/gnus/gnus-sum.el (after having > gunzip'ed it) and also after having hidden the corresponding .elc file > > -> the error is not present. > > (3) With 'emacs --no-site-file --no-site-lisp' > > -> the error is not present. > > (4) With 'emacs --no-site-file' > > and after hiding files nnir.el and nnir.elc, which are in dir > /usr/share/emacs/site-lisp/gnus-bonus > > -> the error is not present. > > The begining of file /usr/share/emacs/site-lisp/gnus-bonus/ is > > ;;; nnir.el --- search mail with various search engines -*- coding: > iso-8859-1 -*- > ;; Copyright (C) 1998 Kai Großjohann > > ;; $Id: nnir.el,v 1.1.1.1 2003-04-04 20:16:09 lolando Exp $ > > This file contains: (require 'gnus-sum) 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? Anyway, you're meant to be loading nnir.el from emacs//lisp/gnus/nnir.el, not site/lisp/gnus-bonus. Eric
Re: [O] newbye questions [the nnir-article-group issue]
>Fran?ois Pattewrites: > >> 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. > That's a macro from Gnus, the mail/news client. I'm not quite > sure why it would be getting triggered from Org. Would you run > `toggle-debug-on-error', and trigger the warning again? I don't know much with the lisp syntax; here is what I have done: opened emacs, M-x toggle-debug-on-error RET C-f file.org And the message is still there This message does not appear if I open file without the .org >>> extension. >>> Sorry -- of course it's a *warning*, not an error. >>> >>> My only guess is that this is caused by the call to >>> `nnir-article-group' inside `org-gnus-store-link' in the file >>> org-gnus.el. That file has >>> >>> (eval-when-compile (require 'gnus-sum)) >>> >>> And gnus-sum.el has: >>> >>> (autoload 'nnir-article-group "nnir" nil nil 'macro) >>> >>> So theoretically that should take care of it. >>> >>> What version of Emacs are you using? >> >> 25.2.1 >> >> and org-mode version: 9.0.7 (from elpa) > I'm sorry, I just don't know enough about how Emacs loads and > evaluates these forms to tell you what's going wrong. The nnir macro > should definitely be available in your setup. I don't even know why > loading that Org library would make it complain. > > Hopefully someone with more experience can take it from here. Sorry! I certainly don't have more experience, but maybe it will help if I report my own. I have the very same problem with the following configuration: Org mode version 9.0.8 (9.0.8-elpa @ /home/cochard/.emacs.d/elpa/org-20170606/) GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.14.12) of 2015-05-07 on buildvm-08.phx2.fedoraproject.org 'uname -a' gives: Linux frac.u-strasbg.fr 4.1.13-100.fc21.x86_64 #1 SMP Tue Nov 10 13:13:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux I've had this problem since I updated org ELPA on 24 dec 2016 (NB: I have not changed my GNU emacs version or GNU/Linux distribution). I performed the following tests (all independently from one another), all with a void .emacs file. (1) With 'emacs --no-site-file' -> the error is present. (2) With 'emacs --no-site-file' and after commenting the line (autoload 'nnir-article-group "nnir" nil nil 'macro) in file /usr/share/emacs/24.5/lisp/gnus/gnus-sum.el (after having gunzip'ed it) and also after having hidden the corresponding .elc file -> the error is not present. (3) With 'emacs --no-site-file --no-site-lisp' -> the error is not present. (4) With 'emacs --no-site-file' and after hiding files nnir.el and nnir.elc, which are in dir /usr/share/emacs/site-lisp/gnus-bonus -> the error is not present. The begining of file /usr/share/emacs/site-lisp/gnus-bonus/ is ;;; nnir.el --- search mail with various search engines -*- coding: iso-8859-1 -*- ;; Copyright (C) 1998 Kai Großjohann ;; $Id: nnir.el,v 1.1.1.1 2003-04-04 20:16:09 lolando Exp $ This file contains: (require 'gnus-sum) Regards, Alain -- EOST (École et Observatoire des Sciences de la Terre) IPG (Institut de Physique du Globe) | alain.coch...@unistra.fr 5 rue René Descartes [bureau 106] | Phone: +33 (0)3 68 85 50 44 F-67084 Strasbourg Cedex, France| Fax: +33 (0)3 68 85 01 25
Re: [O] newbye questions
François Pattewrites: > 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. That's a macro from Gnus, the mail/news client. I'm not quite sure why it would be getting triggered from Org. Would you run `toggle-debug-on-error', and trigger the warning again? >>> >>> I don't know much with the lisp syntax; here is what I have done: >>> opened emacs, >>> M-x toggle-debug-on-error RET >>> C-f file.org >>> >>> And the message is still there >>> >>> This message does not appear if I open file without the .org extension. >> >> Sorry -- of course it's a *warning*, not an error. >> >> My only guess is that this is caused by the call to `nnir-article-group' >> inside `org-gnus-store-link' in the file org-gnus.el. That file has >> >> (eval-when-compile (require 'gnus-sum)) >> >> And gnus-sum.el has: >> >> (autoload 'nnir-article-group "nnir" nil nil 'macro) >> >> So theoretically that should take care of it. >> >> What version of Emacs are you using? > > 25.2.1 > > and org-mode version: 9.0.7 (from elpa) I'm sorry, I just don't know enough about how Emacs loads and evaluates these forms to tell you what's going wrong. The nnir macro should definitely be available in your setup. I don't even know why loading that Org library would make it complain. Hopefully someone with more experience can take it from here. Sorry! E
Re: [O] newbye questions
Le 05/06/2017 à 12:07, Eric Abrahamsen a écrit : > François Pattewrites: > >> 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. >>> >>> That's a macro from Gnus, the mail/news client. I'm not quite sure why >>> it would be getting triggered from Org. Would you run >>> `toggle-debug-on-error', and trigger the warning again? >> >> I don't know much with the lisp syntax; here is what I have done: >> opened emacs, >> M-x toggle-debug-on-error RET >> C-f file.org >> >> And the message is still there >> >> This message does not appear if I open file without the .org extension. > > Sorry -- of course it's a *warning*, not an error. > > My only guess is that this is caused by the call to `nnir-article-group' > inside `org-gnus-store-link' in the file org-gnus.el. That file has > > (eval-when-compile (require 'gnus-sum)) > > And gnus-sum.el has: > > (autoload 'nnir-article-group "nnir" nil nil 'macro) > > So theoretically that should take care of it. > > What version of Emacs are you using? 25.2.1 and org-mode version: 9.0.7 (from elpa) -- François Patte UFR de mathématiques et informatique Laboratoire CNRS MAP5, UMR 8145 Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)6 7892 5822 http://www.math-info.univ-paris5.fr/~patte signature.asc Description: OpenPGP digital signature
Re: [O] newbye questions
François Pattewrites: > 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. >> >> That's a macro from Gnus, the mail/news client. I'm not quite sure why >> it would be getting triggered from Org. Would you run >> `toggle-debug-on-error', and trigger the warning again? > > I don't know much with the lisp syntax; here is what I have done: > opened emacs, > M-x toggle-debug-on-error RET > C-f file.org > > And the message is still there > > This message does not appear if I open file without the .org extension. Sorry -- of course it's a *warning*, not an error. My only guess is that this is caused by the call to `nnir-article-group' inside `org-gnus-store-link' in the file org-gnus.el. That file has (eval-when-compile (require 'gnus-sum)) And gnus-sum.el has: (autoload 'nnir-article-group "nnir" nil nil 'macro) So theoretically that should take care of it. What version of Emacs are you using? I really don't know why this would be happening (I'm not very good at debugging compile/load errors), but I'll bet the above is the source of the problem. Eric
Re: [O] newbye questions
Le 05/06/2017 à 01:33, Eric Abrahamsen a écrit : > François Pattewrites: > >> 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. > > That's a macro from Gnus, the mail/news client. I'm not quite sure why > it would be getting triggered from Org. Would you run > `toggle-debug-on-error', and trigger the warning again? I don't know much with the lisp syntax; here is what I have done: opened emacs, M-x toggle-debug-on-error RET C-f file.org And the message is still there This message does not appear if I open file without the .org extension. -- François Patte UFR de mathématiques et informatique Laboratoire CNRS MAP5, UMR 8145 Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)6 7892 5822 http://www.math-info.univ-paris5.fr/~patte signature.asc Description: OpenPGP digital signature
Re: [O] newbye questions
François Pattewrites: > 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. That's a macro from Gnus, the mail/news client. I'm not quite sure why it would be getting triggered from Org. Would you run `toggle-debug-on-error', and trigger the warning again? Eric
Re: [O] newbye questions
François Pattewrites: > 2- I looked at some tutorials (for instance this one: > http://hiko-seijuro.developpez.com/articles/orgtutorial/) > > It is said at the early beginning for a TODO list, that if you hit C-c > C-t TODO turns into DONE (that's right) and that a timestamp is > automatically added: > CLOSED: [date for closing] > > I cannot get this behaviour I googled and find some list code to add > to my .emacs file, but this does not work > (setq org-log-done 'time) See the section "Closing items" in the Org manual. -- Nick
[O] newbye questions
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. 2- I looked at some tutorials (for instance this one: http://hiko-seijuro.developpez.com/articles/orgtutorial/) It is said at the early beginning for a TODO list, that if you hit C-c C-t TODO turns into DONE (that's right) and that a timestamp is automatically added: CLOSED: [date for closing] I cannot get this behaviour I googled and find some list code to add to my .emacs file, but this does not work What can I do? Thank you. -- François Patte UFR de mathématiques et informatique Laboratoire CNRS MAP5, UMR 8145 Université Paris Descartes 45, rue des Saints Pères F-75270 Paris Cedex 06 Tél. +33 (0)6 7892 5822 http://www.math-info.univ-paris5.fr/~patte signature.asc Description: OpenPGP digital signature