emacs: Restore mode-line after operation prompt.
* emacs/guix-base.el (guix-operation-prompt): Restore 'mode-line-format' after prompting.master
parent
5614921754
commit
7be25d4af0
|
@ -928,7 +928,7 @@ ENTRIES is a list of package entries to get info about packages."
|
||||||
(insert "\n")))
|
(insert "\n")))
|
||||||
|
|
||||||
(defun guix-operation-prompt ()
|
(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."
|
Return non-nil, if the operation should be continued; nil otherwise."
|
||||||
(let* ((option-keys (mapcar #'guix-operation-option-key
|
(let* ((option-keys (mapcar #'guix-operation-option-key
|
||||||
guix-operation-options))
|
guix-operation-options))
|
||||||
|
@ -943,9 +943,11 @@ Return non-nil, if the operation should be continued; nil otherwise."
|
||||||
keys
|
keys
|
||||||
", ")
|
", ")
|
||||||
") ")))
|
") ")))
|
||||||
(prog1 (guix-operation-prompt-1 prompt keys)
|
(let ((mode-line mode-line-format))
|
||||||
;; Clear the minibuffer after prompting.
|
(prog1 (guix-operation-prompt-1 prompt keys)
|
||||||
(message ""))))
|
(setq mode-line-format mode-line)
|
||||||
|
;; Clear the minibuffer after prompting.
|
||||||
|
(message "")))))
|
||||||
|
|
||||||
(defun guix-operation-prompt-1 (prompt keys)
|
(defun guix-operation-prompt-1 (prompt keys)
|
||||||
"This function is internal for `guix-operation-prompt'."
|
"This function is internal for `guix-operation-prompt'."
|
||||||
|
|
Reference in New Issue