]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-show.el
emacs: globally replace non-branching "(if COND (progn ..." with "(when ..."
[notmuch] / emacs / notmuch-show.el
index 6d410574d497f6a8e58eabceec580dab350bc54a..0a945ea048a3b8535b8881084616242b09549943 100644 (file)
@@ -1364,11 +1364,10 @@ any effects from previous calls to
       ;; If a small number of lines from the previous message are
       ;; visible, realign so that the top of the current message is at
       ;; the top of the screen.
-      (if (<= (count-screen-lines (window-start) start-of-message)
-             next-screen-context-lines)
-         (progn
-           (goto-char (notmuch-show-message-top))
-           (notmuch-show-message-adjust)))
+      (when (<= (count-screen-lines (window-start) start-of-message)
+               next-screen-context-lines)
+       (goto-char (notmuch-show-message-top))
+       (notmuch-show-message-adjust))
       ;; Move to the top left of the window.
       (goto-char (window-start)))
      (t
@@ -1431,7 +1430,7 @@ buffer."
        (goto-char (point-max))))))
 
 (defun notmuch-show-previous-open-message ()
-  "Show the previous message."
+  "Show the previous open message."
   (interactive)
   (while (and (notmuch-show-goto-message-previous)
              (not (notmuch-show-message-visible-p))))