From a42814e8922f4bd69e0726a6f05e55e15337c536 Mon Sep 17 00:00:00 2001 From: Alex Branham Date: Tue, 13 Aug 2019 15:30:26 -0500 Subject: [PATCH] Fix erc-echo-timestamps * lisp/erc/erc-stamp.el (erc-add-timestamp): Use (1- (point-max)) since `cursor-sensor--detect' skips `cursor-sensor-functions' if the property hasn't changed since the cursor moved. By not applying the property to the last character of a message, we're guaranteeing that the text property changes when we move point to a different ERC message. Bug#22700 --- lisp/erc/erc-stamp.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/erc/erc-stamp.el b/lisp/erc/erc-stamp.el index b48803452a..cbe9fe3e6a 100644 --- a/lisp/erc/erc-stamp.el +++ b/lisp/erc/erc-stamp.el @@ -187,7 +187,7 @@ or `erc-send-modify-hook'." (erc-format-timestamp ct erc-away-timestamp-format))) (add-text-properties (point-min) (point-max) (list 'timestamp ct)) - (add-text-properties (point-min) (point-max) + (add-text-properties (point-min) (1- (point-max)) (list 'cursor-sensor-functions (list #'erc-echo-timestamp)))))) -- 2.22.0