If the user confirms, optionally save BUFFER that is about to be
killed."
(let ((response
- (cadr
+ (car
(read-multiple-choice
(format "Buffer %s modified; kill anyway?"
(buffer-name))
(?s "save and then kill" "save the buffer and then kill it"))
nil nil (and (not use-short-answers)
(not (use-dialog-box-p)))))))
- (if (equal response "no")
- nil
- (unless (equal response "yes")
+ (unless (= response ?n)
+ (when (= response ?s)
(with-current-buffer buffer
(save-buffer)))
t)))