comparison src/buffer.c @ 110855:bec49af30c2f

Merge changes from emacs-23 branch.
author Juanma Barranquero <lekktu@gmail.com>
date Fri, 08 Oct 2010 12:14:47 +0200
parents e49fcbdc458f 63399fcc7ef2
children cc83220d255d
comparison
equal deleted inserted replaced
110820:e60b0b3ed516 110855:bec49af30c2f
5955 \(For an insertion, the beginning and end are at the same place.) 5955 \(For an insertion, the beginning and end are at the same place.)
5956 No information is given about the length of the text after the change. 5956 No information is given about the length of the text after the change.
5957 5957
5958 Buffer changes made while executing the `before-change-functions' 5958 Buffer changes made while executing the `before-change-functions'
5959 don't call any before-change or after-change functions. 5959 don't call any before-change or after-change functions.
5960 That's because these variables are temporarily set to nil. 5960 That's because `inhibit-modification-hooks' is temporarily set non-nil.
5961 As a result, a hook function cannot straightforwardly alter the
5962 value of these variables. See the Emacs Lisp manual for a way of
5963 accomplishing an equivalent result by using other variables.
5964 5961
5965 If an unhandled error happens in running these functions, 5962 If an unhandled error happens in running these functions,
5966 the variable's value remains nil. That prevents the error 5963 the variable's value remains nil. That prevents the error
5967 from happening repeatedly and making Emacs nonfunctional. */); 5964 from happening repeatedly and making Emacs nonfunctional. */);
5968 Vbefore_change_functions = Qnil; 5965 Vbefore_change_functions = Qnil;
5976 for a deletion, that length is the number of bytes deleted, 5973 for a deletion, that length is the number of bytes deleted,
5977 and the post-change beginning and end are at the same place.) 5974 and the post-change beginning and end are at the same place.)
5978 5975
5979 Buffer changes made while executing the `after-change-functions' 5976 Buffer changes made while executing the `after-change-functions'
5980 don't call any before-change or after-change functions. 5977 don't call any before-change or after-change functions.
5981 That's because these variables are temporarily set to nil. 5978 That's because `inhibit-modification-hooks' is temporarily set non-nil.
5982 As a result, a hook function cannot straightforwardly alter the
5983 value of these variables. See the Emacs Lisp manual for a way of
5984 accomplishing an equivalent result by using other variables.
5985 5979
5986 If an unhandled error happens in running these functions, 5980 If an unhandled error happens in running these functions,
5987 the variable's value remains nil. That prevents the error 5981 the variable's value remains nil. That prevents the error
5988 from happening repeatedly and making Emacs nonfunctional. */); 5982 from happening repeatedly and making Emacs nonfunctional. */);
5989 Vafter_change_functions = Qnil; 5983 Vafter_change_functions = Qnil;