unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Alex Kost <alezost@gmail.com>
To: guix-devel@gnu.org
Subject: [PATCH 0/2] emacs: Add "M-x guix-package-from-file.
Date: Sun,  8 May 2016 13:51:00 +0300	[thread overview]
Message-ID: <1462704662-18972-1-git-send-email-alezost@gmail.com> (raw)

This is to add an Emacs companion of "guix build --file" and
"guix package --install-from-file".

Patches:

[PATCH 1/2] emacs: main: Remove top-level package tables.

  This patch finally rewrites that part of code in a functional style.
  Many thanks to Ludovic for past comments on using 'delay' and vhashes.

[PATCH 2/2] emacs: Add 'guix-package-from-file' command.

  And this patch partially breaks the functional style.  A new package
  (from an arbitrary file) must be registered in a table of packages, so
  that it can be addressed later (for example, if a user would want to
  install it).  So this is done using not very functional 'set!' in
  'register-package' procedure (at least it sets a local variable).  Is
  there a better way to write this?

             reply	other threads:[~2016-05-08 10:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-08 10:51 Alex Kost [this message]
2016-05-08 10:51 ` [PATCH 1/2] emacs: main: Remove top-level package tables Alex Kost
2016-05-08 16:54   ` Ludovic Courtès
2016-05-08 10:51 ` [PATCH 2/2] emacs: Add 'guix-package-from-file' command Alex Kost
2016-05-08 18:40   ` Ludovic Courtès
2016-05-09  8:25     ` Alex Kost
2016-05-09 20:29       ` Ludovic Courtès
2016-05-10  9:09         ` Alex Kost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1462704662-18972-1-git-send-email-alezost@gmail.com \
    --to=alezost@gmail.com \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).