diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-10-07 14:15:40 -0400 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2022-10-07 14:15:40 -0400 |
commit | d6831d1b0a18882d688a842721dd1592884a06e2 (patch) | |
tree | 215be264cf13bcf2fd434b212bd722b5c1c18c77 /lisp/subr.el | |
parent | e3824f0a3189d0902d64a70ae9c82ff1240aed5f (diff) | |
download | emacs-d6831d1b0a18882d688a842721dd1592884a06e2.tar.gz emacs-d6831d1b0a18882d688a842721dd1592884a06e2.tar.bz2 emacs-d6831d1b0a18882d688a842721dd1592884a06e2.zip |
subr.el (inhibit-point-motion-hooks): Mark it as obsolete
When Emacs-25 changed the default of `inhibit-point-motion-hooks` to t,
/etc/NEWS declared it as obsolete and so did its docstring, but
it was not marked as obsolete so as not to emit too many warnings
in code where it was impractical to remove the let-binding while
keeping backward compatibility with older Emacsen.
Those backward compatibility issues are not serious any more now that
Emacs-25 is itself considered old.
* lisp/subr.el (inhibit-point-motion-hooks): Mark it as obsolete.
* src/textprop.c (inhibit-point-motion-hooks): Don't mention it being
obsolete in the docstring any more.
* lisp/simple.el (line-move-1, line-move-finish): Silence warnings.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r-- | lisp/subr.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el index c975c216bb6..56ce9fa69b9 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -1837,7 +1837,12 @@ be a list of the form returned by `event-start' and `event-end'." (set-advertised-calling-convention 'time-convert '(time form) "29.1") ;;;; Obsolescence declarations for variables, and aliases. - +(make-obsolete-variable + 'inhibit-point-motion-hooks + "use `cursor-intangible-mode' or `cursor-sensor-mode' instead" + ;; It's been announced as obsolete in NEWS and in the docstring since Emacs-25, + ;; but it's only been marked for compilation warnings since Emacs-29. + "25.1") (make-obsolete-variable 'redisplay-dont-pause nil "24.5") (make-obsolete-variable 'operating-system-release nil "28.1") (make-obsolete-variable 'inhibit-changing-match-data 'save-match-data "29.1") |