~ruther/guix-local

e20f051ec45719631bdc5ea4fad9ab1787bb0c18 — Alex Kost 10 years ago 17c2038
emacs: Add missing (require 'guix-profiles).

Reported by Christopher Allan Webber <cwebber@dustycloud.org> on #guix.

Several modules use the code from 'guix-profiles' without requiring it.  It
was never noticed before commits e4e2154644ecf76ea02a50304c1405c00c9ffdd1
and 13fe4891fa247d306e203ee14c6886513bd86b52, because 'guix-emacs' required
this module.  But now, when 'site-start.el' loads 'guix-emacs',
'guix-profiles' may not exist yet, so it may not be required.  This will
lead to an error when some of "M-x guix-..." commands will be used.  See
<https://gnunet.org/bot/log/guix/2016-02-03#T898859>.

* emacs/guix-base.el: Require 'guix-profiles'.
* emacs/guix-ui.el: Likewise.
* emacs/guix-ui-generation.el: Likewise.
* emacs/guix-ui-package.el: Likewise.
4 files changed, 4 insertions(+), 0 deletions(-)

M emacs/guix-base.el
M emacs/guix-ui-generation.el
M emacs/guix-ui-package.el
M emacs/guix-ui.el
M emacs/guix-base.el => emacs/guix-base.el +1 -0
@@ 30,6 30,7 @@
(require 'guix-read)
(require 'guix-utils)
(require 'guix-ui)
(require 'guix-profiles)

(defgroup guix nil
  "Settings for Guix package manager and friends."

M emacs/guix-ui-generation.el => emacs/guix-ui-generation.el +1 -0
@@ 35,6 35,7 @@
(require 'guix-guile)
(require 'guix-entry)
(require 'guix-utils)
(require 'guix-profiles)

(guix-ui-define-entry-type generation)


M emacs/guix-ui-package.el => emacs/guix-ui-package.el +1 -0
@@ 37,6 37,7 @@
(require 'guix-hydra-build)
(require 'guix-read)
(require 'guix-license)
(require 'guix-profiles)

(guix-ui-define-entry-type package)
(guix-ui-define-entry-type output)

M emacs/guix-ui.el => emacs/guix-ui.el +1 -0
@@ 30,6 30,7 @@
(require 'guix-guile)
(require 'guix-utils)
(require 'guix-messages)
(require 'guix-profiles)

(guix-define-groups ui
  :group-doc "\