aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1994-10-03 00:25:59 +0000
committerKarl Heuer1994-10-03 00:25:59 +0000
commit113d90153155c1aa917cfcabc1523b4c93082353 (patch)
treedffd1023d3fef70ce5937739850e619037daaad6 /src
parentdb03492ec0625d682808d69f75cf7eec19b2a494 (diff)
downloademacs-113d90153155c1aa917cfcabc1523b4c93082353.tar.gz
emacs-113d90153155c1aa917cfcabc1523b4c93082353.zip
(Frecenter): Don't trigger point-motion hooks.
Diffstat (limited to 'src')
-rw-r--r--src/window.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/window.c b/src/window.c
index b34f8a86132..bad4815540e 100644
--- a/src/window.c
+++ b/src/window.c
@@ -2629,7 +2629,7 @@ redraws with point in the center of the current window.")
2629{ 2629{
2630 register struct window *w = XWINDOW (selected_window); 2630 register struct window *w = XWINDOW (selected_window);
2631 register int ht = window_internal_height (w); 2631 register int ht = window_internal_height (w);
2632 register int opoint = PT; 2632 struct position pos;
2633 Lisp_Object window; 2633 Lisp_Object window;
2634 2634
2635 if (NILP (n)) 2635 if (NILP (n))
@@ -2652,14 +2652,14 @@ redraws with point in the center of the current window.")
2652 if (XINT (n) < 0) 2652 if (XINT (n) < 0)
2653 XSETINT (n, XINT (n) + ht); 2653 XSETINT (n, XINT (n) + ht);
2654 2654
2655 XSETINT (n, - XINT (n));
2656
2657 XSET (window, Lisp_Window, w); 2655 XSET (window, Lisp_Window, w);
2658 Fvertical_motion (n, window); 2656 pos = *vmotion (point, - XINT (n), window_internal_width (w) - 1,
2659 Fset_marker (w->start, make_number (PT), w->buffer); 2657 XINT (w->hscroll), window);
2660 w->start_at_line_beg = Fbolp ();
2661 2658
2662 SET_PT (opoint); 2659 Fset_marker (w->start, make_number (pos.bufpos), w->buffer);
2660 w->start_at_line_beg = ((pos.bufpos == BEGV
2661 || FETCH_CHAR (pos.bufpos - 1) == '\n')
2662 ? Qt : Qnil);
2663 w->force_start = Qt; 2663 w->force_start = Qt;
2664 2664
2665 return Qnil; 2665 return Qnil;