]> git.notmuchmail.org Git - notmuch/commitdiff
Use forward-line instead of next-line
authorCarl Worth <cworth@cworth.org>
Fri, 5 Feb 2010 19:14:25 +0000 (11:14 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 5 Feb 2010 19:31:38 +0000 (11:31 -0800)
We do this all the time, but at least emacs is kind enough to remind us,
(when compiling), that next-line is only intended for interactive use,
and we should use forward-line inside of lisp code.

notmuch.el

index e8a9b78fb7fefb87f88031ed33c65d6163cb9192..c2e0899e5c8e7a1787c179439a530a6952127423 100644 (file)
@@ -595,7 +595,7 @@ which this thread was originally shown."
   (interactive)
   (save-excursion
     (notmuch-show-move-to-current-message-summary-line)
   (interactive)
   (save-excursion
     (notmuch-show-move-to-current-message-summary-line)
-    (next-line)
+    (forward-line)
     (unless (button-at (point))
       (notmuch-show-next-button))
     (push-button))
     (unless (button-at (point))
       (notmuch-show-next-button))
     (push-button))