guix/emacs
Alex Kost 6c40b7b703 emacs: Generalize buffer interface.
Extract the code for defining buffer interface from "guix-base.el",
generalize it and move to "guix-buffer.el".

* emacs.am (ELFILES): Add "emacs/guix-buffer.el".
* emacs/guix-base.el (guix-profile, guix-entries, guix-buffer-type)
  (guix-entry-type, guix-search-type, guix-search-vals, guix-set-vars)
  (guix-get-symbol, guix-show-entries, guix-get-show-entries)
  (guix-set-buffer, guix-history-call, guix-make-history-item)
  (guix-get-params-for-receiving): Remove.
  (guix-switch-to-buffer): Rename to 'guix-buffer-display' and move to
  "guix-buffer.el".
  (guix-get-entries): Rename to 'guix-ui-get-entries' and move to
  "guix-ui.el".
  (guix-buffer-data, guix-buffer-value, guix-buffer-param-title)
  (guix-buffer-name, guix-buffer-history-size)
  (guix-buffer-revert-confirm?, guix-buffer-map, guix-buffer-revert)
  (guix-buffer-after-redisplay-hook, guix-buffer-redisplay)
  (guix-buffer-redisplay-goto-button): Move to...
* emacs/guix-buffer.el: ... here.  New file.
  (guix-buffer-item): New variable.
  (guix-buffer-with-item, guix-buffer-with-current-item)
  (guix-buffer-define-current-item-accessor)
  (guix-buffer-define-current-item-accessors)
  (guix-buffer-define-current-args-accessor)
  (guix-buffer-define-current-args-accessors): New macros.
  (guix-buffer-get-entries, guix-buffer-mode-enable)
  (guix-buffer-mode-initialize, guix-buffer-insert-entries)
  (guix-buffer-show-entries-default, guix-buffer-show-entries)
  (guix-buffer-message, guix-buffer-history-item, guix-buffer-set)
  (guix-buffer-display-entries-current)
  (guix-buffer-get-display-entries-current)
  (guix-buffer-display-entries, guix-buffer-get-display-entries): New
  procedures.
* emacs/guix-info.el: Adjust for the procedures renaming.
  (guix-info-define-interface): Add ':show-entries-function' keyword.
* emacs/guix-list.el: Likewise.
* emacs/guix-ui.el (guix-ui-define-interface): Generate
  'guix-ENTRY-TYPE-BUFFER-TYPE-get-entries' procedure based on
  'guix-ui-get-entries'.
* emacs/guix.el (guix-get-show-packages, guix-get-show-generations):
  Adjust for the procedures renaming.
2016-01-02 17:25:35 +03:00
..
guix-backend.el emacs: Use socket instead of port. 2015-12-15 21:35:35 +03:00
guix-base.el emacs: Generalize buffer interface. 2016-01-02 17:25:35 +03:00
guix-buffer.el emacs: Generalize buffer interface. 2016-01-02 17:25:35 +03:00
guix-build-log.el emacs: Add 'guix-build-log-find-file'. 2015-12-09 19:54:19 +03:00
guix-command.el emacs: Use "cl-list*" instead of "apply #'list". 2016-01-02 17:25:35 +03:00
guix-config.el.in emacs: config: Use "emacs-config-" prefix for constants. 2015-10-20 16:47:05 +03:00
guix-devel.el services: Add 'modify-services'. 2015-10-28 21:58:25 +01:00
guix-emacs.el emacs: Handle compiled autoloads. 2015-12-11 14:34:03 +03:00
guix-entry.el emacs: Add API for 'guix-entry'. 2016-01-02 17:25:35 +03:00
guix-external.el emacs: Use "cl-list*" instead of "apply #'list". 2016-01-02 17:25:35 +03:00
guix-geiser.el emacs: Fix 'guix-devel-setup-repl'. 2015-10-09 16:17:45 +03:00
guix-guile.el emacs: Fix 'guix-devel-setup-repl'. 2015-10-09 16:17:45 +03:00
guix-help-vars.el emacs: Add help variables. 2015-08-30 18:26:02 +03:00
guix-helper.scm.in emacs: Add missing directory to the guile load path. 2014-11-26 23:07:16 +03:00
guix-history.el Add Emacs user interface. 2014-09-03 23:50:35 +04:00
guix-info.el emacs: Generalize buffer interface. 2016-01-02 17:25:35 +03:00
guix-init.el emacs: 'guix-emacs-load-autoloads' takes a profile. 2015-12-06 12:46:10 +03:00
guix-list.el emacs: Generalize buffer interface. 2016-01-02 17:25:35 +03:00
guix-main.scm emacs: 'node-type' is in (guix graph) now. 2015-12-15 21:35:35 +03:00
guix-messages.el emacs: Improve messages for packages found by ID. 2016-01-02 17:25:35 +03:00
guix-pcomplete.el emacs: Add shell completions for 'guix refresh --type'. 2015-10-31 23:21:23 +03:00
guix-popup.el emacs: Add "guix-popup.el". 2015-08-30 18:26:03 +03:00
guix-prettify.el emacs: Improve 'guix-prettify-regexp'. 2015-09-22 13:04:44 +03:00
guix-profiles.el emacs: config: Use "emacs-config-" prefix for constants. 2015-10-20 16:47:05 +03:00
guix-read.el emacs: Add 'guix-keyword-args-let'. 2016-01-02 17:25:35 +03:00
guix-ui.el emacs: Generalize buffer interface. 2016-01-02 17:25:35 +03:00
guix-utils.el emacs: info: Generalize inserting and formatting. 2016-01-02 17:25:35 +03:00
guix.el emacs: Generalize buffer interface. 2016-01-02 17:25:35 +03:00