emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r106492: * src/window.c (Fcoordinates


From: Chong Yidong
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r106492: * src/window.c (Fcoordinates_in_window_p): Accept only live windows.
Date: Thu, 24 Nov 2011 00:09:08 +0800
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 106492
committer: Chong Yidong <address@hidden>
branch nick: trunk
timestamp: Thu 2011-11-24 00:09:08 +0800
message:
  * src/window.c (Fcoordinates_in_window_p): Accept only live windows.
modified:
  src/ChangeLog
  src/window.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2011-11-23 09:57:27 +0000
+++ b/src/ChangeLog     2011-11-23 16:09:08 +0000
@@ -1,3 +1,7 @@
+2011-11-23  Chong Yidong  <address@hidden>
+
+       * window.c (Fcoordinates_in_window_p): Accept only live windows.
+
 2011-11-23  Martin Rudalics  <address@hidden>
 
        * buffer.c (Fkill_buffer): Run replace_buffer_in_windows before

=== modified file 'src/window.c'
--- a/src/window.c      2011-11-21 06:05:16 +0000
+++ b/src/window.c      2011-11-23 16:09:08 +0000
@@ -1052,6 +1052,7 @@
 DEFUN ("coordinates-in-window-p", Fcoordinates_in_window_p,
        Scoordinates_in_window_p, 2, 2, 0,
        doc: /* Return non-nil if COORDINATES are in WINDOW.
+WINDOW must be a live window.
 COORDINATES is a cons of the form (X . Y), X and Y being distances
 measured in characters from the upper-left corner of the frame.
 \(0 . 0) denotes the character in the upper left corner of the
@@ -1073,7 +1074,7 @@
   int x, y;
   Lisp_Object lx, ly;
 
-  CHECK_WINDOW (window);
+  CHECK_LIVE_WINDOW (window);
   w = XWINDOW (window);
   f = XFRAME (w->frame);
   CHECK_CONS (coordinates);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]