diff options
| author | Richard M. Stallman | 2005-04-24 21:35:43 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-04-24 21:35:43 +0000 |
| commit | b8f3fe3967ef722987ae2d2ecb96977959ae2a89 (patch) | |
| tree | 48e998178e3b0b9e4589f9421682527699acda91 | |
| parent | 86f7c203484e301de4bd9cf3f842980c10ef73f0 (diff) | |
| download | emacs-b8f3fe3967ef722987ae2d2ecb96977959ae2a89.tar.gz emacs-b8f3fe3967ef722987ae2d2ecb96977959ae2a89.zip | |
(Fvertical_motion): Bind fontification-functions to nil.
| -rw-r--r-- | src/indent.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/indent.c b/src/indent.c index a810dd3189b..f76b65418ef 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -65,6 +65,8 @@ static double position_indentation P_ ((int)); | |||
| 65 | 65 | ||
| 66 | int current_column_bol_cache; | 66 | int current_column_bol_cache; |
| 67 | 67 | ||
| 68 | extern Lisp_Object Qfontification_functions; | ||
| 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 * |
| @@ -2047,6 +2049,7 @@ whether or not it is currently displayed in some window. */) | |||
| 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)) |
| @@ -2064,6 +2067,9 @@ whether or not it is currently displayed in some window. */) | |||
| 2064 | XSETBUFFER (w->buffer, current_buffer); | 2067 | XSETBUFFER (w->buffer, current_buffer); |
| 2065 | } | 2068 | } |
| 2066 | 2069 | ||
| 2070 | /* Don't fontify text that we just move across. */ | ||
| 2071 | specbind (Qfontification_functions, Qnil); | ||
| 2072 | |||
| 2067 | if (noninteractive) | 2073 | if (noninteractive) |
| 2068 | { | 2074 | { |
| 2069 | struct position pos; | 2075 | struct position pos; |
| @@ -2109,6 +2115,7 @@ whether or not it is currently displayed in some window. */) | |||
| 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 | ||