]> code.delx.au - gnu-emacs/commitdiff
Put point at beginning of display-time-world buffer.
authorMark Oteiza <mvoteiza@udel.edu>
Thu, 19 May 2016 23:01:08 +0000 (19:01 -0400)
committerMark Oteiza <mvoteiza@udel.edu>
Thu, 19 May 2016 23:01:08 +0000 (19:01 -0400)
If display-time-world decides to popup vertically from the bottom of the
frame and scroll-margin is nonzero, the top of the buffer contents are
hidden due to scroll.
* lisp/time.el (display-time-world-display): Move point to point-min
after inserting contents.

lisp/time.el

index ba5792441c4e617fe059f2a96031c23d31b241fc..651dd56779b2496337913d41053d9fbe55df840d 100644 (file)
@@ -535,7 +535,8 @@ See `display-time-world'."
     (setq fmt (concat "%-" (int-to-string max-width) "s %s\n"))
     (dolist (timedata (nreverse result))
       (insert (format fmt (car timedata) (cdr timedata))))
-    (delete-char -1)))
+    (delete-char -1))
+  (goto-char (point-min)))
 
 ;;;###autoload
 (defun display-time-world ()