Skip to content
Snippets Groups Projects
  1. Apr 21, 2016
    • Mathieu Lirzin's avatar
      build: Move 'Makefile' fragments to subdirectories. · 03d0e2d2
      Mathieu Lirzin authored
      This follows a convention used by some other GNU packages like Autoconf,
      Bison, Coreutils, and Gnulib.
      
      * doc.am: Rename to ...
      * doc/local.mk: ... this.
      * emacs.am: Rename to ...
      * emacs/local.mk: ... this.
      * gnu-system.am: Rename to ...
      * gnu/local.mk: ... this.
      * daemon.am: Rename to ...
      * nix/local.mk: ... this.
      * Makefile.am: Adapt to them.
      * doc/guix.texi (Porting to a New Platform): Adapt documentation.
      * guix/config.scm.in (%state-directory, %config-directory): Adapt comments.
      * emacs/guix-config.el.in (guix-config-state-directory): Likewise.
      03d0e2d2
  2. Apr 18, 2016
    • Alex Kost's avatar
      emacs: Display license info on button press in Package Info buffer. · a7c61781
      Alex Kost authored
      * emacs/guix-ui-package.el (guix-package-license): Adjust button action
        to display license info instead of browsing license URL.
      a7c61781
    • Alex Kost's avatar
      emacs: Add location "Packages" button to Package Info buffer. · 690c055b
      Alex Kost authored
      * emacs/guix-ui-package.el (guix-package-info-insert-location): New
      procedure.
      (guix-package-info-format): Use it.
      (guix-output-info-format): Likewise.
      690c055b
    • Alex Kost's avatar
      emacs: Add interface for package locations. · b4b9975d
      Alex Kost authored
      * emacs/guix-main.scm (%package-location-param-alist): New variable.
      (package-location->sexp, package-location-entries): New procedures.
      * emacs/guix-ui-location.el: New file.
      * emacs.am (ELFILES): Add it.
      * doc/emacs.texi (Emacs Package Locations): Document 'guix-locations'.
      * NEWS: Mention it.
      b4b9975d
    • Alex Kost's avatar
      emacs: Make 'guix-find-location' interactive. · e81a89d1
      Alex Kost authored
      * emacs/guix-location.el (guix-find-location): Make interactive.  Adjust
        to handle "reduced" locations (without line and column numbers).
      e81a89d1
    • Alex Kost's avatar
      emacs: Display message if license not found. · 8934c3b6
      Alex Kost authored
      * emacs/guix-ui-license.el (guix-license-message): New procedure.
      (guix-license-info-message-function): Use it.
      (guix-license-list-message-function): Likewise.
      8934c3b6
    • Alex Kost's avatar
      emacs: Separate package license code. · 27986d7b
      Alex Kost authored
      Move list/info interface code from "guix-license.el" to
      "guix-ui-license.el".
      
      * emacs/guix-license.el (guix-license-get-entries, guix-license-get-display)
      (guix-license-insert-packages-button, guix-license-insert-comment)
      (guix-licenses): Move to...
      * emacs/guix-ui-license.el: ... here.  New file.
      * emacs.am (ELFILES): Add it.
      27986d7b
    • Alex Kost's avatar
      emacs: Separate package location code. · 79c7a8f2
      Alex Kost authored
      * emacs/guix-base.el (guix-directory, guix-read-directory)
      (guix-set-directory): Move to "guix-backend.el".
      (guix-find-location, guix-package-location, guix-edit): Move to...
      * emacs/guix-location.el: ... here.  New file.
      * emacs/guix-ui-package.el: Use it.
      * emacs.am (ELFILES): Add it.
      79c7a8f2
    • Alex Kost's avatar
      emacs: Add 'guix-packages-by-location' command. · b4ea535a
      Alex Kost authored
      
      * emacs/guix-main.scm (packages-by-location-file, package-location-files):
      New procedures.
      (%patterns-makers): Add 'location' search type.
      * emacs/guix-messages.el (guix-message-packages-by-location): New procedure.
      (guix-messages): Use it.
      * emacs/guix-read.el (guix-package-locations)
      (guix-read-package-location): New procedures.
      * emacs/guix-ui-package.el (guix-packages-by-location): New command.
      * doc/emacs.texi (Emacs Commands): Document it.
      
      Co-authored-by: default avatarLudovic Courtès <ludo@gnu.org>
      b4ea535a
  3. Apr 15, 2016
    • Alex Kost's avatar
      emacs: Use full profile name in Guix buffer names. · 117195c2
      Alex Kost authored
      * emacs/guix-ui.el (guix-ui-buffer-name-default): Rename to...
      (guix-ui-buffer-name-short): ... this.
      (guix-ui-buffer-name-full): New procedure.
      (guix-ui-buffer-name-function): Set it as default.
      117195c2
    • Alex Kost's avatar
      emacs: Factorize code for buffer names. · 6ea80938
      Alex Kost authored
      * emacs/guix-ui.el (guix-ui-buffer-name-default): Extract the code to
        compose buffer name and move to...
      * emacs/guix-utils.el (guix-compose-buffer-name): ... here.  New procedure.
      6ea80938
  4. Apr 04, 2016
  5. Mar 24, 2016
    • Alex Kost's avatar
      emacs: Deprecate "guix-init.el". · ff4455e6
      Alex Kost authored
      'guix-init' served 2 purposes:
      
      - to autoload guix commands (by requiring 'guix-autoloads');
      - and to autoload Emacs packages installed with Guix (by requiring
        'guix-emacs').
      
      The second purpose is not actual anymore, as Emacs package handles this
      task now, so there is no need in 'guix-init' anymore.
      
      * emacs/guix-init.el: Do not require 'guix-emacs'.  Add a deprecation
        message.
      * doc/emacs.texi (Emacs Initial Setup): Recommend to use
        'guix-autoloads' instead of 'guix-init'.
      ff4455e6
  6. Mar 23, 2016
  7. Mar 08, 2016
  8. Mar 04, 2016
    • Alex Kost's avatar
      emacs: Use '@' to separate package names and version numbers. · db0c709b
      Alex Kost authored
      This is a followup to commit 1b846da8.
      
      * emacs/guix-base.el (guix-package-name-specification): Use "@" instead
      of "-".
      * emacs/guix-main.scm (name+version->full-name): Likewise.
      (package-inputs-names): Use 'make-package-specification' instead of
      'package-full-name'.
      (full-name->name+version): Update the docstring.
      * emacs/guix-ui-package.el (guix-packages-by-name): Likewise.
      db0c709b
    • Alex Kost's avatar
      emacs: hydra: Use '-' to separate job names and version numbers. · b8fa5a2a
      Alex Kost authored
      * emacs/guix-hydra.el (guix-hydra-job-name-specification): New procedure.
      * emacs/guix-ui-package.el (guix-package-info-insert-systems)
      (guix-package-list-latest-builds): Use it.
      b8fa5a2a
  9. Feb 24, 2016
  10. Feb 22, 2016
    • Alex Kost's avatar
      emacs: Do not allow a user to modify system profiles. · 260795b7
      Alex Kost authored
      Fixes <http://bugs.gnu.org/22607>.
      Reported by myglc2 <myglc2@gmail.com>.
      
      Remove possibilities to install/delete packages to/from a system profile
      both for "Package List" and "Package Info" buffers.
      
      * emacs/guix-profiles.el (guix-system-profile-regexp): New variable.
      (guix-system-profile?): New procedure.
      * emacs/guix-ui-package.el (guix-package-info-insert-output): Do not
      display "Install"/"Delete" button for a system profile.
      (guix-package-assert-non-system-profile): New procedure.
      (guix-package-execute-actions): Use it.
      260795b7
    • Alex Kost's avatar
      emacs: Set 'guix-buffer-item' before displaying entries. · 0338132e
      Alex Kost authored
      * emacs/guix-buffer.el (guix-buffer-set): Set 'guix-buffer-item' early,
        so that it can be used during displaying entries.  For example, this
        allows us to use a value of the current guix profile when package
        entries are inserted in a "List" or "Info" buffer.
      0338132e
    • Alex Kost's avatar
      emacs: Add 'M-x guix-installed-{user/system}-packages'. · cfb1c62a
      Alex Kost authored
      * emacs/guix-ui-package.el (guix-installed-user-packages)
      (guix-installed-system-packages): New commands.
      * doc/emacs.texi (Emacs Commands): Document them.
      cfb1c62a
  11. Feb 18, 2016
  12. Feb 09, 2016
    • Alex Kost's avatar
      emacs: 'C-u M-x guix-edit' prompts for directory. · 2c04e2ee
      Alex Kost authored
      * emacs/guix-base.el (guix-read-directory): New procedure.
      (guix-find-location, guix-edit): Add optional 'directory' argument.
      * emacs/guix-ui-package.el (guix-package-list-edit)
      (guix-output-list-edit): Likewise.
      * doc/emacs.texi (Emacs Commands): Mention "C-u".
      2c04e2ee
  13. Feb 07, 2016
    • Alex Kost's avatar
      emacs: Find Emacs packages in a system profile. · 004ea629
      Alex Kost authored
      Fixes <http://bugs.gnu.org/22550>.
      Reported by myglc2 <myglc2@gmail.com>.
      
      * emacs/guix-emacs.el (guix-emacs-autoload-packages): Autoload Emacs
        packages installed in a system profile.
      004ea629
    • Alex Kost's avatar
      emacs: Move the code to load Emacs packages after installing. · 09b63456
      Alex Kost authored
      This code should belong to "guix-backend" as it is run after a REPL
      operation to check if new Emacs packages have been installed and to
      autoload them if needed.
      
      * emacs/guix-emacs.el (guix-emacs-activate-after-operation)
      (guix-emacs-load-autoloads-maybe): Move and rename to...
      * emacs/guix-backend.el (guix-emacs-activate-after-operation)
      (guix-repl-autoload-emacs-packages-maybe): ... this.
      (guix-after-repl-operation-hook): Adjust for the renaming.
      09b63456
    • Alex Kost's avatar
      emacs: Factorize searching for Emacs packages. · abea77e3
      Alex Kost authored
      * emacs/guix-emacs.el: (guix-emacs-directories): New procedure.
      (guix-emacs-find-autoloads-in-directory): Rename to...
      (guix-emacs-find-autoloads): ... this.
      (guix-emacs-load-autoloads): Remove.  Replace with...
      (guix-emacs-autoload-packages): ... this.  New procedure.  At first,
      find a list of directories with Emacs packages, then add them to
      'load-path' and finally, load autoloads.
      * doc/emacs.texi (Emacs Initial Setup): Adjust accordingly.
      abea77e3
  14. Feb 04, 2016
    • Alex Kost's avatar
      emacs: Add missing (require 'guix-profiles). · e20f051e
      Alex Kost authored
      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 e4e21546
      and 13fe4891, 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.
      e20f051e
  15. Feb 01, 2016
  16. Jan 29, 2016
    • Alex Kost's avatar
      guix system: Rename 'dmd-graph' to 'shepherd-graph'. · 710fa231
      Alex Kost authored
      * doc/images/dmd-graph.dot: Rename to...
      * doc/images/shepherd-graph.dot: ... this.
      * doc.am (DOT_FILES): Adjust accordingly.
      * guix/scripts/system.scm (dmd-service-node-label)
        (dmd-service-node-type, export-dmd-graph): Rename to...
        (shepherd-service-node-label, shepherd-service-node-type)
        (export-shepherd-graph): ... this.
        (show-help, process-action, process-command): Rename 'dmd-graph' to
        'shepherd-graph'.
      * emacs/guix-command.el (guix-command-additional-execute-arguments)
        (guix-command-special-executors): Likewise.
      * doc/guix.texi: Likewise.
      * doc/emacs.texi (Emacs Popup Interface): Likewise.
      710fa231
  17. Jan 25, 2016
    • Alex Kost's avatar
      emacs: Add interface for licenses. · 687c9bc0
      Alex Kost authored
      * emacs/guix-main.scm (%license-param-alist): New variable.
        (license->sexp, find-licenses, license-entries): New procedures.
      * emacs/guix-license.el (guix-license-get-entries)
        (guix-license-get-display, guix-license-insert-packages-button)
        (guix-license-insert-comment, guix-license-list-describe)
        (guix-license-list-show-packages): New procedures.
        (guix-licenses): New command.
      * doc/emacs.texi (Emacs Licenses): New node.
        (Emacs Interface): Add it.
      * doc/guix.texi (Top): Add it.
      * NEWS: Mention new interface.
      687c9bc0
    • Alex Kost's avatar
      emacs: list: Support displaying URL links. · 6dd460c8
      Alex Kost authored
      * emacs/guix-list.el (guix-list-url): New face.
        (guix-list-get-url): New procedure.
      6dd460c8
    • Alex Kost's avatar
      emacs: Add 'guix-packages-by-license' command. · 83aab70b
      Alex Kost authored
      * emacs/guix-main.scm (packages-by-license): New procedure.
      (%patterns-makers): Add 'license' search type.
      * emacs/guix-messages.el (guix-message-packages-by-license): New procedure.
      (guix-messages): Use it.
      * emacs/guix-ui-package.el (guix-packages-by-license): New command.
      * doc/emacs.texi (Emacs Commands): Document it.
      83aab70b
    • Alex Kost's avatar
      emacs: Buttonize licenses in "Package Info". · cefb7aea
      Alex Kost authored
      * emacs/guix-ui-package.el (guix-package-license): New button type.
        (guix-package-info-format, guix-output-info-format): Use it.
      * doc/emacs.texi (Emacs Info buffer): Mention it.
      cefb7aea
    • Alex Kost's avatar
      emacs: Add 'guix-browse-license-url' command. · 71310ccc
      Alex Kost authored
      * emacs/guix-main.scm (%licenses): New variable.
      (licenses, license-names, lookup-license, lookup-license-uri): New
      procedures.
      * emacs/guix-read.el (guix-license-names, guix-read-license-name): New
      procedures.
      * emacs/guix-license.el: New file.
      (guix-lookup-license-url): New procedure.
      (guix-browse-license-url): New command.
      * emacs.am (ELFILES): Add new file.
      71310ccc
    • Alex Kost's avatar
      emacs: Rename 'file-path' to 'file-name'. · 0a2a2b33
      Alex Kost authored
      * emacs/guix-info.el (guix-info-file-path): Rename to...
        (guix-info-file-name): ... this.
      * emacs/guix-list.el (guix-list-file-path): Rename to...
        (guix-list-file-name): ... this.
        (guix-list-get-file-path): Rename to...
        (guix-list-get-file-name): ... this.
      * emacs/guix-ui-generation.el (guix-generation-list-format): Adjust
        accordingly.
      * emacs/guix-ui-system-generation.el (guix-system-generation-list-format):
        Likewise.
      * NEWS: Mention faces renaming.
      0a2a2b33
Loading