# HG changeset patch # User Carsten Dominik # Date 1159967607 0 # Node ID 29e3148cc7f9e4245f877f0c66db3c709a688cf1 # Parent 95b5580d6d86ea3a5adc01380ae573563a2d4cc2 * textmodes/org.el (org-rm-props, org-activate-plain-links) (org-activate-angle-links, org-activate-dates) (org-activate-target-links, org-activate-camels) (org-activate-tags): Add `rear-nonsticky' text property to avoid textproperty keymaps from being active beyond the end of a line. (org-unfontify-region): Also remove `rear-nonsticky' property. diff -r 95b5580d6d86 -r 29e3148cc7f9 lisp/textmodes/org.el --- a/lisp/textmodes/org.el Wed Oct 04 13:13:08 2006 +0000 +++ b/lisp/textmodes/org.el Wed Oct 04 13:13:27 2006 +0000 @@ -2690,7 +2690,7 @@ (make-variable-buffer-local 'org-keyword-time-regexp) (defconst org-rm-props '(invisible t face t keymap t intangible t mouse-face t - mouse-map t) + rear-nonsticky t mouse-map t) "Properties to remove when a string without properties is wanted.") (defsubst org-match-string-no-properties (num &optional string) @@ -3140,6 +3140,7 @@ (progn (add-text-properties (match-beginning 0) (match-end 0) (list 'mouse-face 'highlight + 'rear-nonsticky t 'keymap org-mouse-map )) t))) @@ -3150,6 +3151,7 @@ (progn (add-text-properties (match-beginning 0) (match-end 0) (list 'mouse-face 'highlight + 'rear-nonsticky t 'keymap org-mouse-map )) t))) @@ -3188,6 +3190,7 @@ (progn (add-text-properties (match-beginning 0) (match-end 0) (list 'mouse-face 'highlight + 'rear-nonsticky t 'keymap org-mouse-map)) t))) @@ -3206,6 +3209,7 @@ (progn (add-text-properties (match-beginning 0) (match-end 0) (list 'mouse-face 'highlight + 'rear-nonsticky t 'keymap org-mouse-map 'help-echo "Radio target link" 'org-linked-text t)) @@ -3271,6 +3275,7 @@ (progn (add-text-properties (match-beginning 0) (match-end 0) (list 'mouse-face 'highlight + 'rear-nonsticky t 'keymap org-mouse-map)) t))) @@ -3279,6 +3284,7 @@ (progn (add-text-properties (match-beginning 1) (match-end 1) (list 'mouse-face 'highlight + 'rear-nonsticky t 'keymap org-mouse-map)) t))) @@ -3380,6 +3386,7 @@ deactivate-mark buffer-file-name buffer-file-truename) (remove-text-properties beg end '(mouse-face nil keymap nil org-linked-text nil + rear-nonsticky nil invisible nil intangible nil)))) ;;; Visibility cycling