aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2001-03-09 14:51:01 +0000
committerGerd Moellmann2001-03-09 14:51:01 +0000
commita955ffa20ce30736171729e9bac97be1beb16c3b (patch)
treeed947fd309efa774d3632990b3077e7f0bd56150 /src
parenta1b0a6dbe8fb397dc867ce72f93699d8fd0514fe (diff)
downloademacs-a955ffa20ce30736171729e9bac97be1beb16c3b.tar.gz
emacs-a955ffa20ce30736171729e9bac97be1beb16c3b.zip
(make_lispy_event, make_lispy_movement): Adjust
calls to buffer_posn_from_coords to new format.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c31
1 files changed, 25 insertions, 6 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index c806bd7265e..a73936e9198 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4777,7 +4777,12 @@ make_lispy_event (event)
4777 else if (part == 2) 4777 else if (part == 2)
4778 posn = Qvertical_line; 4778 posn = Qvertical_line;
4779 else 4779 else
4780 XSETINT (posn, buffer_posn_from_coords (w, &wx, &wy)); 4780 {
4781 Lisp_Object object;
4782 struct display_pos p;
4783 buffer_posn_from_coords (w, &wx, &wy, &object, &p);
4784 posn = make_number (CHARPOS (p.pos));
4785 }
4781 } 4786 }
4782 4787
4783 position 4788 position
@@ -5071,9 +5076,13 @@ make_lispy_event (event)
5071 else if (part == 3) 5076 else if (part == 3)
5072 posn = Qheader_line; 5077 posn = Qheader_line;
5073 else 5078 else
5074 XSETINT (posn, 5079 {
5075 buffer_posn_from_coords (XWINDOW (window), 5080 Lisp_Object object;
5076 &column, &row)); 5081 struct display_pos p;
5082 buffer_posn_from_coords (XWINDOW (window), &column, &row,
5083 &object, &p);
5084 posn = make_number (CHARPOS (p.pos));
5085 }
5077 } 5086 }
5078 5087
5079 { 5088 {
@@ -5150,7 +5159,12 @@ make_lispy_event (event)
5150 else if (part == 3) 5159 else if (part == 3)
5151 posn = Qheader_line; 5160 posn = Qheader_line;
5152 else 5161 else
5153 XSETINT (posn, buffer_posn_from_coords (w, &wx, &wy)); 5162 {
5163 Lisp_Object object;
5164 struct display_pos p;
5165 buffer_posn_from_coords (w, &wx, &wy, &object, &p);
5166 posn = make_number (CHARPOS (p.pos));
5167 }
5154 } 5168 }
5155 5169
5156 { 5170 {
@@ -5262,7 +5276,12 @@ make_lispy_movement (frame, bar_window, part, x, y, time)
5262 else if (area == 3) 5276 else if (area == 3)
5263 posn = Qheader_line; 5277 posn = Qheader_line;
5264 else 5278 else
5265 XSETINT (posn, buffer_posn_from_coords (w, &wx, &wy)); 5279 {
5280 Lisp_Object object;
5281 struct display_pos p;
5282 buffer_posn_from_coords (w, &wx, &wy, &object, &p);
5283 posn = make_number (CHARPOS (p.pos));
5284 }
5266 } 5285 }
5267 else if (frame != 0) 5286 else if (frame != 0)
5268 { 5287 {