diff options
| author | Stefan Monnier | 2015-05-27 11:52:28 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2015-05-27 11:52:28 -0400 |
| commit | d090be146176e9acee89fdaadc86e2eb26209ef5 (patch) | |
| tree | 4023e6f3770dc358410082254bff0fd442b7a2b5 | |
| parent | 171981622f072546aed135668e53fdeb7b012631 (diff) | |
| download | emacs-d090be146176e9acee89fdaadc86e2eb26209ef5.tar.gz emacs-d090be146176e9acee89fdaadc86e2eb26209ef5.zip | |
Change inhibit-point-motion-hooks to t
* src/textprop.c (syms_of_textprop): Default Vinhibit_point_motion_hooks
to t and document it as obsolete.
| -rw-r--r-- | etc/NEWS | 2 | ||||
| -rw-r--r-- | src/textprop.c | 12 |
2 files changed, 12 insertions, 2 deletions
| @@ -756,6 +756,8 @@ a typographically-correct documents. | |||
| 756 | 756 | ||
| 757 | * Incompatible Lisp Changes in Emacs 25.1 | 757 | * Incompatible Lisp Changes in Emacs 25.1 |
| 758 | 758 | ||
| 759 | ** `inhibit-point-motion-hooks' now defaults to t and is obsolete. | ||
| 760 | |||
| 759 | ** The optional `predicate' argument of `lisp-complete-symbol' no longer | 761 | ** The optional `predicate' argument of `lisp-complete-symbol' no longer |
| 760 | has any effect. (This change was made in Emacs 24.4 but was not | 762 | has any effect. (This change was made in Emacs 24.4 but was not |
| 761 | advertised at the time.) | 763 | advertised at the time.) |
diff --git a/src/textprop.c b/src/textprop.c index 0a591d0e05f..96d88edebd2 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -2344,8 +2344,16 @@ returned. */); | |||
| 2344 | 2344 | ||
| 2345 | DEFVAR_LISP ("inhibit-point-motion-hooks", Vinhibit_point_motion_hooks, | 2345 | DEFVAR_LISP ("inhibit-point-motion-hooks", Vinhibit_point_motion_hooks, |
| 2346 | doc: /* If non-nil, don't run `point-left' and `point-entered' text properties. | 2346 | doc: /* If non-nil, don't run `point-left' and `point-entered' text properties. |
| 2347 | This also inhibits the use of the `intangible' text property. */); | 2347 | This also inhibits the use of the `intangible' text property. |
| 2348 | Vinhibit_point_motion_hooks = Qnil; | 2348 | |
| 2349 | This variable is obsolete since Emacs-25.1. Use `cursor-intangible-mode' | ||
| 2350 | or `cursor-sensor-mode' instead. */); | ||
| 2351 | /* FIXME: We should make-obsolete-variable, but that signals too many | ||
| 2352 | warnings in code which does (let ((inhibit-point-motion-hooks t)) ...) | ||
| 2353 | Ideally, make-obsolete-variable should let us specify that only the nil | ||
| 2354 | value is obsolete, but that requires too many changes in bytecomp.el, | ||
| 2355 | so for now we'll keep it "obsolete via the docstring". */ | ||
| 2356 | Vinhibit_point_motion_hooks = Qt; | ||
| 2349 | 2357 | ||
| 2350 | DEFVAR_LISP ("text-property-default-nonsticky", | 2358 | DEFVAR_LISP ("text-property-default-nonsticky", |
| 2351 | Vtext_property_default_nonsticky, | 2359 | Vtext_property_default_nonsticky, |