[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
20/20: emacs: Use popup interface instead 'guix-pull' command.
From: |
Alex Kost |
Subject: |
20/20: emacs: Use popup interface instead 'guix-pull' command. |
Date: |
Tue, 18 Aug 2015 09:41:15 +0000 |
alezost pushed a commit to branch wip-emacs-popup-ui
in repository guix.
commit 239298439dc17e69703e3aab64fe142896bd576d
Author: Alex Kost <address@hidden>
Date: Tue Aug 18 11:32:42 2015 +0300
emacs: Use popup interface instead 'guix-pull' command.
* emacs/guix-base.el (guix-pull): Remove.
* doc/emacs.texi (Emacs Commands): Adjust accordingly.
* emacs/guix-main.scm: Do not use (guix scripts pull) module.
---
doc/emacs.texi | 12 ------------
emacs/guix-base.el | 16 +++-------------
emacs/guix-main.scm | 1 -
3 files changed, 3 insertions(+), 26 deletions(-)
diff --git a/doc/emacs.texi b/doc/emacs.texi
index e57cd1c..2099e6b 100644
--- a/doc/emacs.texi
+++ b/doc/emacs.texi
@@ -186,17 +186,6 @@ date/time prompt,,, org, The Org Manual}).
@end table
-You can also invoke the @command{guix pull} command (@pxref{Invoking
-guix pull}) from Emacs using:
-
address@hidden @kbd
address@hidden M-x guix-pull
-With @kbd{C-u}, make it verbose.
address@hidden table
-
-Once @command{guix pull} has succeeded, the Guix REPL is restared. This
-allows you to keep using the Emacs interface with the updated Guix.
-
@node Emacs General info
@subsection General information
@@ -350,7 +339,6 @@ emacs, The GNU Emacs Manual}) which can be used to:
It is also possible to copy a button label (a link to an URL or a file)
by pressing @kbd{c} on a button.
-
@node Emacs Configuration
@subsection Configuration
diff --git a/emacs/guix-base.el b/emacs/guix-base.el
index aa099b4..7e13787 100644
--- a/emacs/guix-base.el
+++ b/emacs/guix-base.el
@@ -1146,16 +1146,16 @@ The function is called with a single argument - a
command line string."
;;; Pull
(defcustom guix-update-after-pull t
- "If non-nil, update Guix buffers after performing \\[guix-pull]."
+ "If non-nil, update Guix buffers after '\\[guix] pull'."
:type 'boolean
:group 'guix)
(defvar guix-after-pull-hook
'(guix-restart-repl-after-pull guix-update-buffers-maybe-after-pull)
- "Hook run after successful performing `guix-pull' operation.")
+ "Hook run after successful performing 'guix pull' operation.")
(defun guix-restart-repl-after-pull ()
- "Restart Guix REPL after `guix-pull' operation."
+ "Restart Guix REPL after 'guix pull' operation."
(guix-repl-exit)
(guix-start-process-maybe
"Restarting Guix REPL after pull operation ..."))
@@ -1171,16 +1171,6 @@ The function is called with a single argument - a
command line string."
guix-output-info-mode)))
(message "Guix buffers have been updated.")))
-;;;###autoload
-(defun guix-pull (&optional verbose)
- "Run Guix pull operation.
-If VERBOSE is non-nil (with prefix argument), produce verbose output."
- (interactive)
- (let ((args (and verbose '("--verbose"))))
- (guix-eval-in-repl
- (apply #'guix-make-guile-expression 'guix-pull args)
- nil 'pull)))
-
(provide 'guix-base)
;;; guix-base.el ends here
diff --git a/emacs/guix-main.scm b/emacs/guix-main.scm
index 692a06e..6371c5e 100644
--- a/emacs/guix-main.scm
+++ b/emacs/guix-main.scm
@@ -59,7 +59,6 @@
(guix ui)
(guix scripts lint)
(guix scripts package)
- (guix scripts pull)
(gnu packages))
(define-syntax-rule (first-or-false lst)
- 04/20: emacs: Add and use 'guix-while-search'., (continued)
- 04/20: emacs: Add and use 'guix-while-search'., Alex Kost, 2015/08/18
- 06/20: emacs: Add utils to make symbol and string for guix command., Alex Kost, 2015/08/18
- 08/20: emacs: Add 'guix-any'., Alex Kost, 2015/08/18
- 09/20: emacs: Add 'guix-memoized-defalias' macro., Alex Kost, 2015/08/18
- 13/20: ui: Add 'run-guix'., Alex Kost, 2015/08/18
- 02/20: emacs: Add 'guix-lint-checker-names'., Alex Kost, 2015/08/18
- 14/20: emacs: Add code to run guix command in REPL., Alex Kost, 2015/08/18
- 10/20: emacs: Add help variables., Alex Kost, 2015/08/18
- 07/20: emacs: Add utils to copy guix command., Alex Kost, 2015/08/18
- 15/20: emacs: Add code to run guix command in shell., Alex Kost, 2015/08/18
- 20/20: emacs: Use popup interface instead 'guix-pull' command.,
Alex Kost <=
- 11/20: emacs: Add minibuffer readers., Alex Kost, 2015/08/18
- 16/20: doc: Reorganize "Emacs Interface" node., Alex Kost, 2015/08/18
- 17/20: emacs: Add "guix-popup.el"., Alex Kost, 2015/08/18
- 12/20: emacs: Add and use alist accessors., Alex Kost, 2015/08/18
- 19/20: emacs: Use prompt for packages instead popup for edit action., Alex Kost, 2015/08/18
- 18/20: emacs: Add popup interface for guix commands., Alex Kost, 2015/08/18