Subject: bug#29329: 27.0.50; Missing requirement in org-gnus.el

From: Michael Heerdegen <[email-masked]>
Date: Fri, 17 Nov 2017 00:29:14 +0100

Hello,

in help-gnu-emacs, a user (CC'd) asked for help because he got this error:

| Debugger entered--Lisp error: (invalid-function
| gnus-summary-article-header)
|   gnus-summary-article-header()
|   org-gnus-store-link()
|   #f(compiled-function (f) #<bytecode 0x174a15d>)(org-gnus-store-link)
|   mapcar(#f(compiled-function (f) #<bytecode 0x174a15d>)
| (org-rmail-store-link org-mhe-store-link org-irc-store-link
| org-info-store-link org-gnus-store-link org-docview-store-link
| org-bibtex-store-link org-bbdb-store-link org-w3m-store-link
| elfeed-link-store-link))
|   org-store-link(nil)
|   funcall-interactively(org-store-link nil)
|   #<subr call-interactively>(org-store-link nil nil)
|   apply(#<subr call-interactively> org-store-link (nil nil))
|   call-interactively@ido-cr+-record-current-command(#<subr
| call-interactively> org-store-link nil nil)
|   apply(call-interactively@ido-cr+-record-current-command #<subr
| call-interactively> (org-store-link nil nil))
|   call-interactively(org-store-link nil nil)
|   command-execute(org-store-link)

Apparently, the function `org-gnus-store-link' in org-gnus.el had been
compiled without the macro `gnus-summary-article-header' (from
gnus-sum.el) defined.  There is apparently a missing requirement at
least when compiling (and at least here on master) in org-gnus.

Erik Abrahamsen (also CC'd) answered that even more requirements might
be missing, like

(eval-when-compile
  (require 'gnus-sum)
  (require 'nnheader)
  (require 'nnir))

TIA,

Michael.

In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.24)
 of 2017-11-14 built on drachen
Repository revision: aef77fff418bb8aaa7bb6b88252f9d74869cf52a
Windowing system distributor 'The X.Org Foundation', version 11.0.11905000
System Description:	Debian GNU/Linux testing (buster)