(defun epa--temp-buffer-show-function (buffer)
(save-selected-window
- (let ((window (or (get-buffer-window epa-info-buffer)
+ (let ((window (or (get-buffer-window buffer)
(progn
(select-window (get-largest-window))
(split-window-vertically)))))
(let ((height (window-height)))
(if (> height epa-info-window-height)
(shrink-window (- height epa-info-window-height)))
- (set-window-start window (point-min))))))
+ (set-window-start window (point-min)))
+ (with-current-buffer buffer
+ (setq buffer-read-only t)))))
(defun epa-display-verify-result (verify-result)
(if epa-popup-info-window