diff options
| author | Mark Oteiza | 2016-05-19 19:01:08 -0400 |
|---|---|---|
| committer | Mark Oteiza | 2016-05-19 19:01:08 -0400 |
| commit | 970074470d7bc332fc36fd30feee93e1d6130177 (patch) | |
| tree | 232843aac244c884aaf680f69dcb8d3b9cae1541 | |
| parent | e8a28b295fabbc249c5123b58fcf2beb82f08da2 (diff) | |
| download | emacs-970074470d7bc332fc36fd30feee93e1d6130177.tar.gz emacs-970074470d7bc332fc36fd30feee93e1d6130177.zip | |
Put point at beginning of display-time-world buffer.
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.
| -rw-r--r-- | lisp/time.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/time.el b/lisp/time.el index ba5792441c4..651dd56779b 100644 --- a/lisp/time.el +++ b/lisp/time.el | |||
| @@ -535,7 +535,8 @@ See `display-time-world'." | |||
| 535 | (setq fmt (concat "%-" (int-to-string max-width) "s %s\n")) | 535 | (setq fmt (concat "%-" (int-to-string max-width) "s %s\n")) |
| 536 | (dolist (timedata (nreverse result)) | 536 | (dolist (timedata (nreverse result)) |
| 537 | (insert (format fmt (car timedata) (cdr timedata)))) | 537 | (insert (format fmt (car timedata) (cdr timedata)))) |
| 538 | (delete-char -1))) | 538 | (delete-char -1)) |
| 539 | (goto-char (point-min))) | ||
| 539 | 540 | ||
| 540 | ;;;###autoload | 541 | ;;;###autoload |
| 541 | (defun display-time-world () | 542 | (defun display-time-world () |