Mercurial > emacs
changeset 16636:ba78d234fe6c
(mouse-drag-mode-line): Don't get error
about sole window, if we don't actually try to change the size.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 07 Dec 1996 22:19:50 +0000 |
parents | 1b774e82752f |
children | 960c425726cb |
files | lisp/mouse.el |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/mouse.el Sat Dec 07 22:17:50 1996 +0000 +++ b/lisp/mouse.el Sat Dec 07 22:19:50 1996 +0000 @@ -198,9 +198,7 @@ should-enlarge-minibuffer event mouse minibuffer y top bot edges wconfig params growth) (setq params (frame-parameters)) - (if (and (not (setq minibuffer (cdr (assq 'minibuffer params)))) - (one-window-p t)) - (error "Attempt to resize sole window")) + (setq minibuffer (cdr (assq 'minibuffer params))) (track-mouse (progn ;; enlarge-window only works on the selected window, so @@ -256,6 +254,11 @@ ;; compute size change needed (setq growth (- y bot -1) wconfig (current-window-configuration)) + ;; Check for an error case. + (if (and (/= growth 0) + (not minibuffer) + (one-window-p t)) + (error "Attempt to resize sole window")) ;; grow/shrink minibuffer? (if should-enlarge-minibuffer (progn