notmuch.el: Don't use beginning-of-buffer from elisp program.
authorCarl Worth <cworth@cworth.org>
Mon, 30 Nov 2009 17:48:15 +0000 (09:48 -0800)
committerCarl Worth <cworth@cworth.org>
Mon, 30 Nov 2009 17:48:15 +0000 (09:48 -0800)
This silences a warning when compiling notmuch.el. The documentation
of beginning-of-buffer does say (rather emphatically) that it's not
to be used from lisp programs.

notmuch.el

index 65473ba70911fd0ab5bdc6e0f2e05b71dd72b2a9..9b23e3511fbd789e8aaca6ed9c374826b57e475f 100644 (file)
@@ -877,7 +877,7 @@ thread from that buffer can be show when done with this one)."
                           (setq btn (forward-button 1))
                         (error (setq btn nil)))
                     ))
-                  (beginning-of-buffer)
+                  (goto-char (point-min))
                   ))))
       )))