From: Deniz Dogan Date: Tue, 10 Apr 2012 02:51:39 +0000 (+0200) Subject: Add `field' to `erc-display-prompt' X-Git-Tag: emacs-24.2.90~471^2~365^2~21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ec3e5f739a282667021905a3f62effcc8b0d6d80;p=emacs.git 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 --- 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))