aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2010-10-24 17:36:09 -0400
committerChong Yidong2010-10-24 17:36:09 -0400
commit0c382083b6b550c26fad8ac7f59b1ba09663e728 (patch)
tree811262fd6093232799dabb83600551ba63cecaac /src
parentd77d0953b5ddb05ea7ad19556f37a5f5c4d3a67b (diff)
parent23c261f58fceed14e04b3ba928007fde9567d8e2 (diff)
downloademacs-0c382083b6b550c26fad8ac7f59b1ba09663e728.tar.gz
emacs-0c382083b6b550c26fad8ac7f59b1ba09663e728.zip
Merge changes from emacs-23
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog11
-rw-r--r--src/atimer.c6
-rw-r--r--src/dispnew.c24
-rw-r--r--src/frame.c27
-rw-r--r--src/xterm.c15
5 files changed, 58 insertions, 25 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4c7711e34b9..a6d19d40b1c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,14 @@
12010-10-24 Chong Yidong <cyd@stupidchicken.com>
2
3 * xterm.c (x_connection_closed): Kill Emacs unconditionally.
4
52010-10-22 Eli Zaretskii <eliz@gnu.org>
6
7 * frame.c (Fframep, Fwindow_system): Deprecate use as a predicate.
8
9 * dispnew.c (syms_of_display) <initial-window-system, window-system>:
10 Deprecate use as a boolean flag.
11
12010-10-24 Jim Meyering <jim@meyering.net> 122010-10-24 Jim Meyering <jim@meyering.net>
2 13
3 * emacs.c (argmatch): Don't treat "--" as "--chdir". 14 * emacs.c (argmatch): Don't treat "--" as "--chdir".
diff --git a/src/atimer.c b/src/atimer.c
index 9fd9dee835e..6258908e0b2 100644
--- a/src/atimer.c
+++ b/src/atimer.c
@@ -171,9 +171,9 @@ cancel_atimer (struct atimer *timer)
171 for (t = *list, prev = NULL; t && t != timer; prev = t, t = t->next) 171 for (t = *list, prev = NULL; t && t != timer; prev = t, t = t->next)
172 ; 172 ;
173 173
174 /* If it is, take it off the its list, and put in on the 174 /* If it is, take it off its list, and put in on the free-list.
175 free-list. We don't bother to arrange for setting a 175 We don't bother to arrange for setting a different alarm time,
176 different alarm time, since a too early one doesn't hurt. */ 176 since a too early one doesn't hurt. */
177 if (t) 177 if (t)
178 { 178 {
179 if (prev) 179 if (prev)
diff --git a/src/dispnew.c b/src/dispnew.c
index f9729fc28cb..44dad60473d 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -6583,13 +6583,29 @@ It is up to you to set this variable if your terminal can do that. */);
6583 6583
6584 DEFVAR_LISP ("initial-window-system", &Vinitial_window_system, 6584 DEFVAR_LISP ("initial-window-system", &Vinitial_window_system,
6585 doc: /* Name of the window system that Emacs uses for the first frame. 6585 doc: /* Name of the window system that Emacs uses for the first frame.
6586The value is a symbol--for instance, `x' for X windows. 6586The value is a symbol:
6587The value is nil if Emacs is using a text-only terminal. */); 6587 nil for a termcap frame (a character-only terminal),
6588 'x' for an Emacs frame that is really an X window,
6589 'w32' for an Emacs frame that is a window on MS-Windows display,
6590 'ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display,
6591 'pc' for a direct-write MS-DOS frame.
6592
6593Use of this variable as a boolean is deprecated. Instead,
6594use `display-graphic-p' or any of the other `display-*-p'
6595predicates which report frame's specific UI-related capabilities. */);
6588 6596
6589 DEFVAR_KBOARD ("window-system", Vwindow_system, 6597 DEFVAR_KBOARD ("window-system", Vwindow_system,
6590 doc: /* Name of window system through which the selected frame is displayed. 6598 doc: /* Name of window system through which the selected frame is displayed.
6591The value is a symbol--for instance, `x' for X windows. 6599The value is a symbol:
6592The value is nil if the selected frame is on a text-only-terminal. */); 6600 nil for a termcap frame (a character-only terminal),
6601 'x' for an Emacs frame that is really an X window,
6602 'w32' for an Emacs frame that is a window on MS-Windows display,
6603 'ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display,
6604 'pc' for a direct-write MS-DOS frame.
6605
6606Use of this variable as a boolean is deprecated. Instead,
6607use `display-graphic-p' or any of the other `display-*-p'
6608predicates which report frame's specific UI-related capabilities. */);
6593 6609
6594 DEFVAR_LISP ("window-system-version", &Vwindow_system_version, 6610 DEFVAR_LISP ("window-system-version", &Vwindow_system_version,
6595 doc: /* The version number of the window system in use. 6611 doc: /* The version number of the window system in use.
diff --git a/src/frame.c b/src/frame.c
index 2489aa91de0..1c9d471cfa9 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -203,11 +203,12 @@ Lisp_Object Vframe_list;
203 203
204DEFUN ("framep", Fframep, Sframep, 1, 1, 0, 204DEFUN ("framep", Fframep, Sframep, 1, 1, 0,
205 doc: /* Return non-nil if OBJECT is a frame. 205 doc: /* Return non-nil if OBJECT is a frame.
206Value is t for a termcap frame (a character-only terminal), 206Value is:
207`x' for an Emacs frame that is really an X window, 207 t for a termcap frame (a character-only terminal),
208`w32' for an Emacs frame that is a window on MS-Windows display, 208 'x' for an Emacs frame that is really an X window,
209`ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display, 209 'w32' for an Emacs frame that is a window on MS-Windows display,
210`pc' for a direct-write MS-DOS frame. 210 'ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display,
211 'pc' for a direct-write MS-DOS frame.
211See also `frame-live-p'. */) 212See also `frame-live-p'. */)
212 (Lisp_Object object) 213 (Lisp_Object object)
213{ 214{
@@ -249,10 +250,18 @@ return values. */)
249 250
250DEFUN ("window-system", Fwindow_system, Swindow_system, 0, 1, 0, 251DEFUN ("window-system", Fwindow_system, Swindow_system, 0, 1, 0,
251 doc: /* The name of the window system that FRAME is displaying through. 252 doc: /* The name of the window system that FRAME is displaying through.
252The value is a symbol---for instance, 'x' for X windows. 253The value is a symbol:
253The value is nil if Emacs is using a text-only terminal. 254 nil for a termcap frame (a character-only terminal),
254 255 'x' for an Emacs frame that is really an X window,
255FRAME defaults to the currently selected frame. */) 256 'w32' for an Emacs frame that is a window on MS-Windows display,
257 'ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display,
258 'pc' for a direct-write MS-DOS frame.
259
260FRAME defaults to the currently selected frame.
261
262Use of this function as a predicate is deprecated. Instead,
263use `display-graphic-p' or any of the other `display-*-p'
264predicates which report frame's specific UI-related capabilities. */)
256 (Lisp_Object frame) 265 (Lisp_Object frame)
257{ 266{
258 Lisp_Object type; 267 Lisp_Object type;
diff --git a/src/xterm.c b/src/xterm.c
index b685ad475f7..2721e63ee2c 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -7698,15 +7698,12 @@ x_connection_closed (Display *dpy, const char *error_message)
7698#endif 7698#endif
7699 7699
7700#ifdef USE_GTK 7700#ifdef USE_GTK
7701 /* Due to bugs in some Gtk+ versions, just exit here if this 7701 /* Due to bugs in some Gtk+ versions, just exit here. */
7702 is the last display/terminal. */ 7702 {
7703 if (terminal_list->next_terminal == NULL) 7703 fprintf (stderr, "%s\n", error_msg);
7704 { 7704 Fkill_emacs (make_number (70));
7705 fprintf (stderr, "%s\n", error_msg); 7705 abort (); /* NOTREACHED */
7706 Fkill_emacs (make_number (70)); 7706 }
7707 /* NOTREACHED */
7708 }
7709 xg_display_close (dpyinfo->display);
7710#endif 7707#endif
7711 7708
7712 /* Indicate that this display is dead. */ 7709 /* Indicate that this display is dead. */