Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a0c859f0
Commit
a0c859f0
authored
Nov 17, 2008
by
Martin Rudalics
Browse files
(quit-window): Bind window to selected window when
trying to delete it.
parent
79f0fbcf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/window.el
lisp/window.el
+2
-1
No files found.
lisp/ChangeLog
View file @
a0c859f0
2008-11-17 Martin Rudalics <rudalics@gmx.at>
* window.el (quit-window): Bind window to selected window when
trying to delete it.
2008-11-17 Glenn Morris <rgm@gnu.org>
* progmodes/cc-defs.el (c-put-char-property-fun): Add fallback
...
...
lisp/window.el
View file @
a0c859f0
...
...
@@ -1437,7 +1437,8 @@ Otherwise, bury WINDOW's buffer, see `bury-buffer'."
(window-dedicated-p window))
;; WINDOW is either non-nil, a minibuffer window, or dedicated;
;; try to delete it.
(let ((frame (window-frame (or window (selected-window)))))
(let* ((window (or window (selected-window)))
(frame (window-frame window)))
(if (eq window (frame-root-window frame))
;; WINDOW is alone on its frame. `delete-windows-on'
;; knows how to handle that case.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment