diff options
| author | Jan Djärv | 2004-08-24 10:54:39 +0000 |
|---|---|---|
| committer | Jan Djärv | 2004-08-24 10:54:39 +0000 |
| commit | 10b43ac3fd25e09cfe100497d88e1ddb9f040770 (patch) | |
| tree | 281a1930783bddd2a5b5c458fe8222143c709942 /src | |
| parent | 09139bc51ac3948a89346dc209b00d02fdfd17af (diff) | |
| download | emacs-10b43ac3fd25e09cfe100497d88e1ddb9f040770.tar.gz emacs-10b43ac3fd25e09cfe100497d88e1ddb9f040770.zip | |
* xfns.c (x_window_to_frame, x_any_window_to_frame)
(x_non_menubar_window_to_frame, x_menubar_window_to_frame)
(x_top_window_to_frame): Return 0 if wdesc is None.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/xfns.c | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index cbf06bc480f..35731460a70 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2004-08-24 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * xfns.c (x_window_to_frame, x_any_window_to_frame) | ||
| 4 | (x_non_menubar_window_to_frame, x_menubar_window_to_frame) | ||
| 5 | (x_top_window_to_frame): Return 0 if wdesc is None. | ||
| 6 | |||
| 1 | 2004-08-22 Richard M. Stallman <rms@gnu.org> | 7 | 2004-08-22 Richard M. Stallman <rms@gnu.org> |
| 2 | 8 | ||
| 3 | * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS, | 9 | * process.c (process_send_signal) [SIGNALS_VIA_CHARACTERS, |
diff --git a/src/xfns.c b/src/xfns.c index 3f484f3935a..8368e62a445 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -281,6 +281,8 @@ x_window_to_frame (dpyinfo, wdesc) | |||
| 281 | Lisp_Object tail, frame; | 281 | Lisp_Object tail, frame; |
| 282 | struct frame *f; | 282 | struct frame *f; |
| 283 | 283 | ||
| 284 | if (wdesc == None) return 0; | ||
| 285 | |||
| 284 | for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) | 286 | for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) |
| 285 | { | 287 | { |
| 286 | frame = XCAR (tail); | 288 | frame = XCAR (tail); |
| @@ -330,6 +332,8 @@ x_any_window_to_frame (dpyinfo, wdesc) | |||
| 330 | struct frame *f, *found; | 332 | struct frame *f, *found; |
| 331 | struct x_output *x; | 333 | struct x_output *x; |
| 332 | 334 | ||
| 335 | if (wdesc == None) return NULL; | ||
| 336 | |||
| 333 | found = NULL; | 337 | found = NULL; |
| 334 | for (tail = Vframe_list; GC_CONSP (tail) && !found; tail = XCDR (tail)) | 338 | for (tail = Vframe_list; GC_CONSP (tail) && !found; tail = XCDR (tail)) |
| 335 | { | 339 | { |
| @@ -384,6 +388,8 @@ x_non_menubar_window_to_frame (dpyinfo, wdesc) | |||
| 384 | struct frame *f; | 388 | struct frame *f; |
| 385 | struct x_output *x; | 389 | struct x_output *x; |
| 386 | 390 | ||
| 391 | if (wdesc == None) return 0; | ||
| 392 | |||
| 387 | for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) | 393 | for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) |
| 388 | { | 394 | { |
| 389 | frame = XCAR (tail); | 395 | frame = XCAR (tail); |
| @@ -430,6 +436,8 @@ x_menubar_window_to_frame (dpyinfo, wdesc) | |||
| 430 | struct frame *f; | 436 | struct frame *f; |
| 431 | struct x_output *x; | 437 | struct x_output *x; |
| 432 | 438 | ||
| 439 | if (wdesc == None) return 0; | ||
| 440 | |||
| 433 | for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) | 441 | for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) |
| 434 | { | 442 | { |
| 435 | frame = XCAR (tail); | 443 | frame = XCAR (tail); |
| @@ -475,6 +483,8 @@ x_top_window_to_frame (dpyinfo, wdesc) | |||
| 475 | struct frame *f; | 483 | struct frame *f; |
| 476 | struct x_output *x; | 484 | struct x_output *x; |
| 477 | 485 | ||
| 486 | if (wdesc == None) return 0; | ||
| 487 | |||
| 478 | for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) | 488 | for (tail = Vframe_list; GC_CONSP (tail); tail = XCDR (tail)) |
| 479 | { | 489 | { |
| 480 | frame = XCAR (tail); | 490 | frame = XCAR (tail); |