aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-12-02 23:12:56 +0000
committerChong Yidong2008-12-02 23:12:56 +0000
commit9373034275dc04fdd4d32bc67178b2d9d00a83f8 (patch)
treee7770eb62d7f7940a8acc28d6e46d6656b8c23fa
parent651df7d9b55a19b41ed23c93b5cb47dfb2954e53 (diff)
downloademacs-9373034275dc04fdd4d32bc67178b2d9d00a83f8.tar.gz
emacs-9373034275dc04fdd4d32bc67178b2d9d00a83f8.zip
(make_lispy_position): Only use PT if the selected window is current.
-rw-r--r--src/keyboard.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index ad6665e6068..77d58931d14 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -5304,7 +5304,8 @@ make_lispy_position (f, x, y, time)
5304 &object, &dx, &dy, &width, &height); 5304 &object, &dx, &dy, &width, &height);
5305 if (STRINGP (string)) 5305 if (STRINGP (string))
5306 string_info = Fcons (string, make_number (charpos)); 5306 string_info = Fcons (string, make_number (charpos));
5307 if (w == XWINDOW (selected_window)) 5307 if (w == XWINDOW (selected_window)
5308 && current_buffer == XBUFFER (w->buffer))
5308 textpos = PT; 5309 textpos = PT;
5309 else 5310 else
5310 textpos = XMARKER (w->pointm)->charpos; 5311 textpos = XMARKER (w->pointm)->charpos;