Mercurial > emacs
comparison src/insdel.c @ 29379:ad856393dab2
(signal_before_change, signal_after_change): Don't check
Vbefore_change_function, Vafter_change_function.
author | Dave Love <fx@gnu.org> |
---|---|
date | Fri, 02 Jun 2000 12:42:54 +0000 |
parents | e8d5eb064973 |
children | 04e50cacc23f |
comparison
equal
deleted
inserted
replaced
29378:141820271eff | 29379:ad856393dab2 |
---|---|
1876 PRESERVE_VALUE; | 1876 PRESERVE_VALUE; |
1877 PRESERVE_START_END; | 1877 PRESERVE_START_END; |
1878 call1 (Vrun_hooks, Qfirst_change_hook); | 1878 call1 (Vrun_hooks, Qfirst_change_hook); |
1879 } | 1879 } |
1880 | 1880 |
1881 /* Run the before-change-function if any. | |
1882 We don't bother "binding" this variable to nil | |
1883 because it is obsolete anyway and new code should not use it. */ | |
1884 if (!NILP (Vbefore_change_function)) | |
1885 { | |
1886 PRESERVE_VALUE; | |
1887 PRESERVE_START_END; | |
1888 call2 (Vbefore_change_function, FETCH_START, FETCH_END); | |
1889 } | |
1890 | |
1891 /* Now run the before-change-functions if any. */ | 1881 /* Now run the before-change-functions if any. */ |
1892 if (!NILP (Vbefore_change_functions)) | 1882 if (!NILP (Vbefore_change_functions)) |
1893 { | 1883 { |
1894 Lisp_Object args[3]; | 1884 Lisp_Object args[3]; |
1895 Lisp_Object before_change_functions; | 1885 Lisp_Object before_change_functions; |
1952 | 1942 |
1953 /* If we are deferring calls to the after-change functions | 1943 /* If we are deferring calls to the after-change functions |
1954 and there are no before-change functions, | 1944 and there are no before-change functions, |
1955 just record the args that we were going to use. */ | 1945 just record the args that we were going to use. */ |
1956 if (! NILP (Vcombine_after_change_calls) | 1946 if (! NILP (Vcombine_after_change_calls) |
1957 && NILP (Vbefore_change_function) && NILP (Vbefore_change_functions) | 1947 && NILP (Vbefore_change_functions) |
1958 && NILP (current_buffer->overlays_before) | 1948 && NILP (current_buffer->overlays_before) |
1959 && NILP (current_buffer->overlays_after)) | 1949 && NILP (current_buffer->overlays_after)) |
1960 { | 1950 { |
1961 Lisp_Object elt; | 1951 Lisp_Object elt; |
1962 | 1952 |
1974 return; | 1964 return; |
1975 } | 1965 } |
1976 | 1966 |
1977 if (!NILP (combine_after_change_list)) | 1967 if (!NILP (combine_after_change_list)) |
1978 Fcombine_after_change_execute (); | 1968 Fcombine_after_change_execute (); |
1979 | |
1980 /* Run the after-change-function if any. | |
1981 We don't bother "binding" this variable to nil | |
1982 because it is obsolete anyway and new code should not use it. */ | |
1983 if (!NILP (Vafter_change_function)) | |
1984 call3 (Vafter_change_function, | |
1985 make_number (charpos), make_number (charpos + lenins), | |
1986 make_number (lendel)); | |
1987 | 1969 |
1988 if (!NILP (Vafter_change_functions)) | 1970 if (!NILP (Vafter_change_functions)) |
1989 { | 1971 { |
1990 Lisp_Object args[4]; | 1972 Lisp_Object args[4]; |
1991 Lisp_Object before_change_functions; | 1973 Lisp_Object before_change_functions; |