diff options
| author | Carsten Dominik | 2006-10-04 13:13:27 +0000 |
|---|---|---|
| committer | Carsten Dominik | 2006-10-04 13:13:27 +0000 |
| commit | 4c5e27b5c62c59c4678cc2c7fcc80fe6795d679d (patch) | |
| tree | 72f69fb5c9a2c48f9c87b509d2a07dcac707245b | |
| parent | 82f285648a5d920bd90d620ebb48d5aa9dcc50bc (diff) | |
| download | emacs-4c5e27b5c62c59c4678cc2c7fcc80fe6795d679d.tar.gz emacs-4c5e27b5c62c59c4678cc2c7fcc80fe6795d679d.zip | |
* 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.
| -rw-r--r-- | lisp/textmodes/org.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/textmodes/org.el b/lisp/textmodes/org.el index c8ecc3df63d..caca6a6ae7d 100644 --- a/lisp/textmodes/org.el +++ b/lisp/textmodes/org.el | |||
| @@ -2690,7 +2690,7 @@ Also put tags into group 4 if tags are present.") | |||
| 2690 | (make-variable-buffer-local 'org-keyword-time-regexp) | 2690 | (make-variable-buffer-local 'org-keyword-time-regexp) |
| 2691 | 2691 | ||
| 2692 | (defconst org-rm-props '(invisible t face t keymap t intangible t mouse-face t | 2692 | (defconst org-rm-props '(invisible t face t keymap t intangible t mouse-face t |
| 2693 | mouse-map t) | 2693 | rear-nonsticky t mouse-map t) |
| 2694 | "Properties to remove when a string without properties is wanted.") | 2694 | "Properties to remove when a string without properties is wanted.") |
| 2695 | 2695 | ||
| 2696 | (defsubst org-match-string-no-properties (num &optional string) | 2696 | (defsubst org-match-string-no-properties (num &optional string) |
| @@ -3140,6 +3140,7 @@ that will be added to PLIST. Returns the string that was modified." | |||
| 3140 | (progn | 3140 | (progn |
| 3141 | (add-text-properties (match-beginning 0) (match-end 0) | 3141 | (add-text-properties (match-beginning 0) (match-end 0) |
| 3142 | (list 'mouse-face 'highlight | 3142 | (list 'mouse-face 'highlight |
| 3143 | 'rear-nonsticky t | ||
| 3143 | 'keymap org-mouse-map | 3144 | 'keymap org-mouse-map |
| 3144 | )) | 3145 | )) |
| 3145 | t))) | 3146 | t))) |
| @@ -3150,6 +3151,7 @@ that will be added to PLIST. Returns the string that was modified." | |||
| 3150 | (progn | 3151 | (progn |
| 3151 | (add-text-properties (match-beginning 0) (match-end 0) | 3152 | (add-text-properties (match-beginning 0) (match-end 0) |
| 3152 | (list 'mouse-face 'highlight | 3153 | (list 'mouse-face 'highlight |
| 3154 | 'rear-nonsticky t | ||
| 3153 | 'keymap org-mouse-map | 3155 | 'keymap org-mouse-map |
| 3154 | )) | 3156 | )) |
| 3155 | t))) | 3157 | t))) |
| @@ -3188,6 +3190,7 @@ that will be added to PLIST. Returns the string that was modified." | |||
| 3188 | (progn | 3190 | (progn |
| 3189 | (add-text-properties (match-beginning 0) (match-end 0) | 3191 | (add-text-properties (match-beginning 0) (match-end 0) |
| 3190 | (list 'mouse-face 'highlight | 3192 | (list 'mouse-face 'highlight |
| 3193 | 'rear-nonsticky t | ||
| 3191 | 'keymap org-mouse-map)) | 3194 | 'keymap org-mouse-map)) |
| 3192 | t))) | 3195 | t))) |
| 3193 | 3196 | ||
| @@ -3206,6 +3209,7 @@ that will be added to PLIST. Returns the string that was modified." | |||
| 3206 | (progn | 3209 | (progn |
| 3207 | (add-text-properties (match-beginning 0) (match-end 0) | 3210 | (add-text-properties (match-beginning 0) (match-end 0) |
| 3208 | (list 'mouse-face 'highlight | 3211 | (list 'mouse-face 'highlight |
| 3212 | 'rear-nonsticky t | ||
| 3209 | 'keymap org-mouse-map | 3213 | 'keymap org-mouse-map |
| 3210 | 'help-echo "Radio target link" | 3214 | 'help-echo "Radio target link" |
| 3211 | 'org-linked-text t)) | 3215 | 'org-linked-text t)) |
| @@ -3271,6 +3275,7 @@ between words." | |||
| 3271 | (progn | 3275 | (progn |
| 3272 | (add-text-properties (match-beginning 0) (match-end 0) | 3276 | (add-text-properties (match-beginning 0) (match-end 0) |
| 3273 | (list 'mouse-face 'highlight | 3277 | (list 'mouse-face 'highlight |
| 3278 | 'rear-nonsticky t | ||
| 3274 | 'keymap org-mouse-map)) | 3279 | 'keymap org-mouse-map)) |
| 3275 | t))) | 3280 | t))) |
| 3276 | 3281 | ||
| @@ -3279,6 +3284,7 @@ between words." | |||
| 3279 | (progn | 3284 | (progn |
| 3280 | (add-text-properties (match-beginning 1) (match-end 1) | 3285 | (add-text-properties (match-beginning 1) (match-end 1) |
| 3281 | (list 'mouse-face 'highlight | 3286 | (list 'mouse-face 'highlight |
| 3287 | 'rear-nonsticky t | ||
| 3282 | 'keymap org-mouse-map)) | 3288 | 'keymap org-mouse-map)) |
| 3283 | t))) | 3289 | t))) |
| 3284 | 3290 | ||
| @@ -3380,6 +3386,7 @@ between words." | |||
| 3380 | deactivate-mark buffer-file-name buffer-file-truename) | 3386 | deactivate-mark buffer-file-name buffer-file-truename) |
| 3381 | (remove-text-properties beg end | 3387 | (remove-text-properties beg end |
| 3382 | '(mouse-face nil keymap nil org-linked-text nil | 3388 | '(mouse-face nil keymap nil org-linked-text nil |
| 3389 | rear-nonsticky nil | ||
| 3383 | invisible nil intangible nil)))) | 3390 | invisible nil intangible nil)))) |
| 3384 | ;;; Visibility cycling | 3391 | ;;; Visibility cycling |
| 3385 | 3392 | ||