diff options
| author | Eli Zaretskii | 2006-02-04 12:19:27 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2006-02-04 12:19:27 +0000 |
| commit | 62ffcd76a94fd453bede61d63d50d697da6f518f (patch) | |
| tree | 6c5725be00dc819d76cb06ceff003a24c06aff8e | |
| parent | 4a99f153c4f529f8bc531dce406440b6bf10ce10 (diff) | |
| download | emacs-62ffcd76a94fd453bede61d63d50d697da6f518f.tar.gz emacs-62ffcd76a94fd453bede61d63d50d697da6f518f.zip | |
(display-message-or-buffer): Count screen lines instead of buffer lines when
determining whether the message will fit in the echo area/minibuffer window.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/simple.el | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b01328b58bf..d91434f318e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2006-02-04 Kevin Rodgers <ihs_4664@yahoo.com> | ||
| 2 | |||
| 3 | * simple.el (display-message-or-buffer): Count screen lines | ||
| 4 | instead of buffer lines when determining whether the message | ||
| 5 | will fit in the echo area/minibuffer window. | ||
| 6 | |||
| 1 | 2006-02-04 Eli Zaretskii <eliz@gnu.org> | 7 | 2006-02-04 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * info.el (Info-index, Info-mode): Improve the description of the | 9 | * info.el (Info-index, Info-mode): Improve the description of the |
diff --git a/lisp/simple.el b/lisp/simple.el index d0fecbc3586..9ca1cf2c9f3 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -1922,7 +1922,7 @@ and only used if a buffer is displayed." | |||
| 1922 | (let ((lines | 1922 | (let ((lines |
| 1923 | (if (= (buffer-size) 0) | 1923 | (if (= (buffer-size) 0) |
| 1924 | 0 | 1924 | 0 |
| 1925 | (count-lines (point-min) (point-max))))) | 1925 | (count-screen-lines nil nil nil (minibuffer-window))))) |
| 1926 | (cond ((= lines 0)) | 1926 | (cond ((= lines 0)) |
| 1927 | ((and (or (<= lines 1) | 1927 | ((and (or (<= lines 1) |
| 1928 | (<= lines | 1928 | (<= lines |