all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] Emacs startup failure on GuixSD
@ 2015-07-20 13:40 Ludovic Courtès
  2015-07-20 13:40 ` [PATCH] emacs: Require 'cl-lib' Ludovic Courtès
  2015-07-20 13:52 ` [PATCH] Emacs startup failure on GuixSD Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Ludovic Courtès @ 2015-07-20 13:40 UTC (permalink / raw)
  To: alezost; +Cc: guix-devel

Reconfiguring my system after b56724e led to an Emacs that wouldn't start
because of a missing 'cl-pushnew' binding while loading
/etc/emacs/site-start.el.

I believe this patch solves the problem.
Can you confirm?

Strangely enough, I cannot reproduce it in a VM made with 'guix system vm'
and with Emacs in the system's 'packages' field.

Thanks,
Ludo'.

Ludovic Courtès (1):
  emacs: Require 'cl-lib'.

 emacs/guix-emacs.el | 1 +
 1 file changed, 1 insertion(+)

-- 
2.4.3

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] emacs: Require 'cl-lib'.
  2015-07-20 13:40 [PATCH] Emacs startup failure on GuixSD Ludovic Courtès
@ 2015-07-20 13:40 ` Ludovic Courtès
  2015-07-20 13:52 ` [PATCH] Emacs startup failure on GuixSD Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2015-07-20 13:40 UTC (permalink / raw)
  To: alezost; +Cc: guix-devel

* emacs/guix-emacs.el: Require 'cl-lib', for 'cl-pushnew'.
---
 emacs/guix-emacs.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/emacs/guix-emacs.el b/emacs/guix-emacs.el
index ddcef0a..0e3e8c2 100644
--- a/emacs/guix-emacs.el
+++ b/emacs/guix-emacs.el
@@ -25,6 +25,7 @@
 ;;; Code:
 
 (require 'guix-profiles)
+(require 'cl-lib)
 
 (defcustom guix-emacs-activate-after-operation t
   "Activate Emacs packages after installing.
-- 
2.4.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] Emacs startup failure on GuixSD
  2015-07-20 13:40 [PATCH] Emacs startup failure on GuixSD Ludovic Courtès
  2015-07-20 13:40 ` [PATCH] emacs: Require 'cl-lib' Ludovic Courtès
@ 2015-07-20 13:52 ` Ludovic Courtès
  2015-07-20 16:41   ` Alex Kost
  1 sibling, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2015-07-20 13:52 UTC (permalink / raw)
  To: alezost; +Cc: guix-devel

Ludovic Courtès <ludo@gnu.org> skribis:

> Reconfiguring my system after b56724e led to an Emacs that wouldn't start
> because of a missing 'cl-pushnew' binding while loading
> /etc/emacs/site-start.el.

I managed to capture a backtrace by running ‘emacs -Q’ and then:

  M-x toggle-debug-on-error
  M-x load-file /etc/emacs/site-start.el

Here it is:

--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (void-function cl-pushnew)
  (cl-pushnew (file-name-directory file) load-path :test (function string=))
  (while --dolist-tail-- (setq file (car --dolist-tail--)) (cl-pushnew (file-name-directory file) load-path :test (function string=)) (load file (quote noerror)) (setq --dolist-tail-- (cdr --dolist-tail--)))
  (let ((--dolist-tail-- files) file) (while --dolist-tail-- (setq file (car --dolist-tail--)) (cl-pushnew (file-name-directory file) load-path :test (function string=)) (load file (quote noerror)) (setq --dolist-tail-- (cdr --dolist-tail--))))
  (let* ((autoloads (guix-emacs-find-autoloads)) (files (if all autoloads (cl-nset-difference autoloads guix-emacs-autoloads :test (function string=))))) (let ((--dolist-tail-- files) file) (while --dolist-tail-- (setq file (car --dolist-tail--)) (cl-pushnew (file-name-directory file) load-path :test (function string=)) (load file (quote noerror)) (setq --dolist-tail-- (cdr --dolist-tail--)))) (setq guix-emacs-autoloads autoloads))
  guix-emacs-load-autoloads(all)
  (progn (require (quote guix-emacs)) (guix-emacs-load-autoloads (quote all)))
  (if guix-package-enable-at-startup (progn (require (quote guix-emacs)) (guix-emacs-load-autoloads (quote all))))
  eval-buffer(#<buffer  *load*-981800> nil "/run/current-system/profile/share/emacs/site-lisp/guix-init.el" nil t)  ; Reading at buffer position 641
  load-with-code-conversion("/run/current-system/profile/share/emacs/site-lisp/guix-init.el" "/run/current-system/profile/share/emacs/site-lisp/guix-init.el" t t)
  require(guix-init nil t)
  (progn (add-to-list (quote load-path) "/run/current-system/profile/share/emacs/site-lisp") (require (quote guix-init) nil t) (require (quote geiser-install) nil t))
  eval-buffer(#<buffer  *load*> nil "/etc/emacs/site-start.el" nil t)  ; Reading at buffer position 165
  load-with-code-conversion("/etc/emacs/site-start.el" "/etc/emacs/site-start.el" nil nil)
  load("/etc/emacs/site-start.el" nil nil t)
  load-file("/etc/emacs/site-start.el")
  call-interactively(load-file record nil)
  command-execute(load-file record)
  execute-extended-command(nil "load-file")
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)
--8<---------------cut here---------------end--------------->8---

Looking more closely, I guess the reason it worked in a VM is that there
were no autoloads, so ‘guix-emacs-find-autoloads’ just returned nil.

Ludo’.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Emacs startup failure on GuixSD
  2015-07-20 13:52 ` [PATCH] Emacs startup failure on GuixSD Ludovic Courtès
@ 2015-07-20 16:41   ` Alex Kost
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Kost @ 2015-07-20 16:41 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

Ludovic Courtès (2015-07-20 16:52 +0300) wrote:

> Ludovic Courtès <ludo@gnu.org> skribis:
>
>> Reconfiguring my system after b56724e led to an Emacs that wouldn't start
>> because of a missing 'cl-pushnew' binding while loading
>> /etc/emacs/site-start.el.

Ouch, yes, (require 'cl-lib) definitely should be put in
"emacs/guix-emacs.el".  Thanks for finding it!

[...]
> Looking more closely, I guess the reason it worked in a VM is that there
> were no autoloads, so ‘guix-emacs-find-autoloads’ just returned nil.

Apparently that's it.

-- 
Alex

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-07-20 16:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-20 13:40 [PATCH] Emacs startup failure on GuixSD Ludovic Courtès
2015-07-20 13:40 ` [PATCH] emacs: Require 'cl-lib' Ludovic Courtès
2015-07-20 13:52 ` [PATCH] Emacs startup failure on GuixSD Ludovic Courtès
2015-07-20 16:41   ` Alex Kost

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.