aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKaroly Lorentey2004-07-24 22:08:12 +0000
committerKaroly Lorentey2004-07-24 22:08:12 +0000
commit15dabcb48a89496d128b7159fbb8d498b7cfbda6 (patch)
treeecead49e540dae176cbe47106d1b646c1796a020 /src
parent407e382d35ede779a23b974d7ac40a7d3d0fa5ff (diff)
parente4ed805e9d3b9f2019cb9376682bb53dafaf81fb (diff)
downloademacs-15dabcb48a89496d128b7159fbb8d498b7cfbda6.tar.gz
emacs-15dabcb48a89496d128b7159fbb8d498b7cfbda6.zip
Merged in changes from CVS trunk.
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-464 Update from CVS: lisp/progmodes/make-mode.el: Fix comments. * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-465 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-466 Update from CVS * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-467 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-221
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/frame.c18
-rw-r--r--src/xfns.c24
3 files changed, 43 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index e51cdf554ce..8d9d72de9d2 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12004-07-24 Richard M. Stallman <rms@gnu.org>
2
3 * xfns.c (x_icon_verify): New function.
4 (Fx_create_frame): Use it.
5
12004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change) 62004-07-22 Barry Fishman <barry_fishman@att.net> (tiny change)
2 7
3 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined. 8 * s/gnu-linux.h: Use GC_MARK_STACK if __amd64__ is defined.
diff --git a/src/frame.c b/src/frame.c
index 9a0563c6f76..1935df35508 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1,5 +1,5 @@
1/* Generic frame functions. 1/* Generic frame functions.
2 Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000, 2001, 2003 2 Copyright (C) 1993, 1994, 1995, 1997, 1999, 2000, 2001, 2003, 2004
3 Free Software Foundation. 3 Free Software Foundation.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
@@ -911,7 +911,12 @@ DEFUN ("select-frame", Fselect_frame, Sselect_frame, 1, 2, "e",
911Subsequent editing commands apply to its selected window. 911Subsequent editing commands apply to its selected window.
912The selection of FRAME lasts until the next time the user does 912The selection of FRAME lasts until the next time the user does
913something to select a different frame, or until the next time this 913something to select a different frame, or until the next time this
914function is called. */) 914function is called. If you are using a window system, the previously
915selected frame may be restored as the selected frame after return to
916the command loop, because it still may have the window system's input
917focus. On a text-only terminal, the next redisplay will display FRAME.
918
919This function returns FRAME, or nil if FRAME has been deleted. */)
915 (frame, no_enter) 920 (frame, no_enter)
916 Lisp_Object frame, no_enter; 921 Lisp_Object frame, no_enter;
917{ 922{
@@ -1039,6 +1044,7 @@ If omitted, FRAME defaults to the currently selected frame. */)
1039DEFUN ("set-frame-selected-window", Fset_frame_selected_window, 1044DEFUN ("set-frame-selected-window", Fset_frame_selected_window,
1040 Sset_frame_selected_window, 2, 2, 0, 1045 Sset_frame_selected_window, 2, 2, 0,
1041 doc: /* Set the selected window of frame object FRAME to WINDOW. 1046 doc: /* Set the selected window of frame object FRAME to WINDOW.
1047Return WINDOW.
1042If FRAME is nil, the selected frame is used. 1048If FRAME is nil, the selected frame is used.
1043If FRAME is the selected frame, this makes WINDOW the selected window. */) 1049If FRAME is the selected frame, this makes WINDOW the selected window. */)
1044 (frame, window) 1050 (frame, window)
@@ -1937,7 +1943,11 @@ DEFUN ("frame-visible-p", Fframe_visible_p, Sframe_visible_p,
1937 doc: /* Return t if FRAME is now \"visible\" (actually in use for display). 1943 doc: /* Return t if FRAME is now \"visible\" (actually in use for display).
1938A frame that is not \"visible\" is not updated and, if it works through 1944A frame that is not \"visible\" is not updated and, if it works through
1939a window system, it may not show at all. 1945a window system, it may not show at all.
1940Return the symbol `icon' if frame is visible only as an icon. */) 1946Return the symbol `icon' if frame is visible only as an icon.
1947
1948On a text-only terminal, all frames are considered visible, whether
1949they are currently being displayed or not, and this function returns t
1950for all frames. */)
1941 (frame) 1951 (frame)
1942 Lisp_Object frame; 1952 Lisp_Object frame;
1943{ 1953{
@@ -1977,7 +1987,7 @@ DEFUN ("visible-frame-list", Fvisible_frame_list, Svisible_frame_list,
1977 1987
1978DEFUN ("raise-frame", Fraise_frame, Sraise_frame, 0, 1, "", 1988DEFUN ("raise-frame", Fraise_frame, Sraise_frame, 0, 1, "",
1979 doc: /* Bring FRAME to the front, so it occludes any frames it overlaps. 1989 doc: /* Bring FRAME to the front, so it occludes any frames it overlaps.
1980If FRAME is invisible, make it visible. 1990If FRAME is invisible or iconified, make it visible.
1981If you don't specify a frame, the selected frame is used. 1991If you don't specify a frame, the selected frame is used.
1982If Emacs is displaying on an ordinary terminal or some other device which 1992If Emacs is displaying on an ordinary terminal or some other device which
1983doesn't support multiple overlapping frames, this function does nothing. */) 1993doesn't support multiple overlapping frames, this function does nothing. */)
diff --git a/src/xfns.c b/src/xfns.c
index 3f82966a4be..7963a910d14 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2643,6 +2643,28 @@ x_window (f)
2643#endif /* not USE_GTK */ 2643#endif /* not USE_GTK */
2644#endif /* not USE_X_TOOLKIT */ 2644#endif /* not USE_X_TOOLKIT */
2645 2645
2646/* Verify that the icon position args for this window are valid. */
2647
2648static void
2649x_icon_verify (f, parms)
2650 struct frame *f;
2651 Lisp_Object parms;
2652{
2653 Lisp_Object icon_x, icon_y;
2654
2655 /* Set the position of the icon. Note that twm groups all
2656 icons in an icon window. */
2657 icon_x = x_frame_get_and_record_arg (f, parms, Qicon_left, 0, 0, RES_TYPE_NUMBER);
2658 icon_y = x_frame_get_and_record_arg (f, parms, Qicon_top, 0, 0, RES_TYPE_NUMBER);
2659 if (!EQ (icon_x, Qunbound) && !EQ (icon_y, Qunbound))
2660 {
2661 CHECK_NUMBER (icon_x);
2662 CHECK_NUMBER (icon_y);
2663 }
2664 else if (!EQ (icon_x, Qunbound) || !EQ (icon_y, Qunbound))
2665 error ("Both left and top icon corners of icon must be specified");
2666}
2667
2646/* Handle the icon stuff for this window. Perhaps later we might 2668/* Handle the icon stuff for this window. Perhaps later we might
2647 want an x_set_icon_position which can be called interactively as 2669 want an x_set_icon_position which can be called interactively as
2648 well. */ 2670 well. */
@@ -3132,6 +3154,8 @@ This function is an internal primitive--use `make-frame' instead. */)
3132 tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN); 3154 tem = x_get_arg (dpyinfo, parms, Qunsplittable, 0, 0, RES_TYPE_BOOLEAN);
3133 f->no_split = minibuffer_only || EQ (tem, Qt); 3155 f->no_split = minibuffer_only || EQ (tem, Qt);
3134 3156
3157 x_icon_verify (f, parms);
3158
3135 /* Create the X widget or window. */ 3159 /* Create the X widget or window. */
3136#ifdef USE_X_TOOLKIT 3160#ifdef USE_X_TOOLKIT
3137 x_window (f, window_prompting, minibuffer_only); 3161 x_window (f, window_prompting, minibuffer_only);