aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1996-12-07 22:19:50 +0000
committerRichard M. Stallman1996-12-07 22:19:50 +0000
commit951e04271194c6274ab925a10464391dcc26a638 (patch)
tree7b5601a300e2b1b3fcae050538018462c8fb043d /lisp
parent590571980ed1a8f415c927fd7c728f1e2fa11fb6 (diff)
downloademacs-951e04271194c6274ab925a10464391dcc26a638.tar.gz
emacs-951e04271194c6274ab925a10464391dcc26a638.zip
(mouse-drag-mode-line): Don't get error
about sole window, if we don't actually try to change the size.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mouse.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index c96a2aaca54..d45c04cd9df 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -198,9 +198,7 @@ This command must be bound to a mouse click."
198 should-enlarge-minibuffer 198 should-enlarge-minibuffer
199 event mouse minibuffer y top bot edges wconfig params growth) 199 event mouse minibuffer y top bot edges wconfig params growth)
200 (setq params (frame-parameters)) 200 (setq params (frame-parameters))
201 (if (and (not (setq minibuffer (cdr (assq 'minibuffer params)))) 201 (setq minibuffer (cdr (assq 'minibuffer params)))
202 (one-window-p t))
203 (error "Attempt to resize sole window"))
204 (track-mouse 202 (track-mouse
205 (progn 203 (progn
206 ;; enlarge-window only works on the selected window, so 204 ;; enlarge-window only works on the selected window, so
@@ -256,6 +254,11 @@ This command must be bound to a mouse click."
256 ;; compute size change needed 254 ;; compute size change needed
257 (setq growth (- y bot -1) 255 (setq growth (- y bot -1)
258 wconfig (current-window-configuration)) 256 wconfig (current-window-configuration))
257 ;; Check for an error case.
258 (if (and (/= growth 0)
259 (not minibuffer)
260 (one-window-p t))
261 (error "Attempt to resize sole window"))
259 ;; grow/shrink minibuffer? 262 ;; grow/shrink minibuffer?
260 (if should-enlarge-minibuffer 263 (if should-enlarge-minibuffer
261 (progn 264 (progn