aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-25 04:20:12 +0000
committerRichard M. Stallman1998-05-25 04:20:12 +0000
commitc520265ed4cf880773715c2065be66b1e024ea06 (patch)
treee1198377308e429911011efadf24415979197e2f /src
parent32fbd2a380261e66e552f6f07e3a456024902816 (diff)
downloademacs-c520265ed4cf880773715c2065be66b1e024ea06.tar.gz
emacs-c520265ed4cf880773715c2065be66b1e024ea06.zip
(Fdelete_windows_on): For FRAME, change t to nil
and nil to t, but don't change other values.
Diffstat (limited to 'src')
-rw-r--r--src/window.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/window.c b/src/window.c
index 817eb9fdc5b..50541f094db 100644
--- a/src/window.c
+++ b/src/window.c
@@ -1642,17 +1642,20 @@ DEFUN ("delete-windows-on", Fdelete_windows_on, Sdelete_windows_on,
1642 1, 2, "bDelete windows on (buffer): ", 1642 1, 2, "bDelete windows on (buffer): ",
1643 "Delete all windows showing BUFFER.\n\ 1643 "Delete all windows showing BUFFER.\n\
1644Optional second argument FRAME controls which frames are affected.\n\ 1644Optional second argument FRAME controls which frames are affected.\n\
1645If nil or omitted, delete all windows showing BUFFER in any frame.\n\ 1645If optional argument FRAME is `visible', search all visible frames.\n\
1646If t, delete only windows showing BUFFER in the selected frame.\n\ 1646If FRAME is 0, search all visible and iconified frames.\n\
1647If `visible', delete all windows showing BUFFER in any visible frame.\n\ 1647If FRAME is nil, search all frames.\n\
1648If a frame, delete only windows showing BUFFER in that frame.") 1648If FRAME is t, search only the selected frame.\n\
1649If FRAME is a frame, search only that frame.")
1649 (buffer, frame) 1650 (buffer, frame)
1650 Lisp_Object buffer, frame; 1651 Lisp_Object buffer, frame;
1651{ 1652{
1652 /* FRAME uses t and nil to mean the opposite of what window_loop 1653 /* FRAME uses t and nil to mean the opposite of what window_loop
1653 expects. */ 1654 expects. */
1654 if (! FRAMEP (frame)) 1655 if (NILP (frame))
1655 frame = NILP (frame) ? Qt : Qnil; 1656 frame = Qt;
1657 else if (EQ (frame, Qt))
1658 frame = Qnil;
1656 1659
1657 if (!NILP (buffer)) 1660 if (!NILP (buffer))
1658 { 1661 {