From ec3e5f739a282667021905a3f62effcc8b0d6d80 Mon Sep 17 00:00:00 2001 From: Deniz Dogan Date: Tue, 10 Apr 2012 04:51:39 +0200 Subject: [PATCH] Add `field' to `erc-display-prompt' * erc.el (erc-display-prompt): Adds the field text property to the ERC prompt. This allows users to use `kill-whole-line' to kill all text back to the prompt given that it's on a single line. Fixes: debbugs:10841 --- lisp/erc/ChangeLog | 7 +++++++ lisp/erc/erc.el | 1 + 2 files changed, 8 insertions(+) diff --git a/lisp/erc/ChangeLog b/lisp/erc/ChangeLog index 34aa015d7ac..9f858ba96e5 100644 --- a/lisp/erc/ChangeLog +++ b/lisp/erc/ChangeLog @@ -1,3 +1,10 @@ +2012-04-10 Deniz Dogan (tiny change) + + * erc.el (erc-display-prompt): Adds the field text property to the + ERC prompt. This allows users to use `kill-whole-line' to kill + all text back to the prompt given that it's on a single line + (bug#10841). + 2012-04-09 Chong Yidong * erc.el (erc-cmd-SET): Call custom-variable-p instead of diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index 62b701204d1..b79c2fd6c5e 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -3646,6 +3646,7 @@ If FACE is non-nil, it will be used to propertize the prompt. If it is nil, 'start-open t ; XEmacs 'rear-nonsticky t ; Emacs 'erc-prompt t + 'field t 'front-sticky t 'read-only t)) (erc-put-text-property 0 (1- (length prompt)) -- 2.39.2