From c7ca759a24b344a81cb00a8522fb192051f0bae6 Mon Sep 17 00:00:00 2001 From: Tadashi MATSUO Date: Sat, 3 Sep 2011 22:43:48 +0900 Subject: [PATCH] The properties for hashtags, mentions and URIs are non-sticky. * twittering-mode.el: The properties for hashtags, mentions and URIs are non-sticky. (twittering-make-fontified-tweet-text): make the properties non-sticky for the both direction. --- ChangeLog | 5 +++++ twittering-mode.el | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4616b374..18ede30d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,11 @@ * twittering-mode.el: Fix a comment. + * twittering-mode.el: The properties for hashtags, mentions and + URIs are non-sticky. + (twittering-make-fontified-tweet-text): make the properties + non-sticky for the both direction. + 2011-08-27 Tadashi MATSUO * twittering-mode.el: A list timeline includes native retweets. diff --git a/twittering-mode.el b/twittering-mode.el index 1f35307b..014f8f29 100644 --- a/twittering-mode.el +++ b/twittering-mode.el @@ -5992,7 +5992,10 @@ following symbols; 'face 'twittering-uri-face))))) (beg (car range-and-properties)) (end (cadr range-and-properties)) - (properties (cddr range-and-properties))) + (properties + `(,@(cddr range-and-properties) + front-sticky nil + rear-nonsticky t))) (add-text-properties beg end properties str) (setq pos end))) str)))