]> git.eshelyaron.com Git - emacs.git/commitdiff
Remove Emacs 24 compat code from reftex
authorStefan Kangas <stefankangas@gmail.com>
Sat, 19 Aug 2023 10:25:25 +0000 (12:25 +0200)
committerStefan Kangas <stefankangas@gmail.com>
Sat, 19 Aug 2023 11:09:07 +0000 (13:09 +0200)
* lisp/textmodes/reftex-index.el (reftex-display-index):
* lisp/textmodes/reftex-toc.el (reftex-toc): Assume that we have
'cursor-intangible-mode', which was added in Emacs 25.

lisp/textmodes/reftex-index.el
lisp/textmodes/reftex-toc.el

index c7a297d5dac4ad7eea9888d5db950bcc692747d9..c8a45f068d1374d63800a2b5b8083e788a9ef03e 100644 (file)
@@ -539,11 +539,7 @@ SPC=view TAB=goto RET=goto+hide [e]dit [q]uit [r]escan [f]ollow [?]Help
       (if (reftex-use-fonts)
           (put-text-property (point-min) (point)
                              'face reftex-index-header-face))
-      (if (fboundp 'cursor-intangible-mode)
-          (cursor-intangible-mode 1)
-        ;; If `cursor-intangible' is not available, fallback on the old
-        ;; intrusive `intangible' property.
-        (put-text-property (point-min) (point) 'intangible t))
+      (cursor-intangible-mode 1)
       (add-text-properties (point-min) (point)
                            '(cursor-intangible t
                              front-sticky (cursor-intangible)
index 858d805332aa1cdd720d4ce6da4c779a7954fe96..de49b7c6c708781a7b7f0a90bb17646a826f9978 100644 (file)
@@ -265,11 +265,7 @@ SPC=view TAB=goto RET=goto+hide [q]uit [r]escan [l]abels [f]ollow [x]r [?]Help
 
       (if (reftex-use-fonts)
           (put-text-property (point-min) (point) 'font-lock-face reftex-toc-header-face))
-      (if (fboundp 'cursor-intangible-mode)
-          (cursor-intangible-mode 1)
-        ;; If `cursor-intangible' is not available, fallback on the old
-        ;; intrusive `intangible' property.
-        (put-text-property (point-min) (point) 'intangible t))
+      (cursor-intangible-mode 1)
       (add-text-properties (point-min) (point)
                            '(cursor-intangible t
                              front-sticky (cursor-intangible)