emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Avoiding `intangible'


From: Stefan Monnier
Subject: [O] Avoiding `intangible'
Date: Wed, 15 Apr 2015 21:42:54 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

I'm on a crusade to eradicate the `intangible' property, which happens
to rub me the wrong way because it's implemented at too-low a level (it
affects every point movement) which incurs a significant performance
penalty (even when not used) and affects a lot of code which then
needs to be fixed by binding inhibit-point-motion-hooks (which I'm
considering defaulting to t).

So I'd like to install the patch below.  Any objection?  The `invisible'
property already ensures that the command loop moves point away from
those overlays, so the `intangible' property should not be needed there
(tho I don't use Org enough to know how to test it).


        Stefan


diff --git a/lisp/org/org-agenda.el b/lisp/org/org-agenda.el
index 8f7611f..bac8206 100644
--- a/lisp/org/org-agenda.el
+++ b/lisp/org/org-agenda.el
@@ -3847,8 +3847,7 @@ dimming them."
                  e (point-at-eol)
                  ov (make-overlay b e))
            (if invis1
-               (progn (overlay-put ov 'invisible t)
-                      (overlay-put ov 'intangible t))
+                (overlay-put ov 'invisible t)
              (overlay-put ov 'face 'org-agenda-dimmed-todo-face))
            (overlay-put ov 'org-type 'org-blocked-todo))))))
   (when (org-called-interactively-p 'interactive)
diff --git a/lisp/org/org-colview.el b/lisp/org/org-colview.el
index e14849f..2587aad 100644
--- a/lisp/org/org-colview.el
+++ b/lisp/org/org-colview.el
@@ -250,7 +250,6 @@ This is the compiled version of the format.")
      (setq ov (org-columns-new-overlay beg (point-at-eol)))
      (overlay-put ov 'invisible t)
      (overlay-put ov 'keymap org-columns-map)
-     (overlay-put ov 'intangible t)
      (overlay-put ov 'line-prefix "")
      (overlay-put ov 'wrap-prefix "")
      (push ov org-columns-overlays)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]