From c00aa5c0d9118417da9a424ca49c926823757816 Mon Sep 17 00:00:00 2001 From: Tadashi MATSUO Date: Sun, 12 Sep 2010 23:08:04 +0900 Subject: [PATCH] Add an edited tweet into the history without text properties. * twittering-mode.el: Add an edited tweet into the history without text properties. (twittering-edit-extract-status): extract a status without text properties. They may cause `session.el' to fail to save `twittering-edit-history' because `twittering-make-clickable-status-datum' adds text properties with self-reference to tweets. --- ChangeLog | 10 ++++++++++ twittering-mode.el | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b06bcc3c..f5717984 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2010-09-12 Tadashi MATSUO + + * twittering-mode.el: Add an edited tweet into the history without + text properties. + (twittering-edit-extract-status): extract a status without text + properties. They may cause `session.el' to fail to save + `twittering-edit-history' because + `twittering-make-clickable-status-datum' adds text properties with + self-reference to tweets. + 2010-09-04 Tadashi MATSUO * twittering-mode.el (twittering-push-uri-onto-kill-ring): avoid diff --git a/twittering-mode.el b/twittering-mode.el index ea7b5627..3499336f 100644 --- a/twittering-mode.el +++ b/twittering-mode.el @@ -3710,7 +3710,7 @@ been initialized yet." (defun twittering-edit-extract-status () (if (eq major-mode 'twittering-edit-mode) - (buffer-string) + (buffer-substring-no-properties (point-min) (point-max)) "")) (defun twittering-edit-setup-help (&optional username spec)