Mercurial > emacs
comparison src/keyboard.c @ 100130:0410bbc1ef45
(make_lispy_position): Only use PT if the selected window is current.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Tue, 02 Dec 2008 23:12:56 +0000 |
parents | 173352468c0f |
children | fc199de00487 |
comparison
equal
deleted
inserted
replaced
100129:73a126667563 | 100130:0410bbc1ef45 |
---|---|
5302 rx = wx, ry = wy; | 5302 rx = wx, ry = wy; |
5303 string = mode_line_string (w, part, &rx, &ry, &charpos, | 5303 string = mode_line_string (w, part, &rx, &ry, &charpos, |
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; |
5311 } | 5312 } |
5312 else if (part == ON_VERTICAL_BORDER) | 5313 else if (part == ON_VERTICAL_BORDER) |