Mercurial > emacs
comparison src/indent.c @ 61817:2636b86a665d
(Fvertical_motion): Bind fontification-functions to nil.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 24 Apr 2005 21:35:43 +0000 |
parents | dc40d9822125 |
children | 2fe5da3b3da2 ad07ff6e4555 |
comparison
equal
deleted
inserted
replaced
61816:ad8d904ee067 | 61817:2636b86a665d |
---|---|
62 | 62 |
63 /* Cache of beginning of line found by the last call of | 63 /* Cache of beginning of line found by the last call of |
64 current_column. */ | 64 current_column. */ |
65 | 65 |
66 int current_column_bol_cache; | 66 int current_column_bol_cache; |
67 | |
68 extern Lisp_Object Qfontification_functions; | |
67 | 69 |
68 /* Get the display table to use for the current buffer. */ | 70 /* Get the display table to use for the current buffer. */ |
69 | 71 |
70 struct Lisp_Char_Table * | 72 struct Lisp_Char_Table * |
71 buffer_display_table () | 73 buffer_display_table () |
2045 struct it it; | 2047 struct it it; |
2046 struct text_pos pt; | 2048 struct text_pos pt; |
2047 struct window *w; | 2049 struct window *w; |
2048 Lisp_Object old_buffer; | 2050 Lisp_Object old_buffer; |
2049 struct gcpro gcpro1; | 2051 struct gcpro gcpro1; |
2052 int count = SPECPDL_INDEX (); | |
2050 | 2053 |
2051 CHECK_NUMBER (lines); | 2054 CHECK_NUMBER (lines); |
2052 if (! NILP (window)) | 2055 if (! NILP (window)) |
2053 CHECK_WINDOW (window); | 2056 CHECK_WINDOW (window); |
2054 else | 2057 else |
2061 { | 2064 { |
2062 /* Set the window's buffer temporarily to the current buffer. */ | 2065 /* Set the window's buffer temporarily to the current buffer. */ |
2063 old_buffer = w->buffer; | 2066 old_buffer = w->buffer; |
2064 XSETBUFFER (w->buffer, current_buffer); | 2067 XSETBUFFER (w->buffer, current_buffer); |
2065 } | 2068 } |
2069 | |
2070 /* Don't fontify text that we just move across. */ | |
2071 specbind (Qfontification_functions, Qnil); | |
2066 | 2072 |
2067 if (noninteractive) | 2073 if (noninteractive) |
2068 { | 2074 { |
2069 struct position pos; | 2075 struct position pos; |
2070 pos = *vmotion (PT, XINT (lines), w); | 2076 pos = *vmotion (PT, XINT (lines), w); |
2107 } | 2113 } |
2108 | 2114 |
2109 if (BUFFERP (old_buffer)) | 2115 if (BUFFERP (old_buffer)) |
2110 w->buffer = old_buffer; | 2116 w->buffer = old_buffer; |
2111 | 2117 |
2118 unbind_to (count, Qnil); | |
2112 RETURN_UNGCPRO (make_number (it.vpos)); | 2119 RETURN_UNGCPRO (make_number (it.vpos)); |
2113 } | 2120 } |
2114 | 2121 |
2115 | 2122 |
2116 | 2123 |