all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [PATCH] emacs: Fix reference to directory variable
@ 2015-07-19 18:23 Christopher Allan Webber
  2015-07-19 18:59 ` Mathieu Lirzin
  2015-07-20  8:51 ` Alex Kost
  0 siblings, 2 replies; 3+ messages in thread
From: Christopher Allan Webber @ 2015-07-19 18:23 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 304 bytes --]

Hello,

I noticed that guix's emacs mode contained a bug which prevented my full
emacs config from loading... turns out it was due to a variable
reference to a variable which had recently been renamed, thus turning a
small warning message into an unintentional error! :)

A small fix is below.
 - Chris


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-emacs-Fix-reference-to-directory-variable.patch --]
[-- Type: text/x-diff, Size: 1117 bytes --]

From c935c76e7e45b3ee3b0f191b3e21e041a6404996 Mon Sep 17 00:00:00 2001
From: Christopher Allan Webber <cwebber@dustycloud.org>
Date: Sun, 19 Jul 2015 13:17:44 -0500
Subject: [PATCH] emacs: Fix reference to directory variable

* emacs/guix-emacs.el (guix-emacs-find-autoloads): Fix variable
  reference to 'elisp-root-dir', which kept the old name of 'dir'
  despite having been renamed above.  This had introduced a bug
  where a mundane warning would instead cause a variable reference
  error.
---
 emacs/guix-emacs.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/emacs/guix-emacs.el b/emacs/guix-emacs.el
index 4c3aa23..ddcef0a 100644
--- a/emacs/guix-emacs.el
+++ b/emacs/guix-emacs.el
@@ -69,7 +69,7 @@ Return nil if there are no emacs packages installed in PROFILE."
                                 (guix-emacs-subdirs elisp-pkgs-dir))))
                 (append root-autoloads pkgs-autoloads))
             root-autoloads))
-      (message "Directory '%s' does not exist." dir)
+      (message "Directory '%s' does not exist." elisp-root-dir)
       nil)))
 
 ;;;###autoload
-- 
2.1.4


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

* Re: [PATCH] emacs: Fix reference to directory variable
  2015-07-19 18:23 [PATCH] emacs: Fix reference to directory variable Christopher Allan Webber
@ 2015-07-19 18:59 ` Mathieu Lirzin
  2015-07-20  8:51 ` Alex Kost
  1 sibling, 0 replies; 3+ messages in thread
From: Mathieu Lirzin @ 2015-07-19 18:59 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

Christopher Allan Webber <cwebber@dustycloud.org> writes:

> Subject: [PATCH] emacs: Fix reference to directory variable
                                                             ^
Missing a dot here. :)

> * emacs/guix-emacs.el (guix-emacs-find-autoloads): Fix variable
>   reference to 'elisp-root-dir', which kept the old name of 'dir'
>   despite having been renamed above.  This had introduced a bug
>   where a mundane warning would instead cause a variable reference
>   error.

What about using a reference to the commit which introduces the change
instead of explaining what has been done previously?

--
Mathieu Lirzin

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

* Re: [PATCH] emacs: Fix reference to directory variable
  2015-07-19 18:23 [PATCH] emacs: Fix reference to directory variable Christopher Allan Webber
  2015-07-19 18:59 ` Mathieu Lirzin
@ 2015-07-20  8:51 ` Alex Kost
  1 sibling, 0 replies; 3+ messages in thread
From: Alex Kost @ 2015-07-20  8:51 UTC (permalink / raw)
  To: Christopher Allan Webber; +Cc: guix-devel

Christopher Allan Webber (2015-07-19 21:23 +0300) wrote:

> Hello,
>
> I noticed that guix's emacs mode contained a bug which prevented my full
> emacs config from loading... turns out it was due to a variable
> reference to a variable which had recently been renamed, thus turning a
> small warning message into an unintentional error! :)
>
> A small fix is below.
>  - Chris

My bad, thank you!  Pushed.  I've changed the commit message to
reference the commit introduced this bug, as Mathieu suggested.

-- 
Alex

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

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

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-19 18:23 [PATCH] emacs: Fix reference to directory variable Christopher Allan Webber
2015-07-19 18:59 ` Mathieu Lirzin
2015-07-20  8:51 ` 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.