summaryrefslogtreecommitdiff
path: root/emacs/guix-base.el
diff options
context:
space:
mode:
authorAlex Kost <alezost@gmail.com>2014-11-09 11:00:35 +0300
committerAlex Kost <alezost@gmail.com>2014-11-10 16:13:40 +0300
commit7be25d4af08226ab684e69d4f5b694910d81e452 (patch)
treec8458da7fc7d0dbab7a45b9777a67f062b1f7b32 /emacs/guix-base.el
parent56149217548cb2b31c0075ffe4adc89ce0362a12 (diff)
downloadpatches-7be25d4af08226ab684e69d4f5b694910d81e452.tar
patches-7be25d4af08226ab684e69d4f5b694910d81e452.tar.gz
emacs: Restore mode-line after operation prompt.
* emacs/guix-base.el (guix-operation-prompt): Restore 'mode-line-format' after prompting.
Diffstat (limited to 'emacs/guix-base.el')
-rw-r--r--emacs/guix-base.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/emacs/guix-base.el b/emacs/guix-base.el
index 3dda938065..784474e333 100644
--- a/emacs/guix-base.el
+++ b/emacs/guix-base.el
@@ -928,7 +928,7 @@ ENTRIES is a list of package entries to get info about packages."
(insert "\n")))
(defun guix-operation-prompt ()
- "Prompt a user for continuing the current package operation.
+ "Prompt a user for continuing the current operation.
Return non-nil, if the operation should be continued; nil otherwise."
(let* ((option-keys (mapcar #'guix-operation-option-key
guix-operation-options))
@@ -943,9 +943,11 @@ Return non-nil, if the operation should be continued; nil otherwise."
keys
", ")
") ")))
- (prog1 (guix-operation-prompt-1 prompt keys)
- ;; Clear the minibuffer after prompting.
- (message ""))))
+ (let ((mode-line mode-line-format))
+ (prog1 (guix-operation-prompt-1 prompt keys)
+ (setq mode-line-format mode-line)
+ ;; Clear the minibuffer after prompting.
+ (message "")))))
(defun guix-operation-prompt-1 (prompt keys)
"This function is internal for `guix-operation-prompt'."